/* ═══════════════════════════════════════════════════════
   OpenDriverUpdater — Landing Page Styles
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Root ──────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette */
    --bg:           #060a14;
    --bg-elevated:  #0c1222;
    --bg-card:      #111827;
    --bg-card-hover:#1a2540;
    --surface:      #1e293b;
    --border:       rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text:         #e2e8f0;
    --text-muted:   #94a3b8;
    --text-dim:     #64748b;

    --accent:       #38bdf8;
    --accent-glow:  rgba(56, 189, 248, 0.15);
    --accent-solid: #0ea5e9;
    --green:        #4ade80;
    --green-glow:   rgba(74, 222, 128, 0.12);
    --purple:       #a78bfa;
    --red:          #f87171;
    --orange:       #fbbf24;
    --blue:         #60a5fa;

    /* Typography */
    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:         'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;

    /* Spacing */
    --section-py:   120px;
    --inner-max:    1200px;

    /* Motion */
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --duration:     0.3s;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* ── Section Utilities ─────────────────────────────── */
.section__inner {
    max-width: var(--inner-max);
    margin: 0 auto;
    padding: 0 32px;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}

.section__desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent-solid), #2563eb);
    color: #fff;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.45), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 16px;
    border-radius: 14px;
}

/* ══════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.nav--scrolled {
    background: rgba(6, 10, 20, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav__inner {
    max-width: var(--inner-max);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
}

.nav__logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--duration);
}

.nav__links a:hover {
    color: #fff;
}

.nav__cta {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-hover);
    color: #fff !important;
    transition: all var(--duration) var(--ease);
}

.nav__cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 80px;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 32px;
    animation: fadeInDown 0.6s var(--ease) both;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero__title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s var(--ease) 0.1s both;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--accent), #818cf8, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
    animation: fadeInDown 0.6s var(--ease) 0.2s both;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInDown 0.6s var(--ease) 0.3s both;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInDown 0.6s var(--ease) 0.4s both;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.hero__stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Terminal Window */
.hero__visual {
    position: absolute;
    right: -80px;
    bottom: 40px;
    width: 520px;
    z-index: 1;
    opacity: 0.5;
    transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
    pointer-events: none;
}

.hero__window {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero__window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.hero__window-bar > span:nth-child(-n+3) {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
}

.hero__window-bar > span:nth-child(1) { background: #f87171; }
.hero__window-bar > span:nth-child(2) { background: #fbbf24; }
.hero__window-bar > span:nth-child(3) { background: #4ade80; }

.hero__window-title {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.hero__window-body {
    padding: 20px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-muted);
}

.hero__terminal-line {
    opacity: 0;
    animation: terminalType 0.4s var(--ease) forwards;
    white-space: pre;
}

.hero__terminal-line[data-delay="0"] { animation-delay: 0.8s; }
.hero__terminal-line[data-delay="1"] { animation-delay: 1.3s; }
.hero__terminal-line[data-delay="2"] { animation-delay: 1.9s; }
.hero__terminal-line[data-delay="3"] { animation-delay: 2.4s; }
.hero__terminal-line[data-delay="4"] { animation-delay: 3.2s; }
.hero__terminal-line[data-delay="5"] { animation-delay: 3.8s; }
.hero__terminal-line[data-delay="6"] { animation-delay: 4.3s; }
.hero__terminal-line[data-delay="7"] { animation-delay: 4.7s; }
.hero__terminal-line[data-delay="8"] { animation-delay: 5.1s; }

@keyframes terminalType {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Terminal Colors */
.t-prompt   { color: var(--green); }
.t-info     { color: var(--accent); }
.t-success  { color: var(--green); }
.t-accent   { color: var(--accent); font-weight: 600; }
.t-verified { color: var(--green); font-weight: 600; }
.t-trusted  { color: var(--blue); font-weight: 600; }
.t-dim      { color: var(--text-dim); }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════ */
.features {
    padding: var(--section-py) 0;
    position: relative;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card--wide {
    grid-column: 1 / -1;
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.feature-card__icon--green {
    background: var(--green-glow);
    border-color: rgba(74, 222, 128, 0.15);
    color: var(--green);
}

.feature-card__icon--blue {
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.15);
    color: var(--blue);
}

.feature-card__icon--purple {
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.15);
    color: var(--purple);
}

.feature-card__icon--red {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.15);
    color: var(--red);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   WHY OPEN SOURCE
   ══════════════════════════════════════════════════════ */
.opensource {
    padding: var(--section-py) 0;
    background: var(--bg-elevated);
}

.opensource__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.opensource__card {
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all 0.4s var(--ease);
    position: relative;
}

.opensource__card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.opensource__number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(56, 189, 248, 0.08);
    position: absolute;
    top: 24px;
    right: 28px;
    letter-spacing: -0.04em;
}

.opensource__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.opensource__card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════ */
.how-it-works {
    padding: var(--section-py) 0;
}

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 28px;
    position: relative;
    padding-bottom: 48px;
}

.step:last-child {
    padding-bottom: 0;
}

.step__number {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-solid), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.step__line {
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    opacity: 0.2;
}

.step__content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    padding-top: 2px;
}

.step__content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════
   SAFETY
   ══════════════════════════════════════════════════════ */
.safety {
    padding: var(--section-py) 0;
    background: var(--bg-elevated);
}

.safety__layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 80px;
    align-items: center;
}

.safety__text .section__title {
    text-align: left;
}

.safety__text .section__label {
    text-align: left;
}

.safety__text .section__desc {
    text-align: left;
    margin: 0 0 40px 0;
}

.safety__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.safety__list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.safety__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green-glow);
    border: 1px solid rgba(74, 222, 128, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
}

.safety__list li strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
}

.safety__list li span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Trust Card */
.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.trust-card__header {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.trust-card__score {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.trust-card__score span {
    font-size: 1.5rem;
    color: var(--text-dim);
    font-weight: 500;
}

.trust-card__level {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.trust-card__level--verified {
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.25);
}

.trust-card__details {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.trust-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-family: var(--mono);
}

.trust-card__row span:first-child {
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   CLI
   ══════════════════════════════════════════════════════ */
.cli {
    padding: var(--section-py) 0;
}

.cli__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

.cli__terminal {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cli__terminal .hero__terminal-line {
    opacity: 1;
    animation: none;
}

.cli__features {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 12px;
}

.cli__feature {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.4s var(--ease);
}

.cli__feature:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.cli__feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.cli__feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════════════ */
.cta-banner {
    padding: 100px 0;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(14, 165, 233, 0.1), transparent 70%);
    pointer-events: none;
}

.cta-banner__content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-banner__content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-banner__content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    max-width: var(--inner-max);
    margin: 0 auto;
    padding: 0 32px;
}

.footer__brand {
    margin-bottom: 48px;
}

.footer__logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 12px;
    object-fit: contain;
}

.footer__name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.footer__tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer__col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color var(--duration);
}

.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__visual { display: none; }

    .safety__layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    :root { --section-py: 80px; }

    .nav__links a:not(.nav__cta) { display: none; }

    .hero { padding: 120px 20px 60px; }
    .hero__title { font-size: 2.4rem; }
    .hero__stats { flex-direction: column; gap: 16px; }
    .hero__stat-divider { width: 40px; height: 1px; }

    .features__grid { grid-template-columns: 1fr; }
    .opensource__grid { grid-template-columns: 1fr; }
    .footer__links { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }

    .section__inner { padding: 0 20px; }
}
