/* ===================================================================
   IMAS - home.naeimas.space
   Hand-tuned dark-navy theme. No framework, no CDN besides fonts.
   =================================================================== */

:root {
    --ink:        #070b22;
    --ink-1:      #0a0e27;
    --ink-2:      #11173a;
    --ink-3:      #1a2150;
    --line:       rgba(255, 255, 255, 0.08);
    --line-2:     rgba(255, 255, 255, 0.14);
    --text:       #e6ebff;
    --text-dim:   #a3afd9;
    --text-mute:  #6b7aa8;

    --accent:     #4a7dff;
    --accent-2:   #00c2ff;
    --accent-3:   #7c5bff;
    --gold:       #ffb300;
    --green:      #00d18f;
    --red:        #ff5d6c;

    --grad-1:     linear-gradient(135deg, #4a7dff 0%, #00c2ff 100%);
    --grad-2:     linear-gradient(135deg, #7c5bff 0%, #4a7dff 60%, #00c2ff 100%);
    --grad-bg:    radial-gradient(1200px 600px at 80% -10%, rgba(124, 91, 255, 0.18), transparent 60%),
                  radial-gradient(900px 500px at 0% 10%, rgba(0, 194, 255, 0.12), transparent 60%);

    --radius:     14px;
    --radius-sm:  10px;
    --radius-lg:  20px;
    --shadow-1:   0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-2:   0 20px 60px rgba(0, 8, 40, 0.55);

    --container:  1180px;
    --transition: 220ms cubic-bezier(0.2, 0.7, 0.2, 1);

    --header-h:   72px;
}

/* ---------- Reset / base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--ink);
    background-image: var(--grad-bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.5em;
    color: var(--text);
}

h1 { font-size: clamp(2.2rem, 4.6vw + 0.5rem, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2.4vw + 0.5rem, 2.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }

p  { color: var(--text-dim); margin: 0 0 1em; }

code {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.85em;
    color: var(--accent-2);
    background: rgba(74, 125, 255, 0.08);
    padding: 0.15em 0.45em;
    border-radius: 6px;
    border: 1px solid var(--line);
    word-break: break-all;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-2);
    padding: 0.35em 0.8em;
    border: 1px solid rgba(0, 194, 255, 0.25);
    border-radius: 999px;
    background: rgba(0, 194, 255, 0.05);
    margin-bottom: 1em;
}

.grad {
    background: var(--grad-2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.7em 1.3em;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition),
                box-shadow var(--transition),
                background var(--transition),
                border-color var(--transition);
    white-space: nowrap;
}

.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; }

.btn-icon {
    display: inline-flex;
    width: 1.1em;
    height: 1.1em;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.btn-primary {
    background: var(--grad-1);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(74, 125, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(74, 125, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--accent-2); color: var(--text); }

.btn-lg { padding: 0.95em 1.6em; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { padding: 1.1em 2em;   font-size: 1.05rem; border-radius: var(--radius); }

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 34, 0.7);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    background: rgba(7, 11, 34, 0.9);
}

.nav-bar {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-text em {
    font-style: normal;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.nav-links a {
    padding: 0.55em 0.9em;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-cta { padding: 0.55em 1em; font-size: 0.85rem; }

.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--line-2);
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 18px;
    margin: 3px auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(48px, 7vw, 110px) 0 clamp(40px, 6vw, 90px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-text h1 { margin-top: 0.4em; }
.hero-text .lede { font-size: 1.1rem; max-width: 56ch; }

.hero-cta {
    display: flex;
    gap: 14px;
    margin: 2em 0 2.6em;
    flex-wrap: wrap;
}

.hero-meta {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    max-width: 540px;
}
.hero-meta li { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { color: var(--text); font-weight: 700; }
.hero-meta span { color: var(--text-mute); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Hero card mockup ---------- */

.hero-card {
    position: relative;
    perspective: 1500px;
}

.card-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(60% 60% at 60% 30%, rgba(124, 91, 255, 0.45), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: pulse 9s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.06); }
}

.card-window {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.9), rgba(10, 14, 39, 0.95));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
    transform: rotateY(-6deg) rotateX(4deg);
    transform-origin: 50% 50%;
    overflow: hidden;
}

.card-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 34, 0.6);
}
.card-titlebar .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.dot-r { background: #ff5d6c; }
.dot-y { background: #ffb300; }
.dot-g { background: #00d18f; }
.card-title {
    margin-left: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body { padding: 24px; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
}
.kpi span { display: block; font-size: 0.7rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.1em; }
.kpi strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
    margin-top: 4px;
}

.map-mock {
    position: relative;
    height: 170px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(74, 125, 255, 0.12) 0%, rgba(0, 194, 255, 0.04) 100%),
        rgba(7, 11, 34, 0.6);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-bottom: 18px;
}
.map-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}
.pin {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(74, 125, 255, 0.25), 0 4px 8px rgba(0, 0, 0, 0.4);
}
.pin-1 { top: 28%; left: 22%; }
.pin-2 { top: 58%; left: 36%; background: var(--gold);  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.25); }
.pin-3 { top: 38%; left: 62%; background: var(--green); box-shadow: 0 0 0 3px rgba(0, 209, 143, 0.25); }
.pin-4 { top: 70%; left: 75%; background: var(--red);   box-shadow: 0 0 0 3px rgba(255, 93, 108, 0.25); }
.pin-5 { top: 18%; left: 80%; }
.ping {
    position: absolute;
    top: 38%; left: 62%;
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: ping 2.4s ease-out infinite;
    transform-origin: center;
}
@keyframes ping {
    0%   { transform: scale(1);   opacity: 0.8; }
    100% { transform: scale(4.5); opacity: 0; }
}

.trend-mock {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 72px;
}
.bar {
    flex: 1;
    height: var(--h);
    background: var(--grad-1);
    border-radius: 6px 6px 2px 2px;
    transform-origin: bottom;
    animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.bar:nth-child(1) { animation-delay: 0.05s; }
.bar:nth-child(2) { animation-delay: 0.15s; }
.bar:nth-child(3) { animation-delay: 0.25s; }
.bar:nth-child(4) { animation-delay: 0.35s; }
.bar:nth-child(5) { animation-delay: 0.45s; }
.bar:nth-child(6) { animation-delay: 0.55s; }
.bar:nth-child(7) { animation-delay: 0.65s; }
@keyframes rise {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section-alt {
    background:
        linear-gradient(180deg, transparent, rgba(7, 11, 34, 0.5)),
        radial-gradient(800px 400px at 50% 0%, rgba(74, 125, 255, 0.08), transparent 70%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section-head .eyebrow { margin-bottom: 1.2em; }
.section-head p { font-size: 1.05rem; }

/* ---------- Feature grid ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    padding: 28px;
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.5), rgba(10, 14, 39, 0.5));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at 50% -50%, rgba(74, 125, 255, 0.12), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 125, 255, 0.35);
    box-shadow: var(--shadow-2);
}
.feature:hover::before { opacity: 1; }

.feature-art {
    aspect-ratio: 200 / 120;
    margin: -28px -28px 22px;
    width: calc(100% + 56px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(140% 100% at 50% 0%, rgba(74, 125, 255, 0.18), transparent 60%),
        linear-gradient(180deg, rgba(7, 11, 34, 0.55), rgba(7, 11, 34, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ----- Featured AI hero card (Dust) ----- */

.feature-hero {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    padding: 0;
    margin-bottom: 24px;
    background:
        radial-gradient(800px 320px at 30% 50%, rgba(124, 91, 255, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(26, 33, 80, 0.55), rgba(10, 14, 39, 0.65));
    border: 1px solid rgba(124, 91, 255, 0.4);
    overflow: hidden;
    position: relative;
}
.feature-hero:hover { transform: none; }
.feature-hero::before { content: none; }

.feature-hero-art {
    background:
        radial-gradient(60% 70% at 50% 50%, rgba(124, 91, 255, 0.25), transparent 70%),
        linear-gradient(135deg, #070b22 0%, #11173a 100%);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 24px;
}
.feature-hero-art svg {
    width: 100%;
    height: 100%;
    max-height: 280px;
    filter: drop-shadow(0 12px 40px rgba(124, 91, 255, 0.35));
}

.feature-hero-text {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-hero h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 0.6em; }

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.35em 0.8em;
    background: var(--grad-2);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(124, 91, 255, 0.4);
    align-self: flex-start;
    margin-bottom: 18px;
}

.dust-bullets {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 14px;
}
.dust-bullets li {
    padding: 12px 14px;
    background: rgba(7, 11, 34, 0.45);
    border: 1px solid var(--line);
    border-radius: 10px;
    border-left: 3px solid var(--accent-3);
}
.dust-bullets span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    font-weight: 600;
    margin-bottom: 4px;
}
.dust-bullets em {
    font-style: normal;
    color: var(--text-dim);
    font-size: 0.92rem;
}

@keyframes dustOrbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.feature-art svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.feature:hover .feature-art svg { transform: scale(1.04); }

.feature h3 { margin-bottom: 0.5em; color: var(--text); font-size: 1.15rem; }
.feature p  { margin: 0; }

/* The feature card was originally padded uniformly. With the artwork
   bleeding to the edges via negative margins, we no longer want top
   padding because the art owns that space. */
.feature { padding-top: 0; }
.feature h3, .feature p { padding-left: 0; padding-right: 0; }

/* ---------- How it works (flow) ---------- */

.flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: stretch;
    max-width: 980px;
    margin: 0 auto;
}

.flow-card {
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.5), rgba(10, 14, 39, 0.5));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}
.flow-step {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-2);
    background: rgba(0, 194, 255, 0.08);
    border: 1px solid rgba(0, 194, 255, 0.25);
    border-radius: 6px;
    padding: 0.25em 0.6em;
    display: inline-block;
    margin-bottom: 1em;
}
.flow-card h3 { font-size: 1.4rem; margin-bottom: 0.5em; }

.flow-arrow {
    align-self: center;
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.6;
}

.checks {
    list-style: none;
    padding: 0; margin: 1em 0 0;
    display: grid; gap: 6px;
}
.checks li {
    padding-left: 24px;
    position: relative;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.checks li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}

/* ---------- Download section ---------- */

.section-download .section-head { margin-bottom: 40px; }

.download-card {
    max-width: 920px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.6), rgba(10, 14, 39, 0.7));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-2);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: center;
}

.download-meta dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 22px;
}
.download-meta dl > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}
.download-meta dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); }
.download-meta dd { margin: 0; color: var(--text); font-weight: 500; word-break: break-word; }
.download-meta .hash { grid-column: 1 / -1; }
.download-meta .hash dd { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-dim); }

.download-action { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.download-action small { color: var(--text-mute); font-size: 0.78rem; line-height: 1.5; text-align: center; }

/* ---------- About + CTA ---------- */

.about-head {
    max-width: 820px;
    margin: 0 auto 56px;
}
.about-head p { font-size: 1.05rem; }
.about-head strong { color: var(--text); }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1080px;
    margin: 0 auto;
}

.team-card {
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.5), rgba(10, 14, 39, 0.55));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.team-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 125, 255, 0.35);
    box-shadow: var(--shadow-2);
}

.team-card h3 {
    font-size: 1.15rem;
    margin: 0 0 4px;
    color: var(--text);
}
.team-role {
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
}
.team-bio {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin: 0;
}

.team-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-2);
    box-shadow: 0 10px 30px rgba(7, 11, 34, 0.5), inset 0 0 0 3px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}
.team-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 50% 30%, rgba(255, 255, 255, 0.18), transparent 70%);
    pointer-events: none;
}
.team-avatar span {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}
.avatar-gold   { background: linear-gradient(135deg, #ffb300 0%, #ff8a00 100%); }
.avatar-blue   { background: linear-gradient(135deg, #4a7dff 0%, #00c2ff 100%); }
.avatar-purple { background: linear-gradient(135deg, #7c5bff 0%, #4a7dff 100%); }

.section-powered { padding: 64px 0; }
.powered-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.55), rgba(10, 14, 39, 0.7));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow-1);
}
.powered-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-mute);
    margin-bottom: 18px;
}
.powered-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}
.powered-brand img { border-radius: 12px; }
.powered-brand strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    background: var(--grad-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.powered-brand small {
    display: block;
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ---------- Footer ---------- */

.site-footer {
    background: linear-gradient(180deg, transparent, rgba(7, 11, 34, 0.85));
    border-top: 1px solid var(--line);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.footer-logo img { border-radius: 10px; }
.footer-logo strong { display: block; font-size: 1.05rem; font-weight: 800; }
.footer-logo small { display: block; color: var(--text-dim); font-size: 0.78rem; }
.footer-tagline { color: var(--text-dim); max-width: 36ch; font-size: 0.95rem; }

.footer-col h4 { color: var(--text); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col ul a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col ul a:hover { color: var(--accent-2); }

.release-meta li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.release-meta li:last-child { border-bottom: 0; }
.release-meta span { color: var(--text-mute); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.release-meta strong { color: var(--text); font-size: 0.92rem; font-weight: 600; }
.release-meta strong.ok   { color: var(--green); }
.release-meta strong.warn { color: var(--gold); }

.footer-base { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-base-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
    .hero-grid       { grid-template-columns: 1fr; gap: 36px; }
    .feature-grid    { grid-template-columns: repeat(2, 1fr); }
    .feature-hero    { grid-template-columns: 1fr; }
    .feature-hero-art { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
    .feature-hero-text { padding: 28px; }
    .flow            { grid-template-columns: 1fr; }
    .flow-arrow      { transform: rotate(90deg); justify-self: center; }
    .download-card   { grid-template-columns: 1fr; padding: 28px; }
    .team-grid       { grid-template-columns: repeat(2, 1fr); }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .card-window     { transform: none; }
}

@media (max-width: 700px) {
    .nav-links { display: none; }
    .nav-cta   { display: none; }
    .nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }

    .nav-bar.open + .mobile-menu,
    .site-header.open .mobile-menu { display: block; }

    .feature-grid { grid-template-columns: 1fr; }
    .team-grid    { grid-template-columns: 1fr; }
    .footer-grid  { grid-template-columns: 1fr 1fr; }
    .download-meta dl { grid-template-columns: 1fr; }
    .feature-hero h3  { font-size: 1.35rem; }
}

@media (max-width: 460px) {
    .footer-grid       { grid-template-columns: 1fr; }
    .hero-meta         { grid-template-columns: 1fr 1fr; }
    .hero-cta .btn     { width: 100%; }
    .download-action   { width: 100%; }
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(7, 11, 34, 0.95);
    padding: 16px 0;
}
.mobile-menu .container { display: grid; gap: 4px; }
.mobile-menu a {
    color: var(--text);
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 0.95rem;
}
.mobile-menu a:hover { background: rgba(255, 255, 255, 0.04); }
.mobile-menu .btn { margin-top: 12px; }

.site-header.open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Authenticated download modal ---------- */

html.auth-modal-open { overflow: hidden; }

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-modal[hidden] { display: none; }

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 34, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: authFade 220ms ease-out;
}

.auth-modal-card {
    position: relative;
    width: min(420px, 100%);
    background: linear-gradient(180deg, rgba(26, 33, 80, 0.95), rgba(10, 14, 39, 0.98));
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 28px 28px 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(74, 125, 255, 0.18) inset;
    animation: authPop 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes authPop {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.auth-modal-close:hover {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(74, 125, 255, 0.12);
}

.auth-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.auth-modal-head img { border-radius: 10px; }
.auth-modal-head strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.auth-modal-head small {
    display: block;
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-top: 2px;
}

.auth-form { display: grid; gap: 14px; }

.auth-field { display: grid; gap: 6px; }
.auth-field span {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-mute);
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(7, 11, 34, 0.6);
    color: var(--text);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.auth-field input::placeholder { color: var(--text-mute); }
.auth-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(7, 11, 34, 0.85);
    box-shadow: 0 0 0 3px rgba(74, 125, 255, 0.18);
}

.auth-error {
    background: rgba(255, 93, 108, 0.08);
    border: 1px solid rgba(255, 93, 108, 0.35);
    color: #ffb3ba;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    line-height: 1.4;
}

.auth-submit { width: 100%; margin-top: 4px; }
.auth-submit:disabled { opacity: 0.7; cursor: progress; }

.auth-hint {
    margin: 12px 0 0;
    color: var(--text-mute);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

/* Action row on the success view (Retry + Close, side by side). */
.auth-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.auth-actions .btn { width: 100%; }

@media (max-width: 460px) {
    .auth-modal-card { padding: 22px 20px 20px; }
    .auth-modal-head strong { font-size: 1rem; }
    .auth-actions { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
