/* =========================================================
   Moliya 360 — Brand theme (matches logo)
   Palette: indigo (cool) + coral/orange (warm) + pink accent + dark navy
   Typography: Manrope (clean, very readable)
   ========================================================= */

:root {
    /* Brand — Indigo (cool, from logo bottom) */
    --brand-900: #1e1b4b;   /* darkest indigo */
    --brand-800: #312e81;   /* headings, footer */
    --brand-700: #4338ca;   /* hover states */
    --brand-600: #4f46e5;   /* primary buttons */
    --brand-500: #6366f1;   /* secondary, links */
    --brand-400: #818cf8;   /* light accent */
    --brand-300: #a5b4fc;   /* very light */
    --brand-200: #c7d2fe;
    --brand-100: #e0e7ff;
    --brand-50:  #eef2ff;   /* page tint */

    /* Accent — Coral / Orange (warm, from logo top) */
    --accent-700: #c2410c;
    --accent-600: #ea580c;
    --accent-500: #fb7546;  /* primary accent */
    --accent-400: #ff8c5a;
    --accent-300: #ffb088;  /* light coral */
    --accent-200: #ffd4c2;
    --accent-100: #ffeae0;

    /* Pink — secondary accent (from "360" text gradient) */
    --pink-600: #db2777;
    --pink-500: #ec4899;
    --pink-400: #f472b6;
    --pink-300: #f9a8d4;

    /* Logo navy — for dark sections */
    --navy-900: #0a1832;    /* exact logo background */
    --navy-800: #142347;

    /* Neutrals (slate scale — very readable) */
    --ink-900: #0f172a;
    --ink-800: #1e293b;
    --ink-700: #334155;
    --ink-500: #64748b;
    --ink-400: #94a3b8;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #eef2f7;
    --ink-50:  #f8fafc;

    --white: #ffffff;
    --bg: #ffffff;
    --bg-alt: #f5f3ff;          /* soft indigo tint for alt sections */
    --bg-warm: #fff8f4;          /* soft peach tint */
    --bg-tint: #fafafe;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --shadow-sm: 0 4px 14px rgba(79, 70, 229, 0.07);
    --shadow-md: 0 14px 36px rgba(79, 70, 229, 0.12);
    --shadow-lg: 0 26px 70px rgba(10, 24, 50, 0.18);

    --maxw: 1180px;
    --gap: 28px;

    --t: 0.25s cubic-bezier(.2,.7,.2,1);

    /* Modern, very readable sans serif */
    --font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-base);
    color: var(--ink-800);
    background: var(--bg);
    line-height: 1.7;
    font-size: 17px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-600); }
ul { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-base);
    color: var(--brand-800);
    margin: 0 0 .5em;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; color: var(--ink-700); }
.accent { color: var(--brand-600); }

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

.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section__title { margin-bottom: .4em; }
.section__lead { font-size: 1.1rem; color: var(--ink-500); line-height: 1.65; }
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-600);
    margin-bottom: 14px;
}
.center { text-align: center; margin-top: 32px; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.98rem;
    transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.1;
    letter-spacing: -0.005em;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand-600); color: var(--white); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.btn--primary:hover { background: var(--brand-700); color: var(--white); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32); }
.btn--gold { background: var(--accent-500); color: var(--white); box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28); }
.btn--gold:hover { background: var(--accent-600); color: var(--white); box-shadow: 0 10px 24px rgba(14, 165, 233, 0.34); }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-200); }
.btn--ghost:hover { background: var(--brand-600); color: var(--white); border-color: var(--brand-600); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ============ Header ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), box-shadow var(--t);
}
.header.is-scrolled { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--brand-800); letter-spacing: -0.02em; line-height: 1; }
.logo__img {
    height: 48px;
    width: auto;
    display: block;
    border-radius: 10px;
    transition: transform var(--t);
}
.logo:hover .logo__img { transform: scale(1.04); }
.logo__mark {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
    color: var(--white);
    display: grid; place-items: center;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.logo__text span { color: var(--accent-500); }
.logo--light { color: var(--white); }
.logo--light .logo__text span { color: var(--accent-400); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-weight: 500; color: var(--ink-700); font-size: .98rem; }
.nav__link:hover { color: var(--brand-600); }
.nav__cta { margin-left: 8px; }

.nav__lang {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--brand-700);
    letter-spacing: .04em;
    transition: background var(--t), color var(--t), border-color var(--t);
}
.nav__lang:hover { background: var(--brand-600); color: var(--white); border-color: var(--brand-600); }

/* ============ Theme toggle ============ */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--brand-200);
    color: var(--brand-700);
    display: grid;
    place-items: center;
    cursor: pointer;
    background: transparent;
    padding: 0;
    transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.theme-toggle:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    transform: rotate(20deg);
}
.theme-toggle__icon { width: 18px; height: 18px; display: block; }
.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle { color: var(--accent-400); border-color: var(--ink-200); }
[data-theme="dark"] .theme-toggle:hover { background: var(--ink-100); border-color: var(--accent-400); }

.burger { display: none; width: 36px; height: 36px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: var(--brand-800); transition: transform var(--t), opacity var(--t); border-radius: 2px; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
    position: relative;
    background:
        radial-gradient(1100px 600px at 92% -10%, rgba(251, 117, 70, 0.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(99, 102, 241, 0.20), transparent 60%),
        radial-gradient(700px 400px at 50% 50%, rgba(236, 72, 153, 0.06), transparent 60%),
        linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
    overflow: hidden;
    padding: 100px 0 120px;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero__eyebrow {
    display: inline-block;
    padding: 7px 16px;
    background: var(--brand-100);
    color: var(--brand-700);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.005em;
}
.hero__title { line-height: 1.1; margin-bottom: 24px; }
.hero__subtitle { font-size: 1.15rem; color: var(--ink-500); margin-bottom: 38px; max-width: 540px; line-height: 1.65; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat__num { font-size: 2.2rem; color: var(--brand-700); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: .92rem; color: var(--ink-500); margin-top: 8px; font-weight: 500; }

/* Hero card visual */
.hero__visual { position: relative; }
.hero__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--brand-100);
    transform: rotate(-1deg);
}
.hero__card-head {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
    color: var(--white);
}
.hero__card-title { font-size: .85rem; margin-left: 12px; opacity: .92; font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--g { background: #4ade80; }
.dot--y { background: #facc15; }
.dot--r { background: #f87171; }

.hero__card-body { padding: 24px; }
.metric {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--ink-100);
    font-size: .98rem;
    color: var(--ink-700);
    font-weight: 500;
}
.metric:last-of-type { border-bottom: none; margin-bottom: 16px; }
.metric strong { color: var(--accent-500); font-weight: 700; font-size: 1.05rem; }
.metric strong.muted { color: var(--brand-700); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding-top: 14px; border-top: 1px dashed var(--ink-200); }
.bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--brand-300), var(--brand-600));
    border-radius: 5px 5px 0 0;
    animation: rise 1s ease-out backwards;
}
.bar:nth-child(2) { animation-delay: .1s; background: linear-gradient(180deg, var(--accent-300), var(--accent-500)); }
.bar:nth-child(3) { animation-delay: .2s; }
.bar:nth-child(4) { animation-delay: .3s; background: linear-gradient(180deg, var(--accent-300), var(--accent-500)); }
.bar:nth-child(5) { animation-delay: .4s; }
.bar:nth-child(6) { animation-delay: .5s; background: linear-gradient(180deg, var(--pink-400), var(--pink-600)); }
@keyframes rise { from { height: 0; opacity: 0; } to { height: var(--h, 50%); opacity: 1; } }

/* ============ Trust ============ */
.trust { padding: 36px 0; background: linear-gradient(135deg, var(--brand-700), var(--brand-600)); color: var(--white); }
.trust__title { text-align: center; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 18px; font-weight: 600; }
.trust__row {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 48px;
    font-size: 1.05rem; font-weight: 500;
    opacity: .96;
}

/* ============ Grid / Cards ============ */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }

/* Services */
.service .card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    color: var(--brand-600);
    display: grid; place-items: center;
    margin-bottom: 20px;
    border: 1px solid var(--brand-200);
}
.service .card__icon svg { width: 28px; height: 28px; }
.service h3 { margin-bottom: 10px; }
.card__list { margin-top: 16px; }
.card__list li {
    position: relative;
    padding-left: 22px;
    font-size: .95rem;
    color: var(--ink-700);
    margin-bottom: 9px;
    line-height: 1.55;
}
.card__list li::before {
    content: "";
    position: absolute; left: 0; top: 9px;
    width: 6px; height: 6px;
    background: var(--accent-500);
    border-radius: 50%;
}
.service--cta {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-600));
    color: var(--white);
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    border: none;
}
.service--cta h3 { color: var(--white); }
.service--cta p { color: rgba(255,255,255,.88); }

/* ============ Packages ============ */
.pack { display: flex; flex-direction: column; }
.pack__head { margin-bottom: 18px; }
.pack__head h3 { margin-bottom: 4px; }
.pack__head p { color: var(--ink-500); margin: 0; font-size: .94rem; }
.pack__price { padding: 18px 0; border-top: 1px solid var(--ink-100); border-bottom: 1px solid var(--ink-100); margin-bottom: 22px; }
.pack__from { font-size: .82rem; color: var(--ink-500); display: block; margin-bottom: 4px; font-weight: 500; }
.pack__num { font-size: 1.55rem; color: var(--brand-700); font-weight: 800; letter-spacing: -0.02em; }
.pack__list { flex-grow: 1; margin-bottom: 24px; }
.pack__list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 11px;
    font-size: .96rem;
    color: var(--ink-700);
    line-height: 1.55;
}
.pack__list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--accent-500);
    font-weight: 800;
    font-size: 1rem;
}
.pack--featured {
    background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand-600) 100%);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.pack--featured h3, .pack--featured .pack__num { color: var(--white); }
.pack--featured .pack__head p { color: rgba(255,255,255,.78); }
.pack--featured .pack__list li { color: rgba(255,255,255,.92); }
.pack--featured .pack__list li::before { color: var(--accent-300); }
.pack--featured .pack__price { border-color: rgba(255,255,255,.15); }
.pack--featured .pack__from { color: rgba(255,255,255,.68); }
.pack__badge {
    position: absolute; top: -14px; right: 20px;
    background: var(--accent-500); color: var(--white);
    padding: 6px 14px;
    font-size: .76rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.packages__note { text-align: center; color: var(--ink-500); font-size: .94rem; margin-top: 28px; }

/* ============ Process ============ */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.process__step {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    position: relative;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.process__step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.process__num {
    color: var(--accent-500);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1;
    letter-spacing: -0.03em;
}
.process__step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.process__step p { font-size: .96rem; color: var(--ink-500); margin: 0; line-height: 1.6; }

/* ============ About ============ */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.about__values { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.value h4 { color: var(--brand-800); font-size: 1.02rem; margin-bottom: 6px; font-weight: 700; }
.value p { font-size: .92rem; color: var(--ink-500); margin: 0; line-height: 1.6; }

.about__panel {
    background: linear-gradient(160deg, var(--brand-700) 0%, var(--brand-800) 100%);
    color: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.about__panel::before {
    content: "";
    position: absolute; right: -60px; top: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(closest-side, rgba(56, 189, 248, 0.25), transparent);
    border-radius: 50%;
}
.about__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; position: relative; }
.about__big { font-size: 2.5rem; color: var(--accent-300); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.about__cap { font-size: .9rem; color: rgba(255,255,255,.78); margin-top: 8px; font-weight: 500; }
.about__quote {
    margin: 12px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid rgba(255,255,255,.15);
    font-style: italic;
    font-size: 1.08rem;
    color: rgba(255,255,255,.92);
    font-weight: 500;
    position: relative;
}

/* ============ Posts ============ */
.post {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: block;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink-900); border-color: var(--brand-200); }
.post__tag {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent-600);
    margin-bottom: 14px;
}
.post h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.35; }
.post p { color: var(--ink-500); font-size: .96rem; margin-bottom: 16px; line-height: 1.6; }
.post__more { color: var(--brand-600); font-weight: 600; font-size: .94rem; }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
    background: var(--white);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    transition: border-color var(--t), box-shadow var(--t);
}
.faq__item[open] { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--brand-800);
    list-style: none;
    position: relative;
    padding-right: 30px;
    font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    position: absolute; right: 0; top: -2px;
    font-size: 1.5rem;
    color: var(--brand-500);
    font-weight: 400;
    transition: transform var(--t);
}
.faq__item[open] summary::after { content: "−"; color: var(--accent-500); }
.faq__item p { margin: 14px 0 0; color: var(--ink-700); line-height: 1.65; }

/* ============ Contact ============ */
.contact { background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg-alt) 100%); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact__info li {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-100);
}
.contact__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); font-weight: 700; }
.contact__info a { color: var(--brand-700); font-weight: 600; }
.contact__info a:hover { color: var(--accent-600); }

.contact__form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--brand-100);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; color: var(--brand-800); margin-bottom: 8px; }
.field label span { color: var(--accent-500); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 1rem;
    color: var(--ink-900);
    background: var(--bg-tint);
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.agree { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; font-size: .9rem; color: var(--ink-500); }
.agree input { margin-top: 3px; accent-color: var(--brand-600); }
.hp { position: absolute; left: -9999px; }
.form__success {
    display: none;
    margin: 18px 0 0;
    padding: 14px 18px;
    background: #ecfdf5;
    color: #065f46;
    border-radius: var(--radius-sm);
    font-size: .94rem;
    text-align: center;
    font-weight: 500;
}
.form__success.is-visible { display: block; }

/* ============ Footer ============ */
.footer { background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%); color: rgba(255,255,255,.78); padding: 64px 0 24px; }
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer__brand p { margin-top: 16px; max-width: 280px; color: rgba(255,255,255,.65); font-size: .94rem; line-height: 1.6; }
.footer h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; font-weight: 700; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,.72); font-size: .96rem; }
.footer__col a:hover { color: var(--accent-300); }
.footer__bottom {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding-top: 24px;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
}

/* ============ Reveal animation ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ Article (blog) ============ */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px;
}
.article h1 { font-size: clamp(1.95rem, 3.4vw, 2.6rem); margin-bottom: 18px; letter-spacing: -0.025em; }
.article__meta { color: var(--ink-500); font-size: .92rem; margin-bottom: 32px; font-weight: 500; }
.article__meta span + span::before { content: " · "; }
.article p { font-size: 1.1rem; color: var(--ink-700); margin-bottom: 1.2em; line-height: 1.75; }
.article h2 { font-size: 1.5rem; margin-top: 1.7em; margin-bottom: .55em; }
.article h3 { font-size: 1.22rem; margin-top: 1.4em; margin-bottom: .5em; }
.article ul { padding-left: 24px; margin-bottom: 1.3em; list-style: disc; color: var(--ink-700); }
.article ul li { margin-bottom: .5em; padding-left: 6px; line-height: 1.7; font-size: 1.05rem; }
.article blockquote {
    border-left: 4px solid var(--accent-500);
    padding: 14px 0 14px 24px;
    margin: 28px 0;
    color: var(--brand-800);
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
}
.article__back { display: inline-block; margin-bottom: 32px; color: var(--ink-500); font-size: .92rem; font-weight: 500; }
.article__back:hover { color: var(--brand-600); }
.article__cta {
    margin-top: 56px;
    padding: 36px;
    background: linear-gradient(135deg, var(--brand-50), var(--bg-alt));
    border: 1px solid var(--brand-100);
    border-radius: var(--radius-lg);
    text-align: center;
}
.article__cta h3 { margin-bottom: 10px; }
.article__cta p { margin-bottom: 18px; color: var(--ink-500); }

/* ============ Blog index page ============ */
.page-head {
    background: linear-gradient(180deg, var(--bg-tint) 0%, var(--white) 100%);
    padding: 80px 0 40px;
    text-align: center;
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { color: var(--ink-500); max-width: 600px; margin: 0 auto; font-size: 1.08rem; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
    body { font-size: 16.5px; }
    .hero { padding: 64px 0 84px; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(2, 1fr); }
    .about, .contact__inner { grid-template-columns: 1fr; gap: 40px; }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .section { padding: 80px 0; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .section { padding: 64px 0; }
    .section__head { margin-bottom: 36px; }
    .nav {
        position: fixed;
        top: 70px; right: 16px; left: 16px;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--brand-100);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--t), transform var(--t);
    }
    .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .nav__link { padding: 12px 24px; width: 100%; min-height: 44px; display: flex; align-items: center; }
    .nav__cta { margin: 8px 24px 0; width: calc(100% - 48px); min-height: 44px; }
    .nav__lang { margin: 8px 24px; align-self: flex-start; padding: 10px 18px; min-height: 40px; }
    .nav .theme-toggle {
        margin: 8px 24px;
        align-self: flex-start;
        width: 44px;
        height: 44px;
    }
    .nav .theme-toggle:hover { transform: none; }
    .burger { display: flex; min-width: 44px; min-height: 44px; }
    .grid--3 { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .about__values { grid-template-columns: 1fr; }
    .about__row { grid-template-columns: 1fr 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .contact__form { padding: 24px; }
    .pack--featured { transform: none; }
    .hero__stats { gap: 24px; }
    .stat__num { font-size: 1.8rem; }
    .trust__row { gap: 16px 28px; font-size: .98rem; }
    .contact__info li { grid-template-columns: 1fr; gap: 4px; }
    .article p, .article ul li { font-size: 1.02rem; }
}


/* =========================================================
   Dark theme overrides (toggled via [data-theme="dark"] on <html>)
   ========================================================= */
[data-theme="dark"] {
    /* Backgrounds — based on logo navy */
    --bg: #0a1832;
    --bg-alt: #0f1f3d;
    --bg-warm: #0d1730;
    --bg-tint: #112242;

    /* Card / panel surfaces (we re-use --white throughout the codebase) */
    --white: #112242;

    /* Text and neutrals — inverted */
    --ink-900: #f1f5f9;
    --ink-800: #e2e8f0;
    --ink-700: #cbd5e1;
    --ink-500: #94a3b8;
    --ink-400: #64748b;
    --ink-300: #475569;
    --ink-200: #334155;
    --ink-100: #1e293b;
    --ink-50:  #0f172a;

    /* Headings get a lighter indigo tone for contrast */
    --brand-800: #a5b4fc;
    --brand-200: #4338ca;
    --brand-100: #312e81;
    --brand-50:  #1e1b4b;

    /* Stronger shadows on dark bg */
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.6);
}

/* Smooth transitions when toggling theme */
html, body, .header, .card, .pack, .post, .faq__item, .contact__form,
.field input, .field select, .field textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ----- Sticky header — translucent navy in dark mode ----- */
[data-theme="dark"] .header { background: rgba(10, 24, 50, 0.85); }
[data-theme="dark"] .header.is-scrolled { border-color: var(--ink-200); }

/* ----- Hero — adjust ambient gradient for dark bg ----- */
[data-theme="dark"] .hero {
    background:
        radial-gradient(1100px 600px at 92% -10%, rgba(251, 117, 70, 0.25), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(99, 102, 241, 0.30), transparent 60%),
        radial-gradient(700px 400px at 50% 50%, rgba(236, 72, 153, 0.10), transparent 60%),
        linear-gradient(180deg, #0a1832 0%, #0f1f3d 100%);
}
[data-theme="dark"] .hero__eyebrow { background: var(--brand-100); color: var(--brand-300); }

/* ----- Service icon background ----- */
[data-theme="dark"] .service .card__icon {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    border-color: var(--brand-200);
    color: var(--accent-400);
}

/* ----- Form inputs ----- */
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
    background: var(--ink-100);
    color: var(--ink-900);
    border-color: var(--ink-200);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
    background: var(--ink-50);
    border-color: var(--accent-400);
    box-shadow: 0 0 0 4px rgba(251, 117, 70, 0.15);
}

/* ----- Burger menu lines ----- */
[data-theme="dark"] .burger span { background: var(--ink-800); }

/* ----- Page-head (blog index) ----- */
[data-theme="dark"] .page-head {
    background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
}

/* ----- Blog mobile nav backdrop ----- */
@media (max-width: 640px) {
    [data-theme="dark"] .nav { background: var(--bg-tint); border-color: var(--ink-200); }
}

/* ----- Logo image — soft glow in dark mode so it pops ----- */
[data-theme="dark"] .logo__img {
    filter: drop-shadow(0 2px 12px rgba(99, 102, 241, 0.35));
}

/* =========================================================
   Mobile performance fixes
   The biggest mobile killer is backdrop-filter (blur on sticky header)
   and heavy gradient/shadow combos that force GPU repaints on scroll.
   ========================================================= */

/* Hardware-accelerate the sticky header so it doesn't repaint on every scroll frame */
.header {
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Isolate paint of cards so hover/reveal doesn't trigger full-page repaints */
.card, .pack, .post, .faq__item, .process__step {
    contain: layout paint;
}

/* On tablets and below — kill expensive effects */
@media (max-width: 980px) {
    /* Backdrop blur is the #1 cause of scroll jank on mobile Safari */
    .header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.97);
    }
    [data-theme="dark"] .header {
        background: rgba(10, 24, 50, 0.97);
    }

    /* Drop the logo glow filter in dark mode — paints on every scroll */
    [data-theme="dark"] .logo__img { filter: none; }

    /* No hover scaling on touch devices (prevents layout thrash on tap) */
    .logo:hover .logo__img { transform: none; }
    .card:hover, .pack:hover, .post:hover, .faq__item[open],
    .service__step:hover, .process__step:hover {
        transform: none;
    }

    /* Lighter hero gradient — single layer instead of 3 stacked */
    .hero {
        background:
            radial-gradient(800px 500px at 90% 0%, rgba(251, 117, 70, 0.14), transparent 60%),
            linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
    }
    [data-theme="dark"] .hero {
        background:
            radial-gradient(800px 500px at 90% 0%, rgba(251, 117, 70, 0.18), transparent 60%),
            linear-gradient(180deg, #0a1832 0%, #0f1f3d 100%);
    }
}

/* Phone-sized — strip more effects */
@media (max-width: 640px) {
    /* Lighter shadows */
    .card, .pack, .post, .faq__item {
        box-shadow: none !important;
    }
    .card:hover, .pack:hover, .post:hover {
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.10) !important;
    }

    /* Disable hero card rotation — costs a compositing layer */
    .hero__card { transform: none; }

    /* Disable rise animation on bars — small CPU win on weak phones */
    .bar { animation: none; }

    /* Reveal animations are nice but heavy when many fire at once during fast scroll */
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* Smooth scroll can lag on iOS — let native scrolling handle it */
    html { scroll-behavior: auto; }
}

/* Respect users who turn on "reduced motion" in OS settings */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .bar { animation: none; }
    html { scroll-behavior: auto; }
}