/* ==========================================================================
   Ebru Evde Rehberi — Design System
   Theme: Deep ink — pigment on dark water
   ========================================================================== */

:root {
    /* ── Palette ── */
    --clr-bg:             #12151a;
    --clr-bg-alt:         #181c24;
    --clr-surface:        rgba(255,255,255,.04);
    --clr-surface-solid:  #1e222b;
    --clr-surface-hover:  rgba(255,255,255,.07);
    --clr-glass:          rgba(18,21,26,.82);
    --clr-border:         rgba(255,255,255,.08);
    --clr-border-strong:  rgba(255,255,255,.14);

    --clr-text:           #E8E4DF;
    --clr-text-muted:     #9A958F;
    --clr-heading:        #F5F2EE;

    /* Accents */
    --clr-teal:           #2BBAB4;
    --clr-teal-light:     #56D4CE;
    --clr-teal-dark:      #1F8C87;
    --clr-gold:           #D4A84B;
    --clr-gold-light:     #E4C06E;
    --clr-rose:           #C96B8B;
    --clr-rose-light:     #DB8EA6;
    --clr-indigo:         #6E7EC7;

    /* Functional */
    --grad-accent:        linear-gradient(135deg, var(--clr-teal), var(--clr-gold), var(--clr-rose));
    --grad-accent-subtle: linear-gradient(135deg, rgba(43,186,180,.15), rgba(212,168,75,.10), rgba(201,107,139,.12));
    --grad-hero:          radial-gradient(ellipse 120% 80% at 30% 20%, rgba(43,186,180,.10) 0%, transparent 50%),
                          radial-gradient(ellipse 80% 100% at 80% 80%, rgba(201,107,139,.08) 0%, transparent 50%),
                          radial-gradient(ellipse 60% 60% at 50% 40%, rgba(212,168,75,.06) 0%, transparent 45%);

    /* Typography */
    --ff-body:            'Segoe UI', system-ui, -apple-system, sans-serif;
    --ff-heading:         Georgia, 'Times New Roman', serif;
    --fs-base:            1.0625rem;
    --fs-sm:              0.875rem;
    --fs-xs:              0.8125rem;
    --fs-lg:              1.1875rem;
    --fs-xl:              1.5rem;
    --fs-2xl:             2.125rem;
    --fs-3xl:             3rem;
    --lh-body:            1.75;
    --lh-heading:         1.25;

    /* Spacing */
    --sp-xs:  .25rem;
    --sp-sm:  .5rem;
    --sp-md:  1rem;
    --sp-lg:  1.5rem;
    --sp-xl:  2.5rem;
    --sp-2xl: 4rem;
    --sp-3xl: 6.5rem;

    /* Sizing */
    --max-w:    1120px;
    --radius:   6px;
    --radius-lg:12px;
    --radius-xl:20px;

    /* Motion */
    --ease:          cubic-bezier(.4,0,.2,1);
    --ease-spring:   cubic-bezier(.34,1.56,.64,1);
    --dur:           .3s;
    --dur-slow:      .55s;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    color: var(--clr-text);
    background: var(--clr-bg);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    padding-top: 56px;
}

/* Ambient marble overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 15% 25%, rgba(43,186,180,.045) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 80% 75%, rgba(212,168,75,.035) 0%, transparent 50%),
        radial-gradient(ellipse 55% 45% at 55% 45%, rgba(201,107,139,.03) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

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

a {
    color: var(--clr-teal);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
a:hover { color: var(--clr-teal-light); }

:focus-visible {
    outline: 2px solid var(--clr-teal);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Skip Link ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--sp-md);
    background: var(--clr-teal);
    color: var(--clr-bg);
    padding: var(--sp-sm) var(--sp-md);
    border-radius: var(--radius);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-md); }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-lg);
    position: relative;
    z-index: 1;
}

/* ── Typography ── */
h1, h2, h3, h4 {
    font-family: var(--ff-heading);
    line-height: var(--lh-heading);
    color: var(--clr-heading);
    font-weight: 700;
    letter-spacing: -.01em;
}
h1 { font-size: var(--fs-3xl); margin-bottom: var(--sp-lg); }
h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp-md); }
h3 { font-size: var(--fs-xl);  margin-bottom: var(--sp-sm); }
p  { margin-bottom: var(--sp-md); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    padding: .75em 1.6em;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: var(--fs-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-align: center;
    line-height: 1.4;
    font-family: var(--ff-body);
}

.btn--primary {
    background: var(--clr-teal);
    color: var(--clr-bg);
    border-color: var(--clr-teal);
}
.btn--primary:hover {
    background: var(--clr-teal-light);
    border-color: var(--clr-teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(43,186,180,.25);
}

.btn--secondary {
    background: transparent;
    color: var(--clr-teal);
    border-color: var(--clr-teal);
}
.btn--secondary:hover {
    background: rgba(43,186,180,.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--clr-glass);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--clr-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
    height: 56px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-heading);
    text-decoration: none;
    font-size: var(--fs-lg);
    font-weight: 700;
    font-family: var(--ff-heading);
    flex-shrink: 0;
    white-space: nowrap;
}
.site-logo:hover { color: var(--clr-heading); }
.site-logo em { font-style: normal; color: var(--clr-teal); }

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: conic-gradient(var(--clr-teal) 0deg, var(--clr-gold) 120deg, var(--clr-rose) 240deg, var(--clr-teal) 360deg);
    flex-shrink: 0;
    position: relative;
    animation: logo-pulse 6s ease-in-out infinite;
}
.logo-mark::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--clr-bg);
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(43,186,180,.3); }
    50%      { box-shadow: 0 0 0 6px rgba(43,186,180,0); }
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-list a {
    display: block;
    padding: 6px 10px;
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--dur) var(--ease);
    position: relative;
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: var(--clr-heading);
    background: rgba(255,255,255,.05);
}

.nav-list a.nav-active {
    color: var(--clr-teal);
}
.nav-list a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--clr-teal);
    border-radius: 2px;
}

.nav-cta {
    background: var(--clr-teal) !important;
    color: var(--clr-bg) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-lg) !important;
    padding: 6px 18px !important;
}
.nav-cta:hover { background: var(--clr-teal-light) !important; }
.nav-cta.nav-active { box-shadow: 0 0 0 2px var(--clr-teal-light); }
.nav-cta.nav-active::after { display: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}
.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    pointer-events: none;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
    transform-origin: center;
}

/* Hamburger to X */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll lock */
html.nav-open { overflow: hidden; }
html.nav-open body { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    padding: var(--sp-3xl) 0;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Animated marbling blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    animation: marble-drift 14s ease-in-out infinite alternate;
}

.hero::before {
    width: 500px;
    height: 500px;
    top: -20%;
    right: -5%;
    background: radial-gradient(circle, rgba(43,186,180,.18) 0%, rgba(43,186,180,0) 70%);
}

.hero::after {
    width: 420px;
    height: 420px;
    bottom: -15%;
    left: -8%;
    background: radial-gradient(circle, rgba(212,168,75,.14) 0%, transparent 65%);
    animation-delay: -5s;
    animation-duration: 18s;
}

@keyframes marble-drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.12); }
}

.hero-content {
    max-width: 660px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(43,186,180,.1);
    color: var(--clr-teal);
    border: 1px solid rgba(43,186,180,.2);
    border-radius: 100px;
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: var(--sp-lg);
    letter-spacing: .04em;
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    margin-bottom: var(--sp-md);
    background: linear-gradient(135deg, var(--clr-heading) 0%, var(--clr-teal-light) 45%, var(--clr-gold-light) 75%, var(--clr-rose-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
}

.hero p {
    font-size: var(--fs-lg);
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-xl);
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: var(--sp-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
    padding: var(--sp-3xl) 0;
    position: relative;
}

.section--alt {
    background: var(--clr-bg-alt);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--sp-2xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
}
.section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--grad-accent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--clr-text-muted);
    margin-top: var(--sp-md);
    font-size: var(--fs-base);
}

/* ── Marble Divider ── */
.marble-divider {
    height: 1px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(43,186,180,.25) 20%,
        rgba(212,168,75,.2) 40%,
        rgba(201,107,139,.2) 60%,
        rgba(110,126,199,.15) 80%,
        transparent 100%
    );
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--sp-lg);
}

.card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    transition: all var(--dur) var(--ease);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--clr-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease);
}

.card:nth-child(2n)::before   { background: var(--clr-gold); }
.card:nth-child(3n)::before   { background: var(--clr-rose); }
.card:nth-child(4n+1)::before { background: var(--clr-indigo); }

.card:hover {
    border-color: var(--clr-border-strong);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.25), 0 0 0 1px var(--clr-border);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--grad-accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--sp-md);
    border: 1px solid var(--clr-border);
    color: var(--clr-teal);
}

.card h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-sm);
}

.card p {
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* ==========================================================================
   STEPS
   ========================================================================== */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    max-width: 780px;
    margin: 0 auto;
}

.step-item {
    counter-increment: step-counter;
    display: flex;
    gap: var(--sp-lg);
    padding: var(--sp-xl) 0;
    border-bottom: 1px solid var(--clr-border);
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp .5s var(--ease) forwards;
}
.step-item:last-child { border-bottom: none; }

.step-item::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--clr-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-heading);
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--clr-teal);
}

.step-item h3 { color: var(--clr-heading); }
.step-item p  { color: var(--clr-text-muted); }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.step-item:nth-child(1) { animation-delay: .05s; }
.step-item:nth-child(2) { animation-delay: .1s; }
.step-item:nth-child(3) { animation-delay: .15s; }
.step-item:nth-child(4) { animation-delay: .2s; }
.step-item:nth-child(5) { animation-delay: .25s; }
.step-item:nth-child(6) { animation-delay: .3s; }

/* ==========================================================================
   INTERACTIVE CONTROLS
   ========================================================================== */
.interactive-block {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    margin-bottom: var(--sp-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.interactive-block h3 { margin-bottom: var(--sp-md); }

/* Slider */
.slider-group { margin-bottom: var(--sp-lg); }
.slider-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--sp-sm);
    color: var(--clr-heading);
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--clr-border-strong);
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-teal);
    cursor: pointer;
    border: 3px solid var(--clr-bg);
    box-shadow: 0 0 0 1px var(--clr-teal), 0 2px 8px rgba(43,186,180,.3);
    transition: transform var(--dur) var(--ease-spring);
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-teal);
    cursor: pointer;
    border: 3px solid var(--clr-bg);
    box-shadow: 0 0 0 1px var(--clr-teal);
}

.slider-output {
    margin-top: var(--sp-sm);
    padding: var(--sp-md) var(--sp-lg);
    background: rgba(43,186,180,.05);
    border-radius: var(--radius);
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
    border-left: 2px solid var(--clr-teal);
    line-height: 1.65;
}

/* Toggles */
.toggle-group {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    margin-bottom: var(--sp-md);
}

.toggle-btn {
    padding: 8px 20px;
    background: transparent;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border);
    border-radius: 100px;
    cursor: pointer;
    font-size: var(--fs-sm);
    font-family: var(--ff-body);
    font-weight: 500;
    transition: all var(--dur) var(--ease);
}
.toggle-btn:hover {
    border-color: var(--clr-border-strong);
    color: var(--clr-text);
}
.toggle-btn.active {
    background: rgba(212,168,75,.1);
    border-color: var(--clr-gold);
    color: var(--clr-gold);
    box-shadow: 0 0 12px rgba(212,168,75,.12);
}

.toggle-output {
    padding: var(--sp-md) var(--sp-lg);
    background: rgba(212,168,75,.05);
    border-radius: var(--radius);
    border-left: 2px solid var(--clr-gold);
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    line-height: 1.65;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--sp-sm);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq-item:hover {
    border-color: var(--clr-border-strong);
}
.faq-item.open {
    border-color: rgba(43,186,180,.25);
    box-shadow: 0 0 20px rgba(43,186,180,.06);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-lg);
    background: transparent;
    border: none;
    color: var(--clr-heading);
    font-size: var(--fs-base);
    font-weight: 600;
    font-family: var(--ff-body);
    cursor: pointer;
    text-align: left;
    transition: color var(--dur) var(--ease);
}
.faq-question:hover { color: var(--clr-teal); }

.faq-question::after {
    content: '+';
    font-size: var(--fs-xl);
    color: var(--clr-teal);
    transition: transform var(--dur) var(--ease);
    flex-shrink: 0;
    margin-left: var(--sp-md);
    font-weight: 300;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease);
}
.faq-answer__inner {
    padding: 0 var(--sp-lg) var(--sp-lg);
    color: var(--clr-text-muted);
    line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ==========================================================================
   MISTAKES / ERRORS
   ========================================================================== */
.mistakes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-lg);
}

.mistake-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-lg);
    border-left: 3px solid var(--clr-rose);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mistake-card h3 {
    font-size: var(--fs-base);
    color: var(--clr-rose);
    margin-bottom: var(--sp-sm);
    font-family: var(--ff-body);
}
.mistake-card p {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    line-height: 1.65;
}
.mistake-card .fix {
    margin-top: var(--sp-sm);
    padding-top: var(--sp-sm);
    border-top: 1px solid var(--clr-border);
    color: var(--clr-teal);
    font-weight: 500;
}

/* ==========================================================================
   RELATED LINKS
   ========================================================================== */
.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--sp-md);
}

.related-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    color: var(--clr-heading);
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: all var(--dur) var(--ease);
}
.related-link:hover {
    border-color: var(--clr-teal);
    color: var(--clr-teal);
    transform: translateX(3px);
}
.related-link__arrow {
    color: var(--clr-teal);
    font-size: var(--fs-lg);
    transition: transform var(--dur) var(--ease);
    opacity: .5;
}
.related-link:hover .related-link__arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* ==========================================================================
   CONTENT + IMAGE LAYOUT
   ========================================================================== */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    align-items: center;
    margin-bottom: var(--sp-xl);
}
.content-with-image--reverse .content-text { order: 2; }
.content-with-image--reverse .content-image { order: 1; }

.content-text p {
    color: var(--clr-text-muted);
    max-width: 75ch;
}
.content-text h3 { margin-bottom: var(--sp-sm); }

.content-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.content-image img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
}

/* ==========================================================================
   IMAGE PLACEHOLDER
   ========================================================================== */
.img-placeholder {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
}

.img-placeholder__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-sm);
    background: var(--grad-accent-subtle);
}

.img-placeholder__icon::before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--clr-teal-dark);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    opacity: .3;
}

.img-placeholder__text {
    position: absolute;
    bottom: var(--sp-md);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    opacity: .5;
    white-space: nowrap;
}

/* ==========================================================================
   PAGE CONTENT (tech pages)
   ========================================================================== */
.page-content {
    padding: var(--sp-3xl) 0;
    min-height: 60vh;
}

.page-content h1 {
    margin-bottom: var(--sp-xl);
    position: relative;
    display: inline-block;
}
.page-content h1::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--grad-accent);
    margin-top: 10px;
    border-radius: 2px;
}

.page-content h2 {
    margin-top: var(--sp-2xl);
    margin-bottom: var(--sp-md);
}
.page-content h3 {
    margin-top: var(--sp-xl);
}

.page-content p,
.page-content li {
    color: var(--clr-text-muted);
    max-width: 75ch;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    padding-left: var(--sp-xl);
    margin-bottom: var(--sp-md);
}
.page-content li {
    margin-bottom: var(--sp-sm);
}

.prose-block { max-width: 780px; }

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
    align-items: start;
}

.contact-info-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.contact-info-card h2 { margin-bottom: var(--sp-lg); }

.contact-detail {
    display: flex;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
    border-bottom: 1px solid var(--clr-border);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail strong {
    color: var(--clr-heading);
    display: block;
    margin-bottom: 2px;
    font-size: var(--fs-sm);
}
.contact-detail span,
.contact-detail a {
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
}

.form-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-group { margin-bottom: var(--sp-lg); }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--clr-heading);
    font-size: var(--fs-sm);
}
.form-group label .required { color: var(--clr-rose); }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,.25);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    color: var(--clr-text);
    font-size: var(--fs-base);
    font-family: var(--ff-body);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--clr-teal);
    box-shadow: 0 0 0 3px rgba(43,186,180,.12);
    outline: none;
}
.form-group textarea {
    min-height: 130px;
    resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--clr-text-muted);
    opacity: .5;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-sm);
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--clr-teal);
    flex-shrink: 0;
}
.form-checkbox label {
    font-weight: 400;
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
}

.form-message {
    padding: var(--sp-md);
    border-radius: var(--radius);
    margin-top: var(--sp-md);
    font-size: var(--fs-sm);
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(43,186,180,.08);
    border: 1px solid var(--clr-teal-dark);
    color: var(--clr-teal);
}
.form-message.error {
    display: block;
    background: rgba(201,107,139,.08);
    border: 1px solid var(--clr-rose);
    color: var(--clr-rose);
}

.ohnohoney {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--clr-glass);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid var(--clr-border);
    padding: var(--sp-lg);
    box-shadow: 0 -8px 32px rgba(0,0,0,.35);
}
.cookie-banner[hidden] { display: none; }

.cookie-banner__body {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-lg);
}
.cookie-banner__body p {
    flex: 1;
    min-width: 260px;
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
}

.cookie-banner__actions {
    display: flex;
    gap: var(--sp-sm);
    flex-wrap: wrap;
}

.cookie-banner .btn--accept {
    background: var(--clr-teal);
    color: var(--clr-bg);
    border-color: var(--clr-teal);
    font-size: var(--fs-sm);
    padding: 8px 18px;
    border-radius: var(--radius);
}
.cookie-banner .btn--reject {
    background: transparent;
    color: var(--clr-teal);
    border: 1px solid var(--clr-teal);
    font-size: var(--fs-sm);
    padding: 8px 18px;
    border-radius: var(--radius);
}
.cookie-banner .btn--settings {
    background: transparent;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border-strong);
    font-size: var(--fs-sm);
    padding: 8px 18px;
    border-radius: var(--radius);
}
.cookie-banner .btn--reject:hover { background: rgba(43,186,180,.08); }
.cookie-banner .btn--settings:hover { border-color: var(--clr-text-muted); color: var(--clr-text); }

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cookie-modal[hidden] { display: none; }

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
}

.cookie-modal__content {
    position: relative;
    z-index: 1;
    background: var(--clr-surface-solid);
    border: 1px solid var(--clr-border-strong);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl);
    max-width: 500px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
}
.cookie-modal__content h2 { margin-bottom: var(--sp-md); }
.cookie-modal__content > p {
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-lg);
}

.cookie-category {
    padding: var(--sp-md) 0;
    border-bottom: 1px solid var(--clr-border);
}
.cookie-category:last-of-type { border-bottom: none; }

.cookie-category__header label {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    cursor: pointer;
}
.cookie-category__header input[type="checkbox"] {
    accent-color: var(--clr-teal);
    width: 18px;
    height: 18px;
}
.cookie-category p {
    margin-top: 4px;
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    padding-left: 26px;
}

.cookie-modal__actions {
    display: flex;
    gap: var(--sp-sm);
    margin-top: var(--sp-lg);
}
.cookie-modal .btn--accept {
    background: var(--clr-teal);
    color: var(--clr-bg);
    border-color: var(--clr-teal);
}
.cookie-modal .btn--reject {
    background: transparent;
    color: var(--clr-text-muted);
    border: 1px solid var(--clr-border-strong);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    padding: var(--sp-2xl) 0 0;
    position: relative;
    z-index: 1;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-accent);
    opacity: .3;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-2xl);
}

.footer-brand {
    font-family: var(--ff-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--clr-heading);
    margin-bottom: var(--sp-sm);
}
.footer-desc {
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.footer-col h3 {
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--clr-gold);
    margin-bottom: var(--sp-md);
    font-family: var(--ff-body);
    font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: var(--sp-sm); }
.footer-col ul a {
    color: var(--clr-text-muted);
    font-size: var(--fs-sm);
    transition: color var(--dur) var(--ease);
}
.footer-col ul a:hover { color: var(--clr-teal); }

.footer-bottom {
    margin-top: var(--sp-2xl);
    padding: var(--sp-md) 0;
    border-top: 1px solid var(--clr-border);
    text-align: center;
}
.footer-bottom p {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    margin: 0;
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --sp-3xl: 4rem;
        --sp-2xl: 2.5rem;
    }

    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
        background: var(--clr-bg);
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid var(--clr-border);
    }
    .main-nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--sp-md) 0;
    }
    .nav-list a {
        padding: 12px var(--sp-lg);
        font-size: var(--fs-base);
        border-bottom: 1px solid var(--clr-border);
    }
    .nav-list li:last-child a {
        border-bottom: none;
    }
    .nav-list a.nav-active::after {
        bottom: auto;
        left: 0;
        right: auto;
        top: 0;
        width: 3px;
        height: 100%;
    }
    .nav-cta {
        margin: var(--sp-md) var(--sp-lg) !important;
        text-align: center !important;
        border-radius: var(--radius) !important;
        padding: 10px 18px !important;
    }

    h1 { font-size: var(--fs-2xl); }

    .hero { min-height: auto; padding: var(--sp-2xl) 0 var(--sp-3xl); }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

    .footer-inner   { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
    .contact-layout { grid-template-columns: 1fr; }
    .card-grid      { grid-template-columns: 1fr; }
    .mistakes-grid  { grid-template-columns: 1fr; }

    .content-with-image { grid-template-columns: 1fr; }
    .content-with-image--reverse .content-text,
    .content-with-image--reverse .content-image { order: unset; }

    .cookie-banner__body { flex-direction: column; text-align: center; }
    .cookie-banner__actions { justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--sp-md); }
    .step-item { flex-direction: column; align-items: flex-start; }
}
