:root {
    --bg-color: #061011;
    /* Lighter Slate Gray */
    --text-color: #ffffff;
    /* Dark Slate for readability */
    --primary-color: #00C896;
    --primary-hover: #00a87e;
    --secondary-bg: #0d1e20;
    --accent-color: #00C896;
    --muted-color: #475569;
    --glow-color: rgba(79, 70, 229, 0.1);
}

html {
    font-size: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.container {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: rgba(6, 16, 17, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #ffffff;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Overlay */
.hero-overlay {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    pointer-events: none;
    padding-bottom: 15vh;
    background: transparent;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-subtitle {
    color: #475569;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Features */
.features {
    padding: 10rem 0;
    background: #061011;
    /* Slightly darker gray for contrast section */
}

.section-tag {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    color: #ffffff;
    font-size: 1.05rem;
}

/* Balance */
.balance {
    padding: 3rem 0;
}

.balance-content {
    background: rgba(255, 255, 255, 0.2);
    padding: 3rem 4vw;
    border-radius: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.balance p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 3rem;
}

/* Benefits Stacked Design */
.benefits-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 4rem;
    width: 100%;
}

.benefit-item {
    background: var(--secondary-bg);
    border-radius: 2rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    transition: all 0.4s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.benefit-item:hover {
    transform: translateX(15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.benefit-number {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3);
}

.benefit-content h4 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.benefit-content p {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0 !important;
    line-height: 1.5;
}

/* Engine Section */
.engine-section {
    margin-top: 8rem;
    text-align: left;
    max-width: 100%;
    background: var(--secondary-bg);
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem 4rem;
}

.engine-section h3 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    font-weight: 800;
}

.engine-accent {
    width: 60px;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.engine-section p {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.engine-section strong {
    color: #ffffff;
}

/* Toolkit Section */
.toolkit-container {
    margin-top: 5rem;
    background: var(--secondary-bg);
    border-radius: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.toolkit-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1.5rem 2rem;
    background: #0a171a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.toolkit-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.toolkit-row:hover {
    background: #0f2326;
}

.feature-name {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}

.capability-text {
    color: #ffffff;
    font-size: 1.2rem;
}

/* CTA */
.cta {
    padding: 10rem 0;
}

.cta-card {
    background: #00C896;
    padding: 8rem 4rem;
    border-radius: 4rem;
    text-align: center;
    color: white;
}

/* Footer */
footer {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary-color);
}

/* ===========================
   TABLET (max-width: 1024px)
   =========================== */
@media (max-width: 1024px) {
    .benefit-item {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .balance-content {
        padding: 3rem 2rem;
    }

    .toolkit-header,
    .toolkit-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }

    .engine-section {
        padding: 2rem 2.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* ===========================
   MOBILE (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
    .container {
        width: 93%;
    }

    /* --- Navigation --- */
    .hamburger {
        display: flex;
    }

    .logo {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(6, 16, 17, 0.97);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    /* --- Hero --- */
    .hero-overlay {
        padding-bottom: 12vh;
    }

    /* --- Typography scale-down --- */
    h1, .hero-title  { font-size: clamp(2.2rem, 8vw, 3.5rem) !important; }
    h2               { font-size: clamp(1.8rem, 6vw, 2.6rem) !important; }
    h3               { font-size: clamp(1.5rem, 5vw, 2.2rem) !important; }
    h4               { font-size: clamp(1.2rem, 4vw, 1.7rem) !important; }
    h5               { font-size: 1.1rem !important; }
    p, li            { font-size: 1.05rem !important; }
    .section-tag     { font-size: 0.85rem; }

    /* --- Balance / About section --- */
    .balance {
        padding: 2rem 0;
    }

    .balance-content {
        padding: 1.5rem 1.2rem;
        border-radius: 1.5rem;
    }

    /* --- Feature Cards --- */
    .features {
        padding: 5rem 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem 1.2rem;
        border-radius: 1.2rem;
    }

    /* --- Benefits --- */
    .benefit-item {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        text-align: center;
    }

    .benefit-number {
        width: 70px;
        height: 70px;
        font-size: 1.4rem;
        border-radius: 1.2rem;
    }

    .benefit-content h4 {
        font-size: 1.2rem !important;
    }

    /* --- Engine Section --- */
    .engine-section {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }

    .engine-section h3 {
        font-size: 1.5rem !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .engine-section p {
        font-size: 1rem !important;
    }

    /* --- Toolkit Table --- */
    .toolkit-container {
        border-radius: 1.5rem;
    }

    .toolkit-header {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .toolkit-header > div:last-child {
        display: none;
    }

    .toolkit-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.2rem 1.5rem;
    }

    .feature-name {
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 0.4rem;
        margin-bottom: 0.3rem;
    }

    .capability-text {
        font-size: 0.9rem !important;
        color: #94a3b8;
    }

    /* --- CTA --- */
    .cta {
        padding: 5rem 0;
    }

    .cta-card {
        padding: 3.5rem 1.5rem;
        border-radius: 2rem;
    }

    /* --- Footer --- */
    footer {
        padding: 3rem 0;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    /* --- Inline-style overrides for grids --- */
    div[style*="grid-template-columns: 1fr 1.8fr 1.8fr"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-template-columns: 1fr 1.8fr 1.8fr"] > div[style*="border-right"] {
        border-right: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    }

    /* Overview banner: full width on mobile */
    div[style*="width: 50%"] {
        width: 100% !important;
        min-width: unset !important;
    }

    /* Inline paddings that are too large on mobile */
    div[style*="padding: 3rem 4rem"] {
        padding: 1.8rem 1.5rem !important;
    }

    div[style*="padding: 3rem 4vw"] {
        padding: 1.5rem 1.2rem !important;
    }

    /* Inline font sizes: large headings */
    [style*="font-size: 3rem"]   { font-size: 1.9rem !important; }
    [style*="font-size: 1.6rem"] { font-size: 1.1rem !important; }
    [style*="font-size: 2.2rem"] { font-size: 1.5rem !important; }
    [style*="font-size: 1.8rem"] { font-size: 1.25rem !important; }
    [style*="font-size: 4rem"]   { font-size: 2.8rem !important; }
    [style*="font-size: 1.4rem"] { font-size: 1.1rem !important; }
    [style*="font-size: 1.25rem"]{ font-size: 1rem !important; }
    [style*="font-size: 1.3rem"] { font-size: 1rem !important; }

    /* Inline margin-top reductions */
    [style*="margin-top: 8rem"] { margin-top: 3.5rem !important; }
    [style*="margin-top: 6rem"] { margin-top: 2.5rem !important; }
    [style*="margin-top: 4rem"] { margin-top: 2rem !important; }

    /* Bottom table footer row */
    div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
}