/* =====================================================================
   davutengin.com — Design System
   Dark, modern developer portfolio. Image-light, motion-rich.
   Shared across: index, index-en, 404, qr-generator pages.
   ===================================================================== */

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

:root {
    /* Surfaces */
    --bg: #07080f;
    --bg-soft: #0b0d1a;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Text */
    --text: #e9ebf5;
    --text-dim: #969cb4;
    --text-faint: #646a82;

    /* Accents */
    --accent: #7c5cff;
    --accent-2: #2dd4bf;
    --accent-3: #ff5c8a;
    --accent-soft: rgba(124, 92, 255, 0.16);
    --grad: linear-gradient(135deg, #8a6bff 0%, #2dd4bf 100%);
    --grad-text: linear-gradient(120deg, #b3a0ff 0%, #6ee7d6 55%, #8a6bff 100%);

    /* Type */
    --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    /* Layout */
    --maxw: 1120px;
    --radius: 18px;
    --radius-sm: 12px;
    --nav-h: 68px;

    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 0 1px var(--border-strong), 0 30px 70px -25px rgba(124, 92, 255, 0.45);
}

/* ---------- Base ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

a {
    color: var(--accent-2);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { color: #fff; }

::selection {
    background: rgba(124, 92, 255, 0.35);
    color: #fff;
}

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

/* ---------- Animated aurora background ---------- */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 80% -10%, rgba(124, 92, 255, 0.10), transparent 60%),
        radial-gradient(900px 600px at 0% 10%, rgba(45, 212, 191, 0.08), transparent 55%),
        var(--bg);
}

.bg-fx .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    will-change: transform;
}

.bg-fx .blob.b1 {
    width: 480px; height: 480px;
    top: -120px; left: -80px;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 70%);
    animation: drift1 22s ease-in-out infinite alternate;
}

.bg-fx .blob.b2 {
    width: 540px; height: 540px;
    top: 30%; right: -120px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.45), transparent 70%);
    animation: drift2 26s ease-in-out infinite alternate;
}

.bg-fx .blob.b3 {
    width: 420px; height: 420px;
    bottom: -140px; left: 30%;
    background: radial-gradient(circle, rgba(255, 92, 138, 0.30), transparent 70%);
    animation: drift3 30s ease-in-out infinite alternate;
}

/* faint grid overlay */
.bg-fx::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}

@keyframes drift1 {
    to { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes drift2 {
    to { transform: translate(-100px, 60px) scale(1.1); }
}
@keyframes drift3 {
    to { transform: translate(80px, -60px) scale(1.2); }
}

/* ---------- Layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
    scroll-margin-top: 90px;
}

.section-head {
    margin-bottom: 48px;
    max-width: 640px;
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--accent-2);
    opacity: 0.6;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
    color: var(--text-dim);
    margin-top: 14px;
    font-size: 17px;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(7, 8, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    letter-spacing: -0.01em;
}

.brand:hover { color: #fff; }

.brand .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--grad);
    box-shadow: 0 0 14px rgba(124, 92, 255, 0.8);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 9px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    background: var(--surface-2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ---------- Language switcher ---------- */
.lang {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    background: var(--surface);
    backdrop-filter: blur(8px);
}

.lang a {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 5px 12px;
    border-radius: 999px;
    line-height: 1;
}

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

.lang a.active {
    background: var(--grad);
    color: #04121a;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad);
    color: #04121a;
    box-shadow: 0 12px 30px -12px rgba(124, 92, 255, 0.7);
}

.btn-primary:hover {
    color: #04121a;
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.85);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    color: #fff;
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    margin-bottom: 26px;
}

.hero-eyebrow .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.hero h1 {
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    margin-bottom: 22px;
}

.hero h1 .grad {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-roles {
    font-family: var(--font-display);
    font-size: clamp(19px, 2.6vw, 26px);
    color: var(--text);
    font-weight: 500;
    margin-bottom: 22px;
    min-height: 1.2em;
}

.hero-roles .typed {
    color: transparent;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-roles .caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: var(--accent-2);
    margin-left: 3px;
    vertical-align: -0.15em;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-lead {
    color: var(--text-dim);
    font-size: 18px;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 38px;
}

/* ---------- Social row ---------- */
.socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.socials a {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-dim);
    font-size: 19px;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.socials a:hover {
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 10px 24px -10px rgba(124, 92, 255, 0.6);
}

.socials a .x-glyph {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
}

/* ---------- Hero code card ---------- */
.code-card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
}

.code-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--radius);
    background: linear-gradient(140deg, rgba(124, 92, 255, 0.5), transparent 40%, transparent 60%, rgba(45, 212, 191, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.code-card .bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.code-card .bar .dots {
    display: flex;
    gap: 7px;
}

.code-card .bar .dots span {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.code-card .bar .dots span:nth-child(1) { background: #ff5f57; }
.code-card .bar .dots span:nth-child(2) { background: #febc2e; }
.code-card .bar .dots span:nth-child(3) { background: #28c840; }

.code-card .bar .file {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    margin-left: 8px;
}

.code-card pre {
    margin: 0;
    padding: 22px 22px 26px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.85;
    overflow-x: auto;
    color: var(--text);
}

.tok-key { color: #c792ea; }
.tok-fn { color: #82aaff; }
.tok-str { color: #6ee7d6; }
.tok-prop { color: #ffd479; }
.tok-punc { color: #6b7390; }
.tok-com { color: #545b75; font-style: italic; }

/* ---------- Generic card grid ---------- */
.grid {
    display: grid;
    gap: 22px;
}

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

.card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 28px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 92, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-strong);
    background: var(--surface-2);
    box-shadow: var(--shadow);
}

.card:hover::after { opacity: 1; }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 18px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    color: #c7b8ff;
}

/* real app-store / google-play icons */
.card-icon.app {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-shrink: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-strong);
    box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.9);
}

.card-icon.app img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.icon-stack {
    display: flex;
    align-items: center;
    min-height: 76px;
    margin-bottom: 18px;
    padding-left: 6px;
}

.icon-stack img {
    width: 76px;
    height: 76px;
    margin-left: -14px;
    border-radius: 20px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
    object-fit: contain;
    object-position: center;
    box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.9);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-stack img:first-child {
    margin-left: 0;
}

.icon-stack img:nth-child(1) { z-index: 3; }
.icon-stack img:nth-child(2) { z-index: 2; }
.icon-stack img:nth-child(3) { z-index: 1; }

.icon-stack img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px -12px rgba(124, 92, 255, 0.5);
}

.card h3 {
    font-size: 21px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.card-title-link {
    color: #fff;
    background-image: var(--grad-text);
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
    padding-bottom: 2px;
}

.card-title-link:hover {
    color: #fff;
    background-size: 100% 2px;
}

.card .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--accent-2);
    border: 1px solid var(--border);
    background: rgba(45, 212, 191, 0.08);
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
}

.card .tag.soon { color: #ffd479; background: rgba(255, 212, 121, 0.08); }

.card p {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 20px;
}

/* meta chips (platforms / categories) */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 10px;
}

/* links inside cards */
.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.clink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}

.clink:hover {
    color: #fff;
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.clink.store i, .clink i { font-size: 15px; }
.clink.yt:hover { border-color: rgba(255, 0, 0, 0.5); background: rgba(255, 0, 0, 0.12); }
.clink.yt i { color: #ff4d4d; }
.clink.steam:hover { border-color: rgba(102, 192, 244, 0.5); background: rgba(102, 192, 244, 0.12); }
.clink.steam i { color: #66c0f4; }
.clink.primary {
    background: var(--grad);
    color: #04121a;
    border-color: transparent;
    font-weight: 600;
}
.clink.primary:hover { color: #04121a; transform: translateY(-2px); }

/* card as a link (whole) */
.card.is-link { display: flex; flex-direction: column; }

/* "what I do" feature item */
.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature .f-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    color: #c7b8ff;
}

.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* about layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-text p {
    color: var(--text-dim);
    font-size: 17px;
    margin-bottom: 18px;
}

.about-text strong { color: var(--text); font-weight: 600; }

/* portrait */
.about-portrait {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-portrait img {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow), 0 0 70px -22px rgba(124, 92, 255, 0.55);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-portrait img:hover { transform: translateY(-6px) rotate(-0.6deg); }

/* tech / skills */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 26px 28px;
    margin-top: 28px;
}

.stack-group h4 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-2);
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.stack-group h4::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--accent-2);
    opacity: 0.6;
}

.skill-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.skill {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text);
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 6px 12px;
    border-radius: 9px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.skill:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: #fff;
    transform: translateY(-2px);
}

.clink.disabled {
    opacity: 0.55;
    cursor: default;
    pointer-events: none;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 40px;
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer .brand { margin-bottom: 0; }

.footer-note {
    color: var(--text-faint);
    font-size: 13.5px;
    font-family: var(--font-mono);
}

.footer-note a { color: var(--text-dim); }
.footer-note a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .reveal.d4 { transition-delay: 0.32s; }

/* scroll cue */
.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-cue .line {
    width: 1px; height: 38px;
    background: linear-gradient(var(--accent-2), transparent);
    animation: cue 2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cue {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .code-card { order: 2; }
    .about-grid { grid-template-columns: 1fr; gap: 36px; }
    .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    section { padding: 72px 0; }
    .hero { min-height: auto; padding-top: calc(var(--nav-h) + 56px); }
    .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
    .scroll-cue { display: none; }
    .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .grid.cols-4 { grid-template-columns: 1fr; }
    .wrap { padding: 0 18px; }
    .card { padding: 22px; }
    .card-icon.app,
    .icon-stack img {
        width: 68px;
        height: 68px;
        border-radius: 18px;
    }
    .icon-stack {
        min-height: 68px;
        padding-left: 0;
    }
    .icon-stack img {
        margin-left: -12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bg-fx .blob { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-roles .caret, .scroll-cue .line, .hero-eyebrow .pulse { animation: none; }
}
