/* =====================================================================
   OcteDigital — main.css
   Soft 3D claymorphism growth-system look. Mobile-first. RTL + LTR.
   Light + dark themes via CSS variables (class "dark" on <html>).
   ===================================================================== */

/* ---------------- Design tokens ---------------- */
:root {
    /* Brand palette */
    --charcoal:  #151515;
    --red:       #81000F;
    --red-bright:#a3121f;
    --warm-white:#FFFDF8;
    --soft-red:  #FDECEC;
    --gray:      #6B7280;
    /* Accents */
    --teal:   #1FB6C1;
    --amber:  #F6A93B;
    --coral:  #FF6E5B;
    --indigo: #5B5BD6;

    /* Themed surfaces (light) */
    --bg:           var(--warm-white);
    --surface:      #FFFFFF;
    --surface-2:    #FFF7F5;
    --surface-tint: var(--soft-red);
    --text:         var(--charcoal);
    --text-soft:    var(--gray);
    --line:         rgba(21,21,21,.08);
    --line-strong:  rgba(21,21,21,.14);
    --footer-bg:    var(--charcoal);
    --footer-text:  var(--warm-white);
    --footer-soft:  #9aa1ac;

    /* Radii */
    --r-panel: 32px;
    --r-card:  24px;
    --r-chip:  14px;
    --r-pill:  999px;

    /* Shadows */
    --sh-soft: 0 20px 40px -12px rgba(21,21,21,.12);
    --sh-lift: 0 30px 60px -16px rgba(21,21,21,.20);
    --sh-red:  0 30px 60px -20px rgba(129,0,15,.28);
    --sh-chip: 0 8px 22px -8px rgba(21,21,21,.18);

    /* Layout */
    --container: 1280px;
    --gutter: 20px;

    /* Type */
    --font-head: 'Baloo Bhaijaan 2', 'Baloo 2', system-ui, sans-serif;
    --font-body: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;

    --ease: cubic-bezier(.22,.61,.36,1);
}
html[lang="en"] {
    --font-head: 'Baloo 2', 'Baloo Bhaijaan 2', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif;
}
:root.dark {
    --bg:           var(--charcoal);
    --surface:      #1d1d1d;
    --surface-2:    #232323;
    --surface-tint: #241617;
    --text:         var(--warm-white);
    --text-soft:    #9aa1ac;
    --line:         rgba(255,253,248,.10);
    --line-strong:  rgba(255,253,248,.18);
    --red-bright:   #c4313f;
    --sh-soft: 0 20px 40px -12px rgba(0,0,0,.55);
    --sh-lift: 0 30px 60px -16px rgba(0,0,0,.65);
    --sh-red:  0 30px 60px -20px rgba(0,0,0,.6);
    --sh-chip: 0 8px 22px -8px rgba(0,0,0,.55);
    --footer-bg:    #0f0f0f;
}

/* ---------------- Reset / base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
    transition: background .4s var(--ease), color .4s var(--ease);
    min-height: 100vh;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, .display { font-family: var(--font-head); line-height: 1.16; font-weight: 800; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ---------------- Layout helpers ---------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; position: relative; }
.section--tint { background: var(--surface-tint); transition: background .4s var(--ease); }
.panel-x { margin-inline: 8px; border-radius: var(--r-panel); }
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Section heading block */
.sec-head { max-width: 720px; margin-inline: auto; margin-bottom: 36px; text-align: center; }
.sec-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 14px;
    color: var(--red); background: var(--surface-tint);
    padding: 7px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-chip);
    margin-bottom: 14px;
}
:root.dark .sec-tag { color: #ff9aa3; }
.sec-tag .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.sec-head h2 { font-size: clamp(26px, 5.4vw, 42px); margin-bottom: 12px; }
.sec-head p { color: var(--text-soft); font-size: 16px; }

/* Ambient blobs + dots (decorative) */
.blob {
    position: absolute; border-radius: 50%; background: var(--soft-red);
    filter: blur(10px); opacity: .7; pointer-events: none; z-index: 0;
}
:root.dark .blob { background: rgba(129,0,15,.20); opacity: .5; }
.dot { position: absolute; border-radius: 50%; pointer-events: none; z-index: 1; }

/* ---------------- Buttons ---------------- */
.btn {
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    border: none; border-radius: var(--r-pill); padding: 13px 24px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
    min-height: 48px; line-height: 1.1; text-align: center;
}
.btn .arr { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(-4px); }
html[lang="en"] .btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--red); color: var(--warm-white); box-shadow: var(--sh-red); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -20px rgba(129,0,15,.42); }
.btn-ghost { background: transparent; color: var(--text); border: 1.6px solid var(--line-strong); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--red); color: var(--red); }
:root.dark .btn-ghost:hover { color: #ff9aa3; border-color: #ff9aa3; }
.btn-wa { background: #25D366; color: #07331a; box-shadow: 0 18px 36px -16px rgba(37,211,102,.5); }
.btn-wa:hover { transform: translateY(-3px); }
.btn-light { background: var(--warm-white); color: var(--red); }
.btn-block { width: 100%; }

/* ---------------- Images (real or placeholder) ---------------- */
.octe-img { width: 100%; height: auto; border-radius: var(--r-card); object-fit: cover; }
.octe-img--ph {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; text-align: center; padding: 20px;
    background:
        radial-gradient(120px 90px at 30% 25%, rgba(255,110,91,.18), transparent 60%),
        radial-gradient(160px 120px at 75% 80%, rgba(31,182,193,.16), transparent 60%),
        var(--surface-tint);
    border: 1px dashed var(--line-strong);
    color: var(--text);
}
.octe-img__badge {
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    color: var(--red); background: var(--surface); padding: 8px 16px;
    border-radius: var(--r-pill); box-shadow: var(--sh-chip); max-width: 90%;
}
:root.dark .octe-img__badge { color: #ff9aa3; }
.octe-img__file { font-size: 11px; color: var(--text-soft); font-family: monospace; opacity: .8; }

/* ---------------- Blob icon + stars ---------------- */
.blob-ic { width: 26px; height: 26px; }
.ic-tile {
    width: 50px; height: 50px; border-radius: 15px; flex: none;
    display: grid; place-items: center; box-shadow: var(--sh-chip);
}
.ic-tile.teal   { background: color-mix(in srgb, var(--teal) 16%,   var(--surface)); }
.ic-tile.amber  { background: color-mix(in srgb, var(--amber) 18%,  var(--surface)); }
.ic-tile.coral  { background: color-mix(in srgb, var(--coral) 16%,  var(--surface)); }
.ic-tile.red    { background: var(--soft-red); }
.ic-tile.indigo { background: color-mix(in srgb, var(--indigo) 16%, var(--surface)); }
:root.dark .ic-tile { background: var(--surface-2); }
.stars { color: var(--amber); font-size: 15px; letter-spacing: 2px; }
.stars .star { opacity: .25; }
.stars .star.on { opacity: 1; }

/* ---------------- Header / nav ---------------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: saturate(140%) blur(12px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand b { color: var(--red); }
:root.dark .brand b { color: #ff9aa3; }
.nav-links { display: none; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
    width: 44px; height: 44px; border-radius: 12px; flex: none;
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
    display: grid; place-items: center; font-size: 18px;
    transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--red); }
.lang-btn {
    height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); color: var(--text); font-family: var(--font-head);
    font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
    transition: transform .2s var(--ease), border-color .2s;
}
.lang-btn:hover { transform: translateY(-2px); border-color: var(--red); }
.nav-cta { display: none; }

/* Mobile menu panel */
.menu-toggle { display: grid; }
.mobile-menu {
    position: fixed; inset: 66px 0 auto 0; z-index: 99;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-soft);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .28s var(--ease), opacity .28s var(--ease), visibility .28s;
    padding: 14px var(--gutter) 22px;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu a {
    display: block; padding: 14px 8px; font-family: var(--font-head); font-weight: 700;
    font-size: 17px; border-bottom: 1px solid var(--line); color: var(--text);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a.active { color: var(--red); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding-block: 36px 8px; overflow: hidden; }
.hero-grid { display: grid; gap: 18px; align-items: center; position: relative; z-index: 2; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 9px; align-self: start;
    background: var(--surface); color: var(--red);
    font-family: var(--font-head); font-weight: 700; font-size: 13px;
    padding: 8px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-chip);
}
:root.dark .eyebrow { color: #ff9aa3; }
.eyebrow .pip { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.hero h1 { font-size: clamp(30px, 8vw, 60px); line-height: 1.1; margin: 4px 0 14px; }
.hero h1 .hl { color: var(--red); }
:root.dark .hero h1 .hl { color: #ff9aa3; }
.hero .lead { font-size: clamp(15.5px, 4vw, 19px); color: var(--text-soft); max-width: 600px; margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta .btn { flex: 1 1 auto; min-width: 0; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--text-soft); font-weight: 600; }
.hero-visual { position: relative; }
.hero-visual .octe-img { box-shadow: var(--sh-soft); border-radius: var(--r-panel); }

/* ---------------- Trust strip ---------------- */
.trust { padding-block: 8px 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.trust-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 18px 14px; text-align: center; box-shadow: var(--sh-chip);
}
.trust-card .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 7vw, 34px); color: var(--red); }
:root.dark .trust-card .num { color: #ff9aa3; }
.trust-card .lbl { font-size: 12.5px; color: var(--text-soft); font-weight: 600; }

/* ---------------- Problem ---------------- */
.problem-grid { display: grid; gap: 16px; }
.problem-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 24px; box-shadow: var(--sh-soft); position: relative;
}
.problem-card .x {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    background: var(--soft-red); color: var(--red); font-size: 20px; font-weight: 800; margin-bottom: 14px;
}
:root.dark .problem-card .x { background: #2a1618; color: #ff9aa3; }
.problem-card h3 { font-size: 19px; margin-bottom: 8px; }
.problem-card p { color: var(--text-soft); font-size: 14.5px; }
.section-cta { text-align: center; margin-top: 32px; }

/* ---------------- System map (connected services) ---------------- */
.system { position: relative; display: grid; gap: 14px; }
.core {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 22px; gap: 14px; order: -1;
}
.core-orb {
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red));
    display: grid; place-items: center; color: var(--warm-white);
    box-shadow: var(--sh-red); position: relative;
}
.core-orb span { font-family: var(--font-head); font-weight: 800; font-size: 17px; padding: 0 10px; line-height: 1.2; }
.core-orb::after {
    content: ""; position: absolute; inset: -14px; border-radius: 50%;
    border: 2px dashed color-mix(in srgb, var(--red) 38%, transparent);
    animation: spin 30s linear infinite;
}
.core p { font-size: 13.5px; color: var(--text-soft); max-width: 240px; }
.node-col { display: grid; gap: 14px; }
.node {
    display: flex; align-items: center; gap: 14px; text-align: start;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
    padding: 16px; box-shadow: var(--sh-soft); position: relative;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.node:hover { transform: translateY(-5px); box-shadow: var(--sh-lift); }
.node .meta h3 { font-size: 16.5px; margin-bottom: 2px; }
.node .meta p { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
.node .go { margin-inline-start: auto; color: var(--red); font-weight: 800; font-size: 18px; flex: none; opacity: .55; transition: opacity .2s, transform .2s; }
.node:hover .go { opacity: 1; }

/* ---------------- Comparison ---------------- */
.compare { display: grid; gap: 14px; }
.compare-col {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 22px; box-shadow: var(--sh-soft);
}
.compare-col.is-single { opacity: .96; }
.compare-col.is-system { border: 2px solid var(--red); box-shadow: var(--sh-red); }
.compare-col h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.compare-col.is-system h3 { color: var(--red); }
:root.dark .compare-col.is-system h3 { color: #ff9aa3; }
.compare-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.compare-row:first-of-type { border-top: none; }
.compare-row .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
.compare-row .mark.no { background: var(--soft-red); color: var(--red); }
:root.dark .compare-row .mark.no { background: #2a1618; color: #ff9aa3; }
.compare-row .mark.yes { background: color-mix(in srgb, var(--teal) 20%, var(--surface)); color: #0c6e76; }
:root.dark .compare-row .mark.yes { color: var(--teal); background: #14302f; }
.compare-row .crit { font-weight: 700; min-width: 76px; flex: none; color: var(--text); }

/* ---------------- Proof / results ---------------- */
.proof-grid { display: grid; gap: 22px; align-items: center; }
.proof-visual { position: relative; }
.proof-visual .octe-img { box-shadow: var(--sh-soft); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 14px 10px; text-align: center; box-shadow: var(--sh-chip); }
.metric .v { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px,6vw,28px); color: var(--red); }
:root.dark .metric .v { color: #ff9aa3; }
.metric .k { font-size: 11.5px; color: var(--text-soft); font-weight: 600; }
.case-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-soft); }
.case-card .kicker { color: var(--teal); font-weight: 800; font-size: 13px; font-family: var(--font-head); }
.case-card h3 { font-size: clamp(20px,5vw,26px); margin: 8px 0 10px; }
.case-card p { color: var(--text-soft); font-size: 15px; margin-bottom: 16px; }

/* ---------------- Packages ---------------- */
.pkg-grid { display: grid; gap: 18px; }
.pkg {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 28px 24px; box-shadow: var(--sh-soft); position: relative;
    display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); }
.pkg.featured { border: 2px solid var(--red); box-shadow: var(--sh-red); }
.pkg .badge {
    position: absolute; inset-block-start: -13px; inset-inline-start: 24px;
    background: var(--red); color: var(--warm-white); font-family: var(--font-head);
    font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-chip);
}
.pkg h3 { font-size: 22px; margin-bottom: 6px; }
.pkg .desc { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; min-height: 40px; }
.pkg .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.pkg .price .v { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--text); }
.pkg .price .cur { font-weight: 700; color: var(--text); }
.pkg .price .per { color: var(--text-soft); font-size: 14px; }
.pkg .price-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 18px; }
.pkg .price-old { color: var(--text-soft); text-decoration: line-through; font-weight: 600; font-size: 15px; }
.pkg .save-badge {
    background: color-mix(in srgb, var(--teal) 18%, var(--surface)); color: #0c6e76;
    font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
    padding: 4px 12px; border-radius: var(--r-pill);
}
:root.dark .pkg .save-badge { color: var(--teal); background: #14302f; }
.pkg ul { display: grid; gap: 10px; margin-bottom: 22px; }
.pkg li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.pkg li::before { content: "✓"; color: var(--teal); font-weight: 800; flex: none; }
.pkg .btn { margin-top: auto; }
.pkg-custom {
    margin-top: 18px; background: var(--surface-tint); border-radius: var(--r-card);
    padding: 24px; text-align: center;
}
.pkg-custom h3 { font-size: 20px; margin-bottom: 6px; }
.pkg-custom p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 16px; }

/* ---------------- Testimonials ---------------- */
.tst-grid { display: grid; gap: 16px; }
.tst {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 24px; box-shadow: var(--sh-soft);
}
.tst .quote { font-size: 15.5px; margin: 12px 0 18px; line-height: 1.7; }
.tst .who { display: flex; align-items: center; gap: 12px; }
.tst .avatar {
    width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, var(--red-bright), var(--red));
    color: var(--warm-white); font-family: var(--font-head); font-weight: 800; font-size: 17px;
}
.tst .who .name { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.tst .who .role { font-size: 12.5px; color: var(--text-soft); }

/* ---------------- Process ---------------- */
.steps { display: grid; gap: 22px; position: relative; }
.step { text-align: center; position: relative; }
.step .n {
    width: 58px; height: 58px; border-radius: 50%; margin-inline: auto; margin-bottom: 14px;
    background: var(--soft-red); color: var(--red); display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 800; font-size: 23px; box-shadow: var(--sh-chip);
}
:root.dark .step .n { background: #2a1618; color: #ff9aa3; }
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--text-soft); max-width: 280px; margin-inline: auto; }

/* ---------------- Risk reduction ---------------- */
.risk-grid { display: grid; gap: 16px; margin-bottom: 22px; }
.risk-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 24px; box-shadow: var(--sh-soft); text-align: center;
}
.risk-card .ic-tile { margin-inline: auto; margin-bottom: 14px; }
.risk-card h3 { font-size: 18px; margin-bottom: 7px; }
.risk-card p { color: var(--text-soft); font-size: 14px; }
.scarcity {
    display: flex; align-items: flex-start; gap: 12px; justify-content: center; text-align: center;
    background: var(--surface-tint); border-radius: var(--r-card); padding: 18px 20px;
    font-size: 14.5px; color: var(--text); max-width: 760px; margin-inline: auto;
}
.scarcity .pulse { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--red); margin-top: 5px; animation: pulse 2s infinite; }

/* ---------------- CTA band ---------------- */
.cta-band { margin: 56px 8px 0; }
.cta-inner {
    background: radial-gradient(circle at 80% 15%, var(--red-bright), var(--red));
    border-radius: var(--r-panel); padding: 44px 26px; text-align: center;
    color: var(--warm-white); position: relative; overflow: hidden; box-shadow: var(--sh-red);
}
.cta-inner h2 { font-size: clamp(24px, 6vw, 42px); margin-bottom: 12px; color: var(--warm-white); }
.cta-inner p { font-size: 16px; opacity: .94; max-width: 560px; margin-inline: auto; margin-bottom: 24px; }
.cta-inner .blob { background: rgba(255,253,248,.12); filter: blur(4px); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------------- Footer ---------------- */
footer.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 52px 0 26px; margin-top: 64px; }
.foot-grid { display: grid; gap: 30px; margin-bottom: 34px; }
.foot-brand .brand { color: var(--footer-text); }
.foot-brand .brand b { color: var(--coral); }
.foot-brand p { color: var(--footer-soft); font-size: 14px; margin-top: 14px; max-width: 320px; }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 16px; transition: background .2s, transform .2s; }
.foot-social a:hover { background: var(--red); transform: translateY(-3px); }
.foot-col h4 { font-family: var(--font-head); font-size: 16px; margin-bottom: 14px; color: var(--footer-text); }
.foot-col a { display: block; color: var(--footer-soft); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--coral); }
.foot-bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
    display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
    color: var(--footer-soft); font-size: 13px;
}

/* ---------------- Scroll reveal + motion ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(129,0,15,.5); } 70% { box-shadow: 0 0 0 12px rgba(129,0,15,0); } 100% { box-shadow: 0 0 0 0 rgba(129,0,15,0); } }

/* =====================================================================
   Responsive — tablet (>=768px)
   ===================================================================== */
@media (min-width: 768px) {
    :root { --gutter: 32px; }
    .section { padding-block: 88px; }
    .sec-head { margin-bottom: 48px; }

    .nav-cta { display: inline-flex; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none; }
    .nav-links {
        display: flex; gap: 22px; margin-inline-start: 28px;
        font-weight: 600; font-size: 15px;
    }
    .nav-links a { color: var(--text-soft); transition: color .2s; }
    .nav-links a:hover, .nav-links a.active { color: var(--red); }
    :root.dark .nav-links a:hover, :root.dark .nav-links a.active { color: #ff9aa3; }

    .hero { padding-block: 56px 16px; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 36px; }
    .hero-cta .btn { flex: 0 1 auto; }

    .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
    .compare { grid-template-columns: 1fr 1fr; }
    .proof-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; }
    .pkg-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
    .tst-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(4, 1fr); }
    .risk-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-band { margin-inline: 8px; }
    .cta-inner { padding: 60px 48px; }
    .foot-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
    .foot-bottom { flex-direction: row; justify-content: space-between; }

    /* System map: nodes left + right of a central core */
    .system { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
    .core { grid-column: 1 / -1; order: -1; }
}

/* =====================================================================
   Responsive — desktop (>=1024px)
   ===================================================================== */
@media (min-width: 1024px) {
    .section { padding-block: 104px; }
    .hero h1 { margin-top: 8px; }

    /* System map: 3 columns with the core in the middle */
    .system { grid-template-columns: 1fr 1.15fr 1fr; gap: 20px; align-items: center; }
    .core { grid-column: 2; order: 0; }
    .core-orb { width: 168px; height: 168px; }
    .core-orb span { font-size: 20px; }
    .system .node-col { gap: 18px; }
    .system .node-col:first-child { grid-column: 1; }
    .system .node-col:last-child  { grid-column: 3; }
}

/* =====================================================================
   Accordion (FAQ + buying questions)
   ===================================================================== */
.accordion { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.acc-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-chip); overflow: hidden; }
.acc-head {
    width: 100%; text-align: start; background: none; border: none;
    padding: 18px 20px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
    color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px;
    cursor: pointer; min-height: 56px;
}
.acc-head .chev { transition: transform .25s var(--ease); color: var(--red); flex: none; font-size: 24px; line-height: 1; }
:root.dark .acc-head .chev { color: #ff9aa3; }
.acc-item.open .acc-head .chev { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-item.open .acc-body { max-height: 480px; }
.acc-body p { padding: 0 20px 18px; color: var(--text-soft); font-size: 15px; line-height: 1.75; }

/* =====================================================================
   Services list + single service
   ===================================================================== */
.services-core { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 40px; }
.services-grid { display: grid; gap: 18px; }
.svc-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--sh-soft); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); }
.svc-card .svc-img .octe-img { border-radius: 0; }
.svc-card .svc-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-card .svc-head { display: flex; align-items: center; gap: 12px; }
.svc-card h3 { font-size: 19px; }
.svc-card p { color: var(--text-soft); font-size: 14.5px; flex: 1; }
.svc-card .go-link { color: var(--red); font-weight: 700; font-family: var(--font-head); font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
:root.dark .svc-card .go-link { color: #ff9aa3; }

.service-hero { display: grid; gap: 24px; align-items: center; }
.service-hero .octe-img { box-shadow: var(--sh-soft); }
.svc-sections { display: grid; gap: 18px; }
.svc-section-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-soft); }
.svc-section-card .lbl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--red); background: var(--surface-tint); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 12px; }
:root.dark .svc-section-card .lbl { color: #ff9aa3; }
.svc-section-card p { color: var(--text-soft); font-size: 15.5px; line-height: 1.7; }

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-hero { grid-template-columns: 1fr 1fr; }
    .svc-sections { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   Forms + Contact page
   ===================================================================== */
.contact-sec { position: relative; overflow: hidden; }
.contact-head { text-align: start; margin-inline: 0; max-width: 760px; }
.contact-grid { display: grid; gap: 18px; align-items: start; }
.form-card, .quick-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 24px; box-shadow: var(--sh-soft);
}
.form-card h2, .quick-card h2 { font-size: 22px; margin-bottom: 16px; }
.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; gap: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.field .opt { color: var(--text-soft); font-weight: 500; font-size: 12px; }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
    background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 14px;
    padding: 13px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(129,0,15,.12);
}
.field .err { color: var(--red); font-size: 13px; font-weight: 600; }
:root.dark .field .err { color: #ff9aa3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.alert { border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.alert-success { background: color-mix(in srgb, var(--teal) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.alert-success h2 { color: #0c6e76; margin-bottom: 6px; }
:root.dark .alert-success h2 { color: var(--teal); }
.alert-error { background: var(--soft-red); color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); font-weight: 600; }
:root.dark .alert-error { background: #2a1618; color: #ff9aa3; }
.quick-card .quick-visual { margin-bottom: 16px; }
.quick-card .muted { color: var(--text-soft); font-size: 14px; margin-bottom: 16px; }
.quick-list { display: grid; gap: 12px; margin: 18px 0; }
.quick-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.quick-list .ic-tile { width: 42px; height: 42px; border-radius: 12px; }
.quick-card .hours { font-size: 13px; color: var(--text-soft); margin-bottom: 14px; }
.promises { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.promises span { font-size: 13px; font-weight: 600; color: var(--text); }
@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 24px; }
    .field-row { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   Portfolio + Case study + About + Legal
   ===================================================================== */
.portfolio-grid { display: grid; gap: 18px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-soft); display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); }
.proj-card .octe-img { border-radius: 0; }
.proj-card .proj-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.proj-chip { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); padding: 4px 11px; border-radius: var(--r-pill); }
.proj-chip.case { color: var(--red); background: var(--surface-tint); }
:root.dark .proj-chip.case { color: #ff9aa3; }
.proj-card h3 { font-size: 18px; }
.proj-card p { font-size: 14px; color: var(--text-soft); flex: 1; }
.proj-card .go-link { color: var(--red); font-weight: 700; font-family: var(--font-head); font-size: 14px; display: inline-flex; gap: 6px; }
:root.dark .proj-card .go-link { color: #ff9aa3; }

.cs-hero { display: grid; gap: 22px; align-items: center; }
.cs-hero .octe-img { box-shadow: var(--sh-soft); }
.cs-blocks { display: grid; gap: 18px; max-width: 860px; }
.cs-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-soft); }
.cs-block h2 { font-size: 21px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.cs-block p { color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cs-tags span { font-size: 12.5px; font-weight: 600; background: var(--surface-tint); color: var(--text); padding: 5px 12px; border-radius: var(--r-pill); }

.about-grid { display: grid; gap: 24px; align-items: center; }
.about-grid .octe-img { box-shadow: var(--sh-soft); }
.values-grid { display: grid; gap: 16px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; box-shadow: var(--sh-soft); }
.value-card .ic-tile { margin-bottom: 14px; }
.value-card h3 { font-size: 18px; margin-bottom: 7px; }
.value-card p { color: var(--text-soft); font-size: 14.5px; }

.legal { max-width: 820px; margin-inline: auto; }
.legal .updated { color: var(--text-soft); font-size: 13px; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 24px 0 8px; }
.legal p { color: var(--text-soft); font-size: 15.5px; line-height: 1.8; margin-bottom: 8px; }

@media (min-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .cs-hero { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
    .values-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   Accessibility — reduced motion
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
}
