/* styles.css
   ✅ New Theme: Premium Dark Blue & Gold
   ✅ Replaced Glassmorphism with Solid, Layered Cards
   ✅ New Background Texture
   ✅ Header/Footer structure intact, restyled only.
*/

:root {
    /* Palette */
    --bg-main: #050A18;        /* Deepest background */
    --bg-secondary: #0A152E;   /* Slightly lighter for alternating sections */
    --card-bg: #112240;        /* Solid card color */
    --card-hover: #1A2F55;     /* Lighter card on hover */

    --accent-gold: #FFD700;    /* Primary action color */
    --accent-blue: #4facfe;    /* Secondary accent color */
    --accent-gradient: linear-gradient(135deg, var(--accent-gold), #FFA500);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1; /* Muted text */
    --text-gold: #FFD700;

    /* Borders & Shadows */
    --border-subtle: rgba(79, 172, 254, 0.15);
    --border-highlight: rgba(255, 215, 0, 0.5);
    --shadow-card: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --shadow-hover: 0 20px 40px -20px rgba(2, 12, 27, 0.9);

    --radius-std: 12px; /* Slightly squarer corners for a professional look */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    /* Subtle technical grid pattern background */
    background-image:
        linear-gradient(rgba(79, 172, 254, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 172, 254, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

p {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

h1, h2, h3 {
    margin: 0 0 14px;
    letter-spacing: .3px;
    color: var(--text-primary);
    font-weight: 600;
}

h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
}

h1 strong, h1 span {
     color: var(--accent-gold);
}

h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    position: relative;
    display: inline-block;
}

/* Add a subtle gold underline to H2s */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: 8px;
    border-radius: 3px;
}

h3 {
    font-size: 22px;
    line-height: 1.3;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

/* ===== Header (Structure kept, styled solid) ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-main); /* Solid background now */
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.logo {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 22px;
    color: var(--text-primary);
    text-transform: uppercase;
}
.logo span { color: var(--accent-gold); } /* Assuming you might wrap part of logo in span later, ready for it */

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu li a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
}
.menu li a:hover {
    color: var(--accent-gold);
}

/* ===== Buttons (New Styles) ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px; /* Sharper buttons */
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* Primary Action - Gold */
.btn-primary, .btn-signup {
    background: var(--accent-gradient);
    color: var(--bg-main);
    border: none;
}

.btn-primary:hover, .btn-signup:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Secondary Action - Outline Blue/Gold */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-secondary:hover {
    background: rgba(79, 172, 254, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Login - Subtle */
.btn-login {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 10px 20px;
}
.btn-login:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}


/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger-icon {
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    position: relative;
    display: block;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.menu-toggle.active .hamburger-icon { background: transparent; }
.menu-toggle.active .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger-icon::after { top: 0; transform: rotate(-45deg); }

.visually-hidden {
    position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ===== Language Selector (Solid Style) ===== */
.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s;
}
.lang-selector:hover {
    border-color: var(--accent-gold);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.lang-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 220px;
    max-height: 300px;
    overflow: auto;
    padding: 8px 0;
    border-radius: var(--radius-std);
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 100;
}

/* Custom scrollbar for lang dropdown */
.lang-dropdown::-webkit-scrollbar { width: 6px; }
.lang-dropdown::-webkit-scrollbar-track { background: var(--bg-main); }
.lang-dropdown::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 10px;}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: background 0.16s ease, color 0.16s ease;
}

.lang-option:hover {
    background: var(--bg-main);
    color: var(--accent-gold);
}

/* ===== Sections Layouts ===== */
main { padding-bottom: 0; }

.section,
.section-alt,
.haro-section {
    padding: 100px 0;
}

/* Alternating background colors for sections */
.section { background: var(--bg-main); }
.section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* ===== Hero / HARO Section (Redesigned) ===== */
.haro-section {
    padding: 120px 0 100px;
    /* Add a subtle glow effect behind the hero */
    background: radial-gradient(circle at 20% 30%, rgba(79, 172, 254, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
}

.haro-container {
    display: grid;
    grid-template-columns: 1fr 400px; /* Fixed width for form container */
    gap: 60px;
    align-items: center;
}

.haro-content h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin-bottom: 24px;
}
.haro-content p {
    font-size: 18px;
    max-width: 540px;
    margin-bottom: 0;
}

.haro-form {
    /* No longer glass, now a solid, prominent card */
    background: var(--card-bg);
    border-radius: var(--radius-std);
    padding: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    /* A top border highlight in gold */
    border-top: 4px solid var(--accent-gold);
    position: relative;
}

.form-heading {
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 600;
}

/* The container holding the JS form script */
.neumorph-card {
    /* Resetting previous styles to just be a container */
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
.form-container { position: relative; z-index: 1; }

/* ===== Cards / Steps (Solid, tech look) ===== */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle hover effect: light up border and lift */
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-hover);
}

/* Add a tech-y corner accent */
.card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--bg-secondary) transparent transparent;
    transition: border-color 0.3s ease;
}
.card:hover::before {
     border-color: transparent var(--accent-blue) transparent transparent;
}


.card-number {
    font-size: 40px;
    font-weight: 800;
    /* Outline text style for numbers */
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-gold);
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 24px; }

/* ===== Features Grid (Solid, distinct) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: var(--bg-secondary); /* Slightly lighter than main bg */
    padding: 30px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature:hover {
    background: var(--card-bg);
    border-color: var(--accent-gold);
    transform: scale(1.02);
}

.feature-icon {
    width: 60px;
    height: 60px;
    /* Dark circle with gold border instead of gradient box */
    background: var(--bg-main);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-secondary); margin-bottom: 0; }

/* ===== Support / Community Layouts ===== */
.support-content,
.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Alternating layout for community section */
.community-content {
    direction: rtl; /* Quick way to flip order visually */
}
.community-content > * {
    direction: ltr; /* Reset text direction inside */
}


.support-image img,
.community-image img {
    border-radius: var(--radius-std);
    /* A solid frame around images */
    border: 4px solid var(--card-bg);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
}

.support-image img:hover,
.community-image img:hover {
    transform: scale(1.02);
    border-color: var(--accent-gold);
}

.support-text h2, .community-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}
.support-text h2::after, .community-text h2::after { display: none; } /* Remove underline here */

.support-text h3, .community-text h3 {
    color: var(--accent-gold);
    margin-bottom: 10px;
    margin-top: 20px;
}

/* ===== Highlights Table (Tech style) ===== */
.crypto-highlights .highlights-table {
    margin-top: 40px;
    border-radius: var(--radius-std);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
}

.crypto-highlights table {
    width: 100%;
    border-collapse: collapse;
}

.crypto-highlights tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
}
/* Zebra striping */
.crypto-highlights tr:nth-child(even) {
    background: var(--bg-secondary);
}
.crypto-highlights tr:hover {
    background: rgba(79, 172, 254, 0.1);
}

.crypto-highlights tr:last-child { border-bottom: none; }

.crypto-highlights td {
    padding: 20px 24px;
    vertical-align: middle;
}

.highlight-label {
    width: 35%;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.highlight-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== FAQ (Pop-out style) ===== */
.faq-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    border-radius: var(--radius-std);
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-size: 24px;
    color: var(--accent-gold);
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.faq-answer {
    padding: 24px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-top: 1px solid transparent; /* Fix for smooth transition */
}

/* ===== Footer (Restyled) ===== */
.site-footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-info h3 {
    color: var(--accent-gold);
    font-size: 24px;
}

.footer-links h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 15px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-disclaimer {
    background: var(--bg-main);
    padding: 30px;
    border-radius: var(--radius-std);
    border: 1px solid var(--border-subtle);
}

.disclaimer-text {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(168, 178, 209, 0.6); /* Very muted */
    margin-bottom: 16px;
}
.disclaimer-text:last-child { margin-bottom: 0; }

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* ===== Focus States for Accessibility ===== */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .haro-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .haro-content p { margin: 0 auto 30px; }
    .haro-form { max-width: 500px; margin: 0 auto; }

    .support-content, .community-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .community-content { direction: ltr; } /* Reset direction on mobile */
    .support-image, .community-image { order: -1; } /* Images first on mobile */
    .support-text h2::after, .community-text h2::after { margin: 8px auto 0; }

    .footer-content { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .site-header { padding: 16px 0; }
    .menu-toggle { display: block; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        border-bottom: 2px solid var(--accent-gold);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: var(--shadow-card);
    }

    .main-nav.active {
        max-height: 400px; /* Adjust if menu gets longer */
    }

    .menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .menu li { width: 100%; }
    .menu li a, .menu li .btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .menu li:last-child a { border-bottom: none; }

    /* Hide language selector on mobile menu for simplicity,
       or style it to fit into the vertical list if needed */
    .lang-selector { display: none; }
}

@media (max-width: 480px) {
    .section, .section-alt, .haro-section { padding: 60px 0; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .haro-form { padding: 20px; }
    .card, .feature { padding: 24px; }
    .highlight-label { width: 100%; margin-bottom: 8px; }
    .crypto-highlights td { display: block; padding: 12px 16px; }
    .crypto-highlights tr td:first-child { padding-bottom: 0; }
}