/* ============================================================
   DHANTHELION STUDIOS — styles.css
   Pure CSS, no framework. Light + Dark themes via [data-theme].
   ============================================================ */

/* ── Google Material Symbols ── */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

/* ════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ════════════════════════════════════════════ */

:root,
[data-theme="light"] {
    /* Colors */
    --primary: #0035c5;
    --primary-container: #0047ff;
    --on-primary: #ffffff;
    --on-primary-container: #d4d9ff;
    --primary-fixed: #dde1ff;
    --on-primary-fixed: #001257;
    --primary-fixed-dim: #b9c3ff;

    --secondary: #185abe;
    --secondary-container: #6396fd;
    --on-secondary: #ffffff;
    --on-secondary-container: #002e6c;

    --tertiary: #8d1c00;
    --tertiary-container: #b82800;

    --surface: #fbf9fb;
    --surface-bright: #fbf9fb;
    --surface-dim: #dbd9dc;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f5f3f6;
    --surface-container: #efedf0;
    --surface-container-high: #e9e7ea;
    --surface-container-highest: #e3e2e5;
    --surface-variant: #e3e2e5;
    --surface-tint: #0046fa;

    --on-surface: #1b1c1e;
    --on-surface-variant: #434657;
    --on-background: #1b1c1e;
    --background: #fbf9fb;

    --outline: #747688;
    --outline-variant: #c4c5da;
    --inverse-surface: #303033;
    --inverse-on-surface: #f2f0f3;
    --inverse-primary: #b9c3ff;

    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;

    /* Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 1.875rem;
    --radius-full: 9999px;

    /* Typography */
    --font-headline: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --nav-h: 5rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 6px rgba(0, 0, 0, .07);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, .14), 0 6px 20px rgba(0, 0, 0, .09);
    --shadow-primary: 0 8px 24px rgba(0, 71, 255, .22);

    /* Nav */
    --nav-bg: rgba(255, 255, 255, .82);
    --nav-border: #e3e2e5;

    /* Section alt bg */
    --section-alt-bg: var(--surface-container-low);

    /* Dark section */
    --dark-section-bg: var(--on-surface);
    --dark-section-text: #ffffff;

    /* Mobile menu */
    --menu-bg: #ffffff;
}

[data-theme="dark"] {
    --primary: #0047ff;
    --primary-container: #0047ff;
    --on-primary: #ffffff;
    --on-primary-container: #ffffff;
    --primary-fixed: #0047ff;
    --on-primary-fixed: #ffffff;
    --primary-fixed-dim: #b9c3ff;

    --secondary: #185abe;
    --secondary-container: #004397;
    --on-secondary: #ffffff;
    --on-secondary-container: #d9e2ff;

    --tertiary: #8d1c00;
    --tertiary-container: #8d1c00;

    --surface: #1b1c1e;
    --surface-bright: #2a2b2d;
    --surface-dim: #1b1c1e;
    --surface-container-lowest: #000000;
    --surface-container-low: #1e1f21;
    --surface-container: #232426;
    --surface-container-high: #2a2b2d;
    --surface-container-highest: #353639;
    --surface-variant: #434657;

    --on-surface: #fbf9fb;
    --on-surface-variant: #c4c5da;
    --on-background: #fbf9fb;
    --background: #1b1c1e;

    --outline: #8e90a1;
    --outline-variant: #434657;
    --inverse-surface: #e3e2e5;
    --inverse-on-surface: #1b1c1e;
    --inverse-primary: #0046fa;

    --nav-bg: rgba(27, 28, 30, .82);
    --nav-border: #2a2b2d;

    --section-alt-bg: var(--surface-container-low);

    --dark-section-bg: #000000;
    --dark-section-text: #ffffff;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, .4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, .45);
    --shadow-primary: 0 8px 24px rgba(0, 71, 255, .3);

    --menu-bg: #1b1c1e;
}

/* ════════════════════════════════════════════
   2. RESET & BASE
   ════════════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color .3s ease, color .3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
}

/* ════════════════════════════════════════════
   3. LAYOUT HELPERS
   ════════════════════════════════════════════ */

.container {
    max-width: 80rem;
    /* 1280px */
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding-inline: 2rem;
    }
}

/* ════════════════════════════════════════════
   4. TYPOGRAPHY UTILITIES
   ════════════════════════════════════════════ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #3d7cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--primary);
}

/* ════════════════════════════════════════════
   5. BUTTON SYSTEM
   ════════════════════════════════════════════ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--primary-container);
    color: var(--on-primary-container);
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-xl);
    padding: .625rem 1.25rem;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: .92;
    box-shadow: var(--shadow-primary);
}

.btn-primary:active {
    transform: scale(.985);
}

.btn-primary-fixed {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-xl);
    padding: .625rem 1.25rem;
    transition: opacity .2s, transform .15s;
}

.btn-primary-fixed:hover {
    opacity: .9;
}

.btn-primary-fixed:active {
    transform: scale(.985);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--surface-container-high);
    color: var(--on-surface);
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--radius-xl);
    padding: .625rem 1.25rem;
    border: 1px solid var(--outline-variant);
    transition: background .2s, transform .15s;
}

.btn-secondary:hover {
    background: var(--surface-container-highest);
}

.btn-secondary:active {
    transform: scale(.985);
}

.btn-ghost {
    background: none;
    color: var(--on-surface);
    font-weight: 600;
    font-size: .875rem;
    padding: .375rem .5rem;
    border-radius: var(--radius-md);
    transition: color .2s;
    opacity: .7;
}

.btn-ghost:hover {
    color: var(--primary);
    opacity: 1;
}

/* Sizes */
.btn-sm {
    font-size: .875rem;
    padding: .625rem 1.25rem;
}

.btn-lg {
    font-size: 1.0625rem;
    padding: 1rem 2rem;
}

.btn-block {
    width: 100%;
}

/* ════════════════════════════════════════════
   6. NAV
   ════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--nav-h);
    transition: background .3s;
}

.nav__inner {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.nav__logo {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -.03em;
    color: var(--on-surface);
    flex-shrink: 0;
}

.nav__links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }
}

.nav__link {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--on-surface);
    opacity: .7;
    transition: color .2s, opacity .2s;
    padding-bottom: .25rem;
}

.nav__link:hover {
    color: var(--primary);
    opacity: 1;
}

.nav__link--active {
    color: var(--primary);
    opacity: 1;
    border-bottom: 2px solid var(--primary);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.nav__border {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 1px;
    background: var(--nav-border);
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background: var(--surface-container-high);
    color: var(--on-surface);
    font-size: 1.25rem;
    transition: background .2s, color .2s;
}

.theme-toggle:hover {
    background: var(--surface-container-highest);
    color: var(--primary);
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    padding: .4rem;
    border-radius: var(--radius-md);
    background: var(--surface-container-high);
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--on-surface);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .btn-ghost {
        display: inline-flex;
    }
}

/* Hide login text on mobile */
@media (max-width: 767px) {
    .nav__actions .btn-ghost {
        display: none;
    }

    .nav__actions .btn-primary {
        display: none;
    }
}

/* ════════════════════════════════════════════
   7. SUB-NAVIGATION (CONTEXTUAL)
   ════════════════════════════════════════════ */

.sub-nav {
    position: sticky;
    top: var(--nav-h);
    z-index: 98;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--outline-variant);
    transition: background 0.3s;
}

.sub-nav__inner {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    overflow-x: auto;
    scrollbar-width: none; /* Ocultar scrollbar en Firefox */
}

.sub-nav__inner::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar en Chrome/Safari */
}

.sub-nav__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, opacity 0.2s;
    opacity: 0.7;
}

.sub-nav__link:hover {
    color: var(--primary);
    opacity: 1;
}

.sub-nav__link--active {
    color: var(--primary);
    opacity: 1;
}

/* ════════════════════════════════════════════
   8. MOBILE MENU
   ════════════════════════════════════════════ */

.mobile-menu {
    position: fixed;
    top: var(--nav-h);
    inset-inline: 0;
    background: var(--menu-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: .25rem;
    border-bottom: 1px solid var(--outline-variant);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s;
    pointer-events: none;
}

.mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--on-surface);
    padding: .875rem 1rem;
    border-radius: var(--radius-md);
    transition: background .2s, color .2s;
    opacity: .75;
}

.mobile-menu__link:hover {
    background: var(--surface-container);
    opacity: 1;
}

.mobile-menu__link--active {
    color: var(--primary);
    opacity: 1;
}

.mobile-menu__actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--outline-variant);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* ════════════════════════════════════════════
   8. MAIN WRAPPER
   ════════════════════════════════════════════ */

.main {
    padding-top: var(--nav-h);
}

/* ════════════════════════════════════════════
   9. SECTION BASE
   ════════════════════════════════════════════ */

.section {
    padding-block: 6rem;
    background: var(--background);
}

.section--alt {
    background: var(--section-alt-bg);
}

.section--dark {
    background: var(--dark-section-bg);
    color: var(--dark-section-text);
    position: relative;
    overflow: hidden;
}

.section__deco-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 33%;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 71, 255, .12), transparent);
    pointer-events: none;
}

.section__header {
    margin-bottom: 4rem;
}

.section__title {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: .75rem;
}

.section__sub {
    font-size: 1rem;
    color: var(--on-surface-variant);
    font-weight: 500;
}

/* ════════════════════════════════════════════
   10. HERO
   ════════════════════════════════════════════ */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: 6rem 8rem;
    background: var(--background);
}

.hero__glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle at top right, rgba(0, 71, 255, .07), transparent 60%);
    pointer-events: none;
}

[data-theme="dark"] .hero__glow {
    background: radial-gradient(circle at top right, rgba(0, 71, 255, .18), transparent 55%);
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: .3125rem .875rem;
    border-radius: var(--radius-full);
    background: var(--primary-fixed);
    color: var(--on-primary-fixed);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 71, 255, .12);
}

[data-theme="dark"] .badge {
    background: rgba(0, 71, 255, .12);
    color: var(--primary);
    border-color: rgba(0, 71, 255, .22);
}

.hero__title {
    font-family: var(--font-headline);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.08;
    color: var(--on-surface);
    max-width: 52rem;
    margin-bottom: 2rem;
}

[data-theme="dark"] .hero__title {
    color: #ffffff;
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--on-surface-variant);
    max-width: 38rem;
    margin-bottom: 3rem;
    font-weight: 500;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ════════════════════════════════════════════
   11. BENTO GRID
   ════════════════════════════════════════════ */

.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(12, 1fr);
    }
}

/* ── Cards ── */
.bento__card {
    background: var(--surface-container-lowest);
    border-radius: var(--radius-3xl);
    padding: 2rem;
    transition: box-shadow .25s;
    border: 1px solid var(--outline-variant);
}

@media (min-width: 768px) {
    .bento__card {
        border: none;
    }
}

.bento__card:hover {
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .bento__card {
    background: var(--surface-container);
    border: 1px solid var(--surface-container-high);
}

/* Featured DITE */
.bento__card--featured {
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .bento__card--featured {
        grid-column: span 8;
    }
}

.bento__card-content {
    position: relative;
    z-index: 1;
}

.bento__card-img {
    position: absolute;
    right: -10%;
    bottom: -10%;
    width: 66%;
    opacity: .18;
    transform: rotate(-5deg);
    border-radius: var(--radius-2xl);
    transition: opacity .3s;
    pointer-events: none;
}

[data-theme="dark"] .bento__card-img {
    opacity: .35;
    filter: grayscale(1) brightness(.75);
}

.bento__card--featured:hover .bento__card-img {
    opacity: .28;
}

[data-theme="dark"] .bento__card--featured:hover .bento__card-img {
    opacity: .55;
}

/* Small cards */
.bento__card--sm,
.bento__card--sm-alt {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bento__card--sm {
        grid-column: span 4;
        background: var(--surface-container-highest);
    }

    .bento__card--sm-alt {
        grid-column: span 4;
        background: var(--surface-container-high);
    }
}

[data-theme="dark"] .bento__card--sm {
    background: var(--surface-container-high);
}

[data-theme="dark"] .bento__card--sm-alt {
    background: var(--surface-container);
}

/* CRM */
.bento__card--crm {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bento__card--crm {
        grid-column: span 8;
        background: var(--surface-container-lowest);
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }
}

[data-theme="dark"] .bento__card--crm {
    background: var(--surface-container-high);
}

.bento__crm-content {
    flex: 1;
}

.bento__crm-visual {
    display: none;
}

@media (min-width: 768px) {
    .bento__crm-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 8rem;
        height: 8rem;
        border-radius: var(--radius-full);
        background: rgba(0, 71, 255, .06);
        border: 3px solid rgba(255, 255, 255, .8);
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, .06);
        font-size: 2.5rem;
        color: var(--primary);
    }
}

[data-theme="dark"] .bento__crm-visual {
    background: rgba(0, 71, 255, .1);
    border-color: rgba(0, 71, 255, .2);
}

/* ── Card internals ── */
.bento__icon-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bento__card-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-surface);
}

[data-theme="dark"] .bento__card-title {
    color: #ffffff;
}

.bento__card-desc {
    color: var(--on-surface-variant);
    margin-bottom: 2rem;
    max-width: 32rem;
    font-size: .9375rem;
}

.bento__card-title-sm {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: .5rem;
    margin-top: 1.5rem;
}

[data-theme="dark"] .bento__card-title-sm {
    color: #ffffff;
}

.bento__card-desc-sm {
    font-size: .875rem;
    color: var(--on-surface-variant);
}

/* ════════════════════════════════════════════
   12. ICON BOXES
   ════════════════════════════════════════════ */

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.375rem;
    color: #ffffff;
    flex-shrink: 0;
}

.icon-box--primary {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    border-radius: var(--radius-xl);
}

.icon-box--secondary {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--secondary-container);
}

.icon-box--tertiary {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--tertiary-container);
}

.icon-box--primary-light {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-container);
}

[data-theme="dark"] .icon-box--secondary {
    background: var(--secondary-container);
}

/* ════════════════════════════════════════════
   13. LABELS & LINKS
   ════════════════════════════════════════════ */

.label-primary {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
}

.link-primary {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--primary);
    font-weight: 700;
    font-size: .9375rem;
    transition: gap .2s;
}

.link-primary:hover {
    gap: .625rem;
}

.tag {
    display: inline-block;
    padding: .375rem 1rem;
    border-radius: var(--radius-md);
    background: var(--primary-fixed);
    color: var(--on-primary-fixed);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 71, 255, .12);
}

[data-theme="dark"] .tag {
    background: rgba(0, 71, 255, .2);
    color: var(--primary);
    border-color: rgba(0, 71, 255, .3);
}

/* ════════════════════════════════════════════
   14. FEATURED DITE
   ════════════════════════════════════════════ */

.featured {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .featured {
        grid-template-columns: 1fr 1fr;
    }
}

.featured__media {
    position: relative;
}

.featured__glow {
    position: absolute;
    top: -2.5rem;
    left: -2.5rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(0, 71, 255, .1);
    filter: blur(3rem);
    pointer-events: none;
}

[data-theme="dark"] .featured__glow {
    background: rgba(0, 71, 255, .2);
}

.featured__frame {
    position: relative;
    background: var(--surface-container);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--outline-variant);
}

[data-theme="dark"] .featured__frame {
    background: var(--surface-container);
    border-color: var(--surface-container-high);
}

.featured__img {
    width: 100%;
    border-radius: 1.5rem;
    aspect-ratio: 16/9;
    object-fit: contain;
    background: var(--surface-container-low);
}

[data-theme="dark"] .featured__img {
    filter: brightness(.9) contrast(1.1);
}

.featured__badge {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: #ffffff;
    border-radius: 1.125rem;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
}

[data-theme="dark"] .featured__badge {
    background: var(--surface-container-high);
    border: 1px solid var(--outline-variant);
}

.featured__badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, .12);
    color: #059669;
    font-size: 1.375rem;
}

[data-theme="dark"] .featured__badge-icon {
    background: rgba(16, 185, 129, .18);
    color: #34d399;
}

.featured__badge-label {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--on-surface-variant);
}

.featured__badge-value {
    font-size: .875rem;
    font-weight: 700;
    color: var(--on-surface);
}

[data-theme="dark"] .featured__badge-value {
    color: #ffffff;
}

.featured__title {
    font-family: var(--font-headline);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .featured__title {
    color: #ffffff;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-list__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 1.375rem;
}

.feature-list__name {
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: .25rem;
    font-size: .9375rem;
}

[data-theme="dark"] .feature-list__name {
    color: #ffffff;
}

.feature-list__desc {
    font-size: .875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
}

/* ════════════════════════════════════════════
   15. BENEFITS
   ════════════════════════════════════════════ */

.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .benefits {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.benefit__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--surface-container-lowest);
    box-shadow: var(--shadow-sm);
    color: var(--primary);
    font-size: 1.875rem;
    margin-bottom: 2rem;
    border: 1px solid var(--outline-variant);
}

[data-theme="dark"] .benefit__icon {
    background: var(--surface-container);
    border-color: var(--surface-container-high);
}

.benefit__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1rem;
}

[data-theme="dark"] .benefit__title {
    color: #ffffff;
}

.benefit__desc {
    color: var(--on-surface-variant);
    font-size: .9375rem;
    line-height: 1.65;
}

/* ════════════════════════════════════════════
   16. TECH & TRUST
   ════════════════════════════════════════════ */

.tech {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .tech {
        grid-template-columns: 1fr 1fr;
    }
}

.tech__title {
    font-family: var(--font-headline);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-section-text);
}

.tech__desc {
    color: rgba(196, 197, 218, .85);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.tech__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    opacity: .6;
}

.tech__stack-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: .9375rem;
    color: var(--dark-section-text);
}

.tech__card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 2.5rem;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
}

.tech__card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-section-text);
    margin-bottom: 1rem;
}

.tech__card-desc {
    color: rgba(255, 255, 255, .7);
    font-size: .9375rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ════════════════════════════════════════════
   17. FOOTER
   ════════════════════════════════════════════ */

.footer {
    background: var(--surface-container-low);
    border-top: 1px solid var(--outline-variant);
    padding-block: 4rem;
    padding-inline: 1.5rem;
}

[data-theme="dark"] .footer {
    background: var(--background);
    border-color: var(--surface-container-high);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer__logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .footer__logo {
    color: #ffffff;
}

.footer__tagline {
    font-size: .875rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    color: var(--on-surface-variant);
    font-size: 1.25rem;
    opacity: .6;
}

.footer__col-title {
    display: block;
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__links a {
    font-size: .875rem;
    color: var(--on-surface-variant);
    transition: color .2s, transform .2s;
    display: inline-block;
}

.footer__links a:hover {
    color: var(--primary);
    transform: translateX(.25rem);
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer__copy {
    font-size: .75rem;
    color: var(--on-surface-variant);
    opacity: .75;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer__bottom-links {
    display: flex;
    gap: 1.5rem;
    margin-top: .5rem;
}

.footer__bottom-link {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--on-surface-variant);
    opacity: .5;
    transition: opacity .2s, color .2s;
}

.footer__bottom-link:hover {
    opacity: 1;
    color: var(--primary);
}

.footer__bottom-link--active {
    opacity: 1;
    color: var(--primary);
}

.footer__regions {
    display: flex;
    gap: 1.5rem;
}

.footer__regions span {
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
}

/* ════════════════════════════════════════════
   18. SCROLLBAR (cosmetic, optional)
   ════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-container-low);
}

::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--outline);
}

/* ════════════════════════════════════════════
   19. FOCUS (accessibility)
   ════════════════════════════════════════════ */

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ════════════════════════════════════════════
   20. TRANSITION HELPERS
   ════════════════════════════════════════════ */

.nav,
.mobile-menu,
.footer,
.section,
.btn-primary,
.btn-secondary,
.btn-ghost {
    transition-property: background-color, color, border-color, box-shadow, opacity, transform;
    transition-duration: .25s;
    transition-timing-function: ease;
}