/* =============================================================================
   ElektrikArenası — Design System
   Premium, light-first. Inspired by Apple / Linear / Stripe. No Bootstrap look.
   Palette per AGENTS.md Visual Style.
   ============================================================================= */

:root {
    /* Color tokens */
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --surface-2: #F1F5F9;
    --border: #E5E7EB;
    --border-strong: #D1D5DB;
    --text: #111827;
    --muted: #6B7280;
    --muted-2: #9CA3AF;
    --primary: #6D4AFF;
    --primary-600: #5B38E8;
    --secondary: #8B5CF6;
    --primary-tint: #F3F0FF;
    --primary-tint-2: #EDE9FE;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #6D4AFF 0%, #8B5CF6 100%);
    --grad-soft: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --grad-mesh:
        radial-gradient(1100px 600px at 12% -10%, rgba(109,74,255,.16), transparent 60%),
        radial-gradient(900px 520px at 100% 0%, rgba(139,92,246,.14), transparent 55%),
        radial-gradient(700px 500px at 50% 120%, rgba(109,74,255,.10), transparent 60%);

    /* Typography */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --tracking-tight: -0.022em;
    --tracking-tighter: -0.035em;

    /* Radii */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(17,24,39,.05);
    --shadow-sm: 0 2px 8px rgba(17,24,39,.06);
    --shadow-md: 0 10px 30px rgba(17,24,39,.08);
    --shadow-lg: 0 24px 60px rgba(17,24,39,.12);
    --shadow-primary: 0 16px 40px rgba(109,74,255,.28);

    /* Spacing scale */
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
    --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
    --space-9: 96px; --space-10: 128px;

    /* Layout */
    --container: 1200px;
    --container-narrow: 880px;
    --nav-h: 72px;
}

/* ----------------------------- Reset --------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ----------------------------- Typography ---------------------------------- */
.display {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: var(--tracking-tighter);
    line-height: 1.02;
}
.h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: var(--tracking-tighter); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: var(--tracking-tighter); }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary);
}
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.text-muted { color: var(--muted); }

/* ----------------------------- Layout -------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }
.stack-sm > * + * { margin-top: 12px; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.flex { display: flex; }
.between { justify-content: space-between; align-items: center; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; }

/* ----------------------------- Buttons ------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 26px; border-radius: var(--r-pill);
    font-weight: 600; font-size: .98rem; border: 1px solid transparent;
    transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, color .25s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(109,74,255,.36); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-soft { background: var(--primary-tint); color: var(--primary-600); }
.btn-soft:hover { background: var(--primary-tint-2); }
.btn-sm { height: 40px; padding: 0 18px; font-size: .9rem; }
.btn-lg { height: 56px; padding: 0 32px; font-size: 1.05rem; }

/* ----------------------------- Badges -------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 28px; padding: 0 12px; border-radius: var(--r-pill);
    font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--muted);
    border: 1px solid var(--border);
}
.badge-primary { background: var(--primary-tint); color: var(--primary-600); border-color: transparent; }
.badge-featured { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-primary); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------------- Cards --------------------------------------- */
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
    overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* Company card */
.company-card { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.company-card .logo {
    width: 64px; height: 64px; border-radius: var(--r-md); background: var(--surface);
    border: 1px solid var(--border); display: grid; place-items: center;
    font-weight: 800; font-size: 1.4rem; color: var(--primary); letter-spacing: -.02em;
}
.company-card .meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.company-card .name { font-size: 1.18rem; font-weight: 700; letter-spacing: var(--tracking-tight); }
.company-card .desc { color: var(--muted); font-size: .96rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* Brand tile */
.brand-tile {
    aspect-ratio: 16/10; display: grid; place-items: center; gap: 10px; padding: 22px; text-align: center;
}
.brand-tile .mark {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: var(--grad-primary); color: #fff; font-weight: 800; font-size: 1.3rem;
    box-shadow: var(--shadow-primary);
}
.brand-tile .bname { font-weight: 700; }
.brand-tile .bsub { font-size: .82rem; color: var(--muted); }

/* News card */
.news-card { display: flex; flex-direction: column; }
.news-card .thumb { aspect-ratio: 16/9; background: var(--grad-mesh), var(--surface-2); position: relative; }
.news-card .thumb .k { position: absolute; left: 16px; top: 16px; }
.news-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.news-card .title { font-size: 1.1rem; font-weight: 700; letter-spacing: var(--tracking-tight); }
.news-card .excerpt { color: var(--muted); font-size: .94rem; }
.news-card .date { color: var(--muted-2); font-size: .82rem; }

/* Link with arrow */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary-600); }
.arrow-link svg { transition: transform .25s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ----------------------------- Navbar -------------------------------------- */
.nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: var(--tracking-tight); font-size: 1.12rem; }
.brand .spark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-primary); box-shadow: var(--shadow-primary); display: grid; place-items: center; color: #fff; font-size: 1rem; }
.brand .brand-logo-full { width: auto; height: 52px; max-width: 260px; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(109,74,255,.18)); }
.brand-logo-animated { animation: vm-float 6s ease-in-out infinite, vm-glow 4.8s ease-in-out infinite; transform-origin: center; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: var(--r-pill); color: var(--muted); font-weight: 500; font-size: .96rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; }

/* ----------------------------- Hero / Story -------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--grad-mesh), var(--bg); }
.hero-inner { padding-block: clamp(72px, 11vw, 150px); text-align: center; position: relative; z-index: 2; }
.hero .display { max-width: 16ch; margin-inline: auto; }
.hero .lead { max-width: 60ch; margin: 22px auto 0; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 64px); justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat .n { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: var(--tracking-tighter); }
.hero-stats .stat .l { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .5; z-index: 1; pointer-events: none; }
.blob.a { width: 420px; height: 420px; background: rgba(109,74,255,.28); top: -120px; left: -80px; }
.blob.b { width: 380px; height: 380px; background: rgba(139,92,246,.22); bottom: -140px; right: -60px; }

/* Story timeline */
.story { background: linear-gradient(180deg, #fff, var(--surface)); }
.story-track { display: grid; gap: 14px; }
.epoch {
    display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 24px;
    padding: 22px 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
}
.epoch .step { font-weight: 800; color: var(--primary); font-size: 1.05rem; letter-spacing: .04em; }
.epoch .etitle { font-size: 1.25rem; font-weight: 700; }
.epoch .edesc { color: var(--muted); margin-top: 4px; }
.story-finale { text-align: center; margin-top: clamp(40px, 6vw, 72px); }
.story-finale .big { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; letter-spacing: var(--tracking-tighter); }

/* ----------------------------- Ad zones ------------------------------------ */
.ad-zone {
    border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg);
    background:
        repeating-linear-gradient(135deg, rgba(109,74,255,.03) 0 12px, transparent 12px 24px),
        var(--surface);
    display: grid; place-items: center; text-align: center; color: var(--muted);
    padding: clamp(24px, 5vw, 48px); gap: 6px;
}
.ad-zone.hero-ad { min-height: 160px; }
.ad-zone .ad-k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.ad-zone .ad-t { font-weight: 700; color: var(--text); }
.ad-card {
    border-radius: var(--r-lg); padding: 28px; color: #fff; background: var(--grad-primary);
    box-shadow: var(--shadow-primary); display: flex; flex-direction: column; gap: 12px; min-height: 200px;
}
.ad-card .k { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

/* ----------------------------- CTA ----------------------------------------- */
.cta {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    background: var(--grad-primary); color: #fff; text-align: center;
    padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px); box-shadow: var(--shadow-lg);
}
.cta .h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.9); max-width: 56ch; margin: 16px auto 0; font-size: 1.1rem; }
.cta .btn-primary { background: #fff; color: var(--primary-600); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta-blob { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(20px); }
.cta-blob.a { top: -200px; left: -120px; } .cta-blob.b { bottom: -240px; right: -120px; }

/* ----------------------------- Footer -------------------------------------- */
.footer { background: var(--text); color: #fff; padding-block: clamp(48px, 7vw, 88px) 32px; margin-top: clamp(64px, 9vw, 120px); }
.footer .brand { color: #fff; }
.footer .brand .spark { background: var(--grad-primary); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 16px; font-weight: 600; }
.footer a, .footer li { color: rgba(255,255,255,.75); font-size: .96rem; padding: 5px 0; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .desc { color: rgba(255,255,255,.6); margin-top: 14px; max-width: 36ch; font-size: .95rem; }
.footer .contact { display: flex; flex-direction: column; gap: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.55); font-size: .88rem; }

/* ----------------------------- Reveal animations --------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); }
.no-js [data-reveal], .reveal-done [data-reveal] { opacity: 1; transform: none; }

/* ----------------------------- Responsive ---------------------------------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .nav-toggle { display: inline-flex; }
    .brand .brand-logo-full { height: 42px; max-width: 180px; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .epoch { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .cta .hero-actions, .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}
@keyframes vm-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.012); }
}
@keyframes vm-glow {
    0%, 100% { filter: drop-shadow(0 12px 24px rgba(109,74,255,.18)); }
    50% { filter: drop-shadow(0 16px 32px rgba(109,74,255,.30)); }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
}
