/* ============================================================================
   FACEFIRST LANDING PAGE — landing.css
   Dark / Light theme · Fully responsive · Hamburger nav
   ============================================================================ */

/* ── TOKENS ── */
:root {
    --green:        #2ecc71;
    --green-hover:  #27ae60;
    --green-glow:   rgba(46, 204, 113, .18);
    --green-border: rgba(46, 204, 113, .28);
    --green-dim:    rgba(46, 204, 113, .08);

    /* Dark theme (default) */
    --bg-0:     #09090b;
    --bg-1:     #0f1013;
    --bg-2:     #16181c;
    --bg-3:     #1e2127;
    --bg-4:     #252830;
    --border:   rgba(255,255,255,.07);
    --border-2: rgba(255,255,255,.12);
    --text-1:   #f4f4f5;
    --text-2:   #a1a1aa;
    --text-3:   #52525b;
    --shadow:   0 24px 64px rgba(0,0,0,.55);

    --font-display: 'Syne', sans-serif;
    --font-body:    'DM Sans', sans-serif;

    --nav-h:     68px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* Light theme overrides */
[data-theme="light"] {
    --bg-0:     #f8f9fb;
    --bg-1:     #ffffff;
    --bg-2:     #f1f3f6;
    --bg-3:     #e8ebf0;
    --bg-4:     #dde1e8;
    --border:   rgba(0,0,0,.07);
    --border-2: rgba(0,0,0,.13);
    --text-1:   #0f0f10;
    --text-2:   #4b5563;
    --text-3:   #9ca3af;
    --shadow:   0 16px 48px rgba(0,0,0,.1);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-0);
    color: var(--text-1);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}
img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── NOISE GRAIN ── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── CONTAINER ── */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── SECTION PAD ── */
.section-pad { padding: 6rem 0; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #000;
}
.btn-primary:hover {
    background: var(--green-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,204,113,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border-2);
}
.btn-ghost:hover {
    color: var(--text-1);
    border-color: var(--border-2);
    background: var(--bg-3);
    transform: translateY(-2px);
}

.btn-nav-cta {
    background: var(--green);
    color: #000;
    padding: .55rem 1.25rem;
    font-size: .85rem;
    border-radius: var(--radius-sm);
}
.btn-nav-cta:hover { background: var(--green-hover); transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: var(--nav-h);
    background: rgba(9,9,11,.88);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition), height var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(248,249,251,.9);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--green);
    flex-shrink: 0;
}
.nav-logo span { color: var(--text-1); transition: color var(--transition); }

.nav-links {
    display: flex;
    gap: 2.25rem;
    margin-left: auto;
}
.nav-links a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-2);
    letter-spacing: .2px;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: 1.5rem;
}

/* Theme toggle */
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    background: var(--bg-3);
    border: 1px solid var(--border);
    transition: all var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-1); border-color: var(--border-2); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Hide sun in dark, moon in light */
[data-theme="dark"]  .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    border: 1px solid var(--border);
    margin-left: auto;
    transition: background var(--transition);
}
.hamburger:hover { background: var(--bg-4); }
.hamburger span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
    transform-origin: center;
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    z-index: 190;
    background: var(--bg-1);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem 2rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s ease;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.5rem; }
.mobile-link {
    display: block;
    padding: .75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}
.mobile-link:hover { color: var(--green); }

.mobile-actions { display: flex; flex-direction: column; gap: .75rem; }
.mobile-theme {
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    justify-content: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: var(--text-2);
}
.theme-label { font-family: var(--font-body); font-weight: 500; }

/* Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -10%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 500px;
    background: radial-gradient(ellipse, var(--green-glow) 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    border-radius: 100px;
    padding: .35rem 1rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: .25; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 7vw, 5.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2.5px;
    color: var(--text-1);
    margin-bottom: 1.4rem;
    transition: color var(--transition);
}

.hero-title em {
    font-style: normal;
    color: var(--green);
    position: relative;
}
.hero-title em::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), transparent);
    border-radius: 2px;
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 520px;
    margin-bottom: 2.25rem;
    line-height: 1.8;
    transition: color var(--transition);
}

.hero-ctas {
    display: flex;
    gap: .875rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3.5rem;
}

/* Scanner */
.scanner-wrap { display: flex; justify-content: center; }

.scanner {
    position: relative;
    width: 200px; height: 240px;
}

.s-ring {
    position: absolute; inset: 0;
    border: 1.5px solid var(--green-border);
    border-radius: 50%;
    animation: ring-pulse 3.5s ease-in-out infinite;
}
.s-ring.r2 { inset: 22px; border-color: rgba(46,204,113,.18); animation-delay: .6s; }
.s-ring.r3 { inset: 44px; border-color: rgba(46,204,113,.1);  animation-delay: 1.2s; }

@keyframes ring-pulse {
    0%,100% { transform: scale(1); opacity: .9; }
    50%      { transform: scale(1.05); opacity: .4; }
}

.s-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--green);
    border-style: solid;
    opacity: .75;
}
.s-corner.tl { top: 14px;  left: 18px;  border-width: 2px 0 0 2px; }
.s-corner.tr { top: 14px;  right: 18px; border-width: 2px 2px 0 0; }
.s-corner.bl { bottom: 14px; left: 18px;  border-width: 0 0 2px 2px; }
.s-corner.br { bottom: 14px; right: 18px; border-width: 0 2px 2px 0; }

.s-scan-line {
    position: absolute;
    left: 50%; top: 18%;
    width: 78%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    transform: translateX(-50%);
    animation: scan-anim 2.8s ease-in-out infinite;
    border-radius: 2px;
}
@keyframes scan-anim {
    0%   { top: 18%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 82%; opacity: 0; }
}

.s-face {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.s-face svg { width: 72px; height: 72px; color: var(--green); opacity: .75; }

/* ── FEATURES ── */
.features { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    color: var(--text-1);
    margin-bottom: .75rem;
    transition: color var(--transition);
}

.section-sub {
    font-size: .95rem;
    color: var(--text-2);
    max-width: 460px;
    margin: 0 auto;
    line-height: 1.75;
    transition: color var(--transition);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--bg-2);
    padding: 2.25rem 1.75rem;
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.feature-card:hover { background: var(--bg-3); }
.feature-card:hover::before { opacity: 1; }

.feat-icon {
    width: 44px; height: 44px;
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: .98rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: .5rem;
    transition: color var(--transition);
}
.feature-card p {
    font-size: .875rem;
    color: var(--text-3);
    line-height: 1.7;
    transition: color var(--transition);
}

/* ── HOW IT WORKS ── */
.how { background: var(--bg-0); }

.how-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.how-text .section-sub { margin: 0 0 2.5rem; max-width: 100%; }

.steps { display: flex; flex-direction: column; }

.step {
    display: flex;
    gap: 1.25rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }

.step-num {
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: 1px;
    flex-shrink: 0;
    width: 2rem;
    padding-top: .1rem;
}

.step h4 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: .3rem;
    transition: color var(--transition);
}
.step p {
    font-size: .86rem;
    color: var(--text-3);
    line-height: 1.7;
    transition: color var(--transition);
}

/* Terminal */
.terminal {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.t-bar {
    background: var(--bg-4);
    border-bottom: 1px solid var(--border);
    padding: .8rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .45rem;
}
.t-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.t-dot:nth-child(1) { background: #ff5f57; }
.t-dot:nth-child(2) { background: #febc2e; }
.t-dot:nth-child(3) { background: #28c840; }
.t-title {
    margin-left: auto;
    font-size: .7rem;
    color: var(--text-3);
    letter-spacing: .5px;
    font-family: 'Courier New', monospace;
}

.t-body {
    padding: 1.25rem 1.25rem 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    line-height: 1.95;
}
.t-row { display: flex; gap: .6rem; flex-wrap: nowrap; }
.t-time { color: var(--text-3); flex-shrink: 0; }
.t-ok   { color: var(--green); flex-shrink: 0; }
.t-warn { color: #f39c12; flex-shrink: 0; }
.t-info { color: #3b9edd; flex-shrink: 0; }
.t-text { color: var(--text-2); }
.t-cursor {
    display: inline-block;
    width: 7px; height: 13px;
    background: var(--green);
    vertical-align: middle;
    margin-left: 2px;
    animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ── PORTALS ── */
.portals {
    background: var(--bg-1);
    border-top: 1px solid var(--border);
}

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

.portal-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.portal-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--green-dim), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
}
.portal-card:hover {
    border-color: var(--green-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.portal-card:hover::after { opacity: 1; }

.portal-register {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    border-style: dashed;
    padding: 1.75rem 2rem;
}
.portal-register:hover { border-style: solid; }
.portal-register .portal-arrow { margin-left: auto; flex-shrink: 0; }

.portal-emoji { font-size: 2rem; }
.portal-register .portal-emoji { font-size: 1.75rem; flex-shrink: 0; }

.portal-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    transition: color var(--transition);
}
.portal-card p {
    font-size: .85rem;
    color: var(--text-3);
    line-height: 1.65;
    flex: 1;
    transition: color var(--transition);
}

.portal-arrow {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--green);
    transition: gap var(--transition);
    margin-top: .5rem;
    white-space: nowrap;
}
.portal-card:hover .portal-arrow { gap: .6rem; }

/* ── FOOTER ── */
.footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    padding: 2.25rem 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--green);
}
.footer-logo span { color: var(--text-3); }
.footer-copy { font-size: .8rem; color: var(--text-3); }

/* ============================================================================
   LOGIN MODAL
   ============================================================================ */

   .modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal {
    background: var(--bg-1);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
    transform: translateY(24px) scale(.97);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.modal-backdrop.open .login-modal {
    transform: translateY(0) scale(1);
}

/* Header */
.lm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
}
.lm-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--green);
}
.lm-logo span { color: var(--text-1); transition: color var(--transition); }

.lm-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-3);
    background: var(--bg-3);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.lm-close:hover { color: var(--text-1); background: var(--bg-4); }

/* Step indicator */
.lm-steps {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1.25rem 1.5rem .75rem;
}
.lm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}
.lm-step-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg-4);
    border: 2px solid var(--border-2);
    transition: all var(--transition);
}
.lm-step.active .lm-step-dot {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,204,113,.2);
}
.lm-step.done .lm-step-dot {
    background: var(--green);
    border-color: var(--green);
}
.lm-step-label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-3);
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: color var(--transition);
}
.lm-step.active .lm-step-label { color: var(--green); }
.lm-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 .5rem;
    margin-bottom: 1.1rem;
    transition: background var(--transition);
}

/* Panes */
.lm-pane {
    display: none;
    padding: 1rem 1.5rem 1.75rem;
    animation: lm-slide-in .3s ease;
}
.lm-pane.active { display: block; }

@keyframes lm-slide-in {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: none; }
}

.lm-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: .3rem;
    transition: color var(--transition);
}
.lm-sub {
    font-size: .875rem;
    color: var(--text-3);
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}

/* Form */
.lm-form-group {
    margin-bottom: 1.1rem;
}
.lm-form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: .4rem;
    transition: color var(--transition);
}
.lm-input {
    width: 100%;
    padding: .8rem 1rem;
    background: var(--bg-2);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-1);
    font-family: var(--font-body);
    font-size: .95rem;
    transition: all var(--transition);
}
.lm-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46,204,113,.12);
}
.lm-input::placeholder { color: var(--text-3); }

.lm-input-wrap {
    position: relative;
}
.lm-input-wrap .lm-input {
    padding-right: 3rem;
}
.lm-eye {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-3);
    transition: color var(--transition);
}
.lm-eye:hover { color: var(--text-1); }

/* Error */
.lm-error {
    font-size: .82rem;
    color: #f87171;
    background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.25);
    border-radius: var(--radius-sm);
    padding: .6rem .875rem;
    margin-bottom: .875rem;
    display: none;
}
.lm-error.visible { display: block; }

/* Btn full width */
.lm-btn-continue { margin-top: .25rem; }

/* Divider */
.lm-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0 .875rem;
    color: var(--text-3);
    font-size: .8rem;
}
.lm-divider::before,
.lm-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.lm-register-link {
    width: 100%;
    text-align: center;
    font-size: .875rem;
    font-weight: 600;
    color: var(--green);
    background: transparent;
    border: 1px solid var(--green-border);
    border-radius: var(--radius-sm);
    padding: .7rem;
    transition: all var(--transition);
}
.lm-register-link:hover {
    background: var(--green-dim);
}

.lm-back-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: .875rem;
    font-size: .875rem;
    color: var(--text-3);
    background: transparent;
    border: none;
    transition: color var(--transition);
}
.lm-back-link:hover { color: var(--text-1); }

/* Camera */
.lm-camera-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
}
#lmVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    display: block;
}
.lm-canvas-hidden { display: none; }

.lm-face-guide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.lm-face-oval {
    width: 58%;
    height: 80%;
    border: 2.5px solid rgba(46,204,113,.7);
    border-radius: 50%;
    box-shadow:
        0 0 0 99999px rgba(0,0,0,.45),
        inset 0 0 24px rgba(46,204,113,.2);
    animation: oval-pulse 2.5s ease-in-out infinite;
}
@keyframes oval-pulse {
    0%,100% { border-color: rgba(46,204,113,.7); }
    50%      { border-color: rgba(46,204,113,1); }
}
.lm-scan-line {
    position: absolute;
    left: 21%; width: 58%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    animation: lm-scan 2.5s ease-in-out infinite;
    border-radius: 2px;
}
@keyframes lm-scan {
    0%   { top: 10%; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

.lm-cam-status {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    padding: 1.25rem .875rem .6rem;
    font-size: .78rem;
    color: rgba(255,255,255,.85);
    text-align: center;
}

/* Countdown */
.lm-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.4);
    border-radius: var(--radius-md);
}
.lm-countdown.hidden { display: none; }
.lm-count-circle {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: rgba(46,204,113,.9);
    display: flex; align-items: center; justify-content: center;
    animation: count-pop .4s ease;
}
@keyframes count-pop {
    from { transform: scale(1.3); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
#lmCountNum {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
}

/* Loading */
.lm-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
}
.lm-spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lm-loading p { color: var(--text-3); font-size: .9rem; }

/* ============================================================================
   REGISTER SLIDE-IN PANEL
   ============================================================================ */

.reg-backdrop {
    position: fixed;
    inset: 0;
    z-index: 490;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.reg-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.reg-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 495;
    width: min(600px, 100vw);
    background: var(--bg-1);
    border-left: 1px solid var(--border-2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -16px 0 48px rgba(0,0,0,.4);
}
.reg-panel.open {
    transform: translateX(0);
}

.reg-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-2);
}
.reg-panel-title {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-1);
    transition: color var(--transition);
}
.reg-panel-close {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-3);
    background: var(--bg-3);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.reg-panel-close:hover { color: var(--text-1); background: var(--bg-4); }

.reg-frame {
    flex: 1;
    border: none;
    width: 100%;
}

/* Mobile: panel takes full width */
@media (max-width: 600px) {
    .reg-panel { width: 100vw; border-left: none; }
    .login-modal { max-width: 100%; border-radius: var(--radius-md); }
}

/* ── SCROLL REVEAL ── */
.fade-up {
    opacity: 0;
    transform: translateY(22px);
    animation: fade-up-anim .65s cubic-bezier(.4,0,.2,1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes fade-up-anim {
    to { opacity: 1; transform: none; }
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Stagger children in grids */
.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: .07s; }
.features-grid .reveal:nth-child(3) { transition-delay: .14s; }
.features-grid .reveal:nth-child(4) { transition-delay: .21s; }
.features-grid .reveal:nth-child(5) { transition-delay: .28s; }
.features-grid .reveal:nth-child(6) { transition-delay: .35s; }

.portals-grid .reveal:nth-child(1) { transition-delay: 0s; }
.portals-grid .reveal:nth-child(2) { transition-delay: .08s; }
.portals-grid .reveal:nth-child(3) { transition-delay: .16s; }
.portals-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 960px) {
    .nav-links, .nav-actions { display: none; }
    .hamburger { display: flex; }

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

    .how-layout { grid-template-columns: 1fr; gap: 3rem; }
    .terminal { position: static; }

    .portals-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-register { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 600px) {
    :root { --nav-h: 60px; }

    .section-pad { padding: 4rem 0; }

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

    .portals-grid { grid-template-columns: 1fr; }
    .portal-register {
        flex-direction: column;
        align-items: flex-start;
    }
    .portal-register .portal-arrow { margin-left: 0; }

    .hero-title { letter-spacing: -1.5px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }

    .footer-inner { flex-direction: column; text-align: center; }

    .t-body { font-size: .72rem; padding: 1rem; }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-title { font-size: 2.1rem; }
    .hero-badge { font-size: .68rem; }
}

/* ============================================================================
   ABOUT SECTION — add to the bottom of landing.css
   ============================================================================ */

/* ── ABOUT ── */
.about {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
}

/* Project info card */
.about-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.75rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.about-project::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-dim), transparent 50%);
    pointer-events: none;
}

.about-project-info {
    position: relative;
    z-index: 1;
}

.about-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--green-dim);
    border: 1px solid var(--green-border);
    border-radius: 100px;
    padding: .3rem .9rem;
    font-size: .7rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-project-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 560px;
    transition: color var(--transition);
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.about-meta-item {
    display: flex;
    align-items: baseline;
    gap: .75rem;
}

.about-meta-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: .8px;
    flex-shrink: 0;
    min-width: 80px;
}

.about-meta-value {
    font-size: .9rem;
    color: var(--text-2);
    transition: color var(--transition);
}

/* Logo decoration */
.about-project-logo {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.about-logo-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1.5px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-dim);
    animation: ring-pulse 3.5s ease-in-out infinite;
}

.about-logo-ring svg {
    width: 52px;
    height: 52px;
    color: var(--green);
    opacity: .8;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.team-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    border-color: var(--green-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

/* Photo area */
.team-photo-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-3);
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform .4s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.04);
}

/* Placeholder shown when no photo */
.team-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}

.team-photo-placeholder svg {
    width: 56px;
    height: 56px;
    color: var(--text-3);
    opacity: .5;
}

.team-photo-wrap img.team-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.team-photo-wrap {
    position: relative;
}

/* Info bar */
.team-info {
    padding: 1.1rem 1.25rem 1.25rem;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.team-role {
    font-size: .68rem;
    font-weight: 700;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-name {
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-1);
    line-height: 1.25;
    transition: color var(--transition);
}

/* Stagger reveal for team cards */
.team-grid .reveal:nth-child(1) { transition-delay: 0s; }
.team-grid .reveal:nth-child(2) { transition-delay: .08s; }
.team-grid .reveal:nth-child(3) { transition-delay: .16s; }
.team-grid .reveal:nth-child(4) { transition-delay: .24s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }

    .about-project {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    .about-project-logo { display: none; }
}

@media (max-width: 600px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: .875rem; }

    .about-project { padding: 1.5rem; }
    .about-meta-item { flex-direction: column; gap: .2rem; }
    .about-meta-label { min-width: unset; }
}

@media (max-width: 380px) {
    .team-grid { grid-template-columns: 1fr; }
}