/* =============================================================
   ceyMX — Premium Design System
   ------------------------------------------------------------
   1. Tokens & Reset      6. Sections & Headings
   2. Typography          7. Home components
   3. Buttons             8. Inner-page components
   4. Header / Nav        9. Contact
   5. Hero               10. Footer & utilities
   ============================================================= */

/* ============ 1. TOKENS ============ */
:root {
    /* Brand */
    --navy-900: #0A1535;
    --navy-800: #0D1B4B;
    --navy-700: #14215A;
    --navy-600: #1D2D6E;
    --navy-500: #2A3F96;
    --red-600:  #C4141C;
    --red-500:  #ED1C24;
    --red-400:  #F5474E;

    /* Neutrals */
    --ink:      #0E1422;
    --slate-700:#2A3142;
    --slate-500:#5A6478;
    --slate-400:#8A93A6;
    --line:     #E7E9F0;
    --line-soft:#EEF0F6;
    --paper:    #FFFFFF;
    --paper-2:  #F6F7FB;
    --paper-3:  #EFF1F8;

    /* Accent tones */
    --c-navy:   #1D2D6E;
    --c-red:    #ED1C24;
    --c-purple: #7C3AED;
    --c-teal:   #0D9488;
    --c-amber:  #D97706;
    --c-green:  #16A34A;

    /* Effects */
    --grad-brand: linear-gradient(120deg, #2A3F96 0%, #1D2D6E 45%, #ED1C24 130%);
    --grad-hero:  radial-gradient(120% 120% at 80% 0%, #1B2C6A 0%, #0E1A45 55%, #0A1535 100%);
    --grad-text:  linear-gradient(100deg, #fff 0%, #cdd6ff 40%, #ff6b75 110%);

    --shadow-xs: 0 1px 2px rgba(14,20,34,.06);
    --shadow-sm: 0 4px 12px rgba(14,20,34,.07), 0 1px 3px rgba(14,20,34,.05);
    --shadow:    0 10px 30px rgba(14,20,34,.09), 0 3px 8px rgba(14,20,34,.05);
    --shadow-lg: 0 24px 60px rgba(14,20,34,.13), 0 8px 20px rgba(14,20,34,.07);
    --shadow-xl: 0 40px 90px rgba(14,20,34,.18), 0 12px 28px rgba(14,20,34,.08);
    --shadow-red:0 16px 40px rgba(237,28,36,.34);

    --r-sm: 10px;
    --r:    16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    --ease: cubic-bezier(.22,.61,.36,1);
    --t:    .35s var(--ease);

    --container: 1200px;
    --header-h: 78px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--red-500); color: #fff; }

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

/* ============ 2. TYPOGRAPHY ============ */
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }

.mx { color: var(--red-500); }

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

.eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--red-500);
    margin-bottom: 16px;
    position: relative;
    padding-left: 30px;
}
.eyebrow::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 22px; height: 2px; background: var(--red-500); transform: translateY(-50%);
}
.eyebrow-light { color: #ff8088; }
.eyebrow-light::before { background: #ff8088; }

/* ============ 3. BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px;
    font-family: 'Sora', sans-serif;
    font-size: .92rem; font-weight: 600;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    transition: var(--t);
    white-space: nowrap;
    will-change: transform;
}
.btn i { font-size: .85em; transition: transform var(--t); }
.btn:hover i { transform: translateX(3px); }

.btn-primary { background: var(--red-500); color: #fff; box-shadow: 0 8px 22px rgba(237,28,36,.28); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-2px); box-shadow: var(--shadow-red); }

.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.8); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.25); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* ============ PRELOADER & PROGRESS ============ */
.preloader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--navy-900);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    transition: opacity .5s ease, visibility .5s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo { font-family: 'Sora'; font-weight: 800; font-size: 2rem; color: #fff; letter-spacing: -.02em; }
.preloader-bar { width: 160px; height: 3px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--red-500); border-radius: 99px; animation: loadbar 1s ease-in-out infinite; }
@keyframes loadbar { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--navy-500), var(--red-500));
    z-index: 1100; transition: width .1s linear;
}

/* ============ 4. HEADER / NAV ============ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.header.scrolled {
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 1px 0 rgba(14,20,34,.06), 0 8px 30px rgba(14,20,34,.06);
    height: 66px;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

/* White wordmark while the header floats over the dark hero;
   full-colour logo once the header turns white on scroll. */
.brand-logo { height: 44px; width: auto; filter: brightness(0) invert(1); transition: var(--t); }
.header.scrolled .brand-logo { height: 38px; filter: none; }

.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    position: relative;
    display: inline-block;
    padding: 9px 16px;
    font-size: .92rem; font-weight: 500;
    color: rgba(255,255,255,.85);
    border-radius: var(--r-sm);
    transition: color .25s var(--ease);
}
.nav-link::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
    background: var(--red-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.header.scrolled .nav-link { color: var(--slate-700); }
.nav-link:hover, .nav-link.is-active { color: var(--red-500); }
.header.scrolled .nav-link.is-active { color: var(--red-500); }

.nav-cta-desktop { margin-left: 14px; }
.nav-cta-mobile { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: var(--t); }
.header.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--ink); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--ink); }

/* ============ 5. HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    background: var(--grad-hero);
    overflow: hidden;
    padding: calc(var(--header-h) + 40px) 0 70px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.orb { position: absolute; border-radius: 50%; filter: blur(95px); }
.orb-1 { width: 620px; height: 620px; top: -200px; right: -140px; background: radial-gradient(circle, rgba(237,28,36,.32), transparent 68%); animation: drift 14s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(42,63,150,.6), transparent 70%); animation: drift 18s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; top: 45%; left: 40%; background: radial-gradient(circle, rgba(237,28,36,.18), transparent 70%); animation: drift 11s ease-in-out infinite 3s; }
.orb-r { width: 540px; height: 540px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(237,28,36,.16), transparent 70%); }
@keyframes drift { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(28px,-22px) scale(1.08)} 66%{transform:translate(-18px,14px) scale(.94)} }

.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 90%);
}

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px; border-radius: var(--r-pill);
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.92); font-size: .82rem; font-weight: 600;
    backdrop-filter: blur(8px); margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.5)} 70%{box-shadow:0 0 0 9px rgba(74,222,128,0)} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0)} }

.hero-title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; color: #fff; margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: rgba(255,255,255,.72); max-width: 540px; margin-bottom: 38px; }
.hero-lead .mx { color: var(--red-400); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero-trust { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-trust > span { font-size: .8rem; color: rgba(255,255,255,.5); font-weight: 500; }
.hero-trust-logos { display: flex; align-items: center; gap: 18px; }
.hero-trust-logos img { height: 26px; width: auto; opacity: .85; filter: brightness(0) invert(1); }

/* Hero visual */
.hero-visual { position: relative; height: 480px; display: flex; align-items: center; justify-content: center; }
.hero-core {
    position: relative; z-index: 2;
    width: 200px; height: 200px; border-radius: 32px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(16px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.hero-core-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-brand); display: grid; place-items: center; font-size: 1.7rem; color: #fff; margin-bottom: 8px; box-shadow: var(--shadow-red); }
.hero-core strong { font-family: 'Sora'; font-size: 1.4rem; color: #fff; }
.hero-core small { font-size: .78rem; color: rgba(255,255,255,.55); }
.hero-ring { position: absolute; border: 1px dashed rgba(255,255,255,.14); border-radius: 50%; }
.hero-ring-1 { width: 340px; height: 340px; animation: spin 26s linear infinite; }
.hero-ring-2 { width: 460px; height: 460px; animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 13px 18px; min-width: 190px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px; backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(0,0,0,.28); color: #fff;
}
.glass-card div strong { display: block; font-size: .85rem; font-family: 'Sora'; }
.glass-card div span { font-size: .74rem; color: rgba(255,255,255,.6); }
.gc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: .95rem; flex-shrink: 0; }
.ic-blue { background: rgba(96,165,250,.22); color: #93c5fd; }
.ic-red { background: rgba(248,113,113,.22); color: #fca5a5; }
.ic-green { background: rgba(74,222,128,.22); color: #86efac; }
.ic-purple { background: rgba(192,132,252,.22); color: #d8b4fe; }
.gc-1 { top: 26px; left: -16px; animation: floaty 6s ease-in-out infinite; }
.gc-2 { top: 60px; right: -22px; animation: floaty 7s ease-in-out infinite 1s; }
.gc-3 { bottom: 70px; left: -22px; animation: floaty 6.5s ease-in-out infinite 2s; }
.gc-4 { bottom: 30px; right: -10px; animation: floaty 8s ease-in-out infinite .5s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-13px)} }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.3); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: rgba(255,255,255,.7); border-radius: 4px; transform: translateX(-50%); animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,14px)} }

/* ============ 6. SECTIONS ============ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--navy-900); color: #fff; overflow: hidden; }
.section-dark-bg { position: absolute; inset: 0; pointer-events: none; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head-left { text-align: left; margin-left: 0; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; }
.section-dark .section-title, .section-head-light .section-title { color: #fff; }
.section-sub { margin-top: 16px; font-size: 1.06rem; color: var(--slate-500); }
.section-head-light .section-sub { color: rgba(255,255,255,.62); }
.section-foot { text-align: center; margin-top: 56px; }

/* ============ CARDS GRID ============ */
.cards-grid { display: grid; gap: 26px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

/* Tone helper for icon chips */
.tone-navy { background: rgba(29,45,110,.1); color: var(--c-navy); }
.tone-red { background: rgba(237,28,36,.1); color: var(--c-red); }
.tone-purple { background: rgba(124,58,237,.1); color: var(--c-purple); }
.tone-teal { background: rgba(13,148,136,.1); color: var(--c-teal); }
.tone-amber { background: rgba(217,119,6,.1); color: var(--c-amber); }

/* Service card */
.service-card {
    display: block; position: relative; overflow: hidden;
    background: var(--paper); border: 1.5px solid var(--line);
    border-radius: var(--r-lg); padding: 34px 30px;
    transition: var(--t);
}
.service-card::before { content:''; position:absolute; inset:0; border-radius:inherit; padding:1.5px; background:var(--grad-brand); -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude; opacity:0; transition:opacity var(--t); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.sc-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 22px; transition: var(--t); }
.service-card:hover .sc-icon { transform: scale(1.06) rotate(-4deg); }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { font-size: .94rem; color: var(--slate-500); margin-bottom: 18px; }
.card-more { display: inline-flex; align-items: center; gap: 7px; font-family: 'Sora'; font-size: .85rem; font-weight: 600; color: var(--navy-600); transition: gap var(--t); }
.card-more i { font-size: .8em; }
.service-card:hover .card-more { gap: 12px; color: var(--red-500); }

/* ============ 7. HOME COMPONENTS ============ */
/* Stats strip */
.stats-strip { margin-top: -54px; position: relative; z-index: 5; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); padding: 38px 20px;
}
.stats-grid-light { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
.stat { text-align: center; padding: 8px 14px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stats-grid-light .stat + .stat::before { background: rgba(255,255,255,.12); }
.stat-num { font-family: 'Sora'; font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); color: var(--navy-700); line-height: 1; display: flex; justify-content: center; align-items: baseline; }
.stats-grid-light .stat-num { color: #fff; }
.stat-suffix { color: var(--red-500); }
.stat-label { margin-top: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-400); }
.stats-grid-light .stat-label { color: rgba(255,255,255,.55); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro-text p { color: var(--slate-500); margin-bottom: 16px; }
.intro-text .mx { color: var(--red-500); }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; margin-top: 8px; font-family: 'Sora'; font-weight: 600; font-size: .95rem; color: var(--red-500); transition: gap var(--t); }
.link-arrow:hover { gap: 14px; }
.intro-points { display: grid; gap: 18px; }
.intro-point { display: flex; gap: 18px; padding: 22px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); transition: var(--t); }
.intro-point:hover { box-shadow: var(--shadow); transform: translateX(6px); border-color: var(--line-soft); }
.ip-icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.2rem; background: var(--grad-brand); color: #fff; }
.intro-point h3 { font-size: 1.05rem; margin-bottom: 4px; }
.intro-point p { font-size: .9rem; color: var(--slate-500); margin: 0; }

/* Product card */
.product-card {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-lg); padding: 28px; backdrop-filter: blur(8px);
    transition: var(--t);
}
.product-card:hover { transform: translateY(-7px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pc-logo { background: #fff; border-radius: 12px; padding: 10px 16px; min-height: 56px; display: grid; place-items: center; }
.pc-logo img { max-height: 36px; max-width: 150px; width: auto; object-fit: contain; }
.pc-logo-icon { width: 56px; padding: 0; background: rgba(255,255,255,.08); }
.pc-logo-icon i { font-size: 1.5rem; color: rgba(255,255,255,.8); }
.product-card h3 { font-size: 1.3rem; color: #fff; margin-bottom: 6px; }
.pc-cat { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.5); text-transform: uppercase; margin-bottom: 12px; }
.product-card p { font-size: .9rem; color: rgba(255,255,255,.62); }
.product-card-wip { opacity: .92; }

.status { font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: var(--r-pill); letter-spacing: .03em; }
.status-live { background: rgba(74,222,128,.16); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.status-development { background: rgba(251,191,36,.16); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.process::before { content: ''; position: absolute; top: 38px; left: 9%; right: 9%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); }
.process-step { text-align: center; position: relative; z-index: 1; }
.ps-num { font-family: 'Sora'; font-weight: 800; font-size: .82rem; color: var(--red-500); margin-bottom: 10px; letter-spacing: .1em; }
.ps-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 1.5rem; color: var(--navy-600); box-shadow: var(--shadow-sm); transition: var(--t); }
.process-step:hover .ps-icon { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-5px); box-shadow: var(--shadow); }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: .85rem; color: var(--slate-500); }

/* Testimonials */
.testimonial { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 34px 30px; position: relative; transition: var(--t); }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.quote-mark { width: 46px; height: 46px; border-radius: 12px; background: rgba(237,28,36,.1); color: var(--red-500); display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 20px; }
.testimonial blockquote { font-size: .98rem; color: var(--slate-700); line-height: 1.75; margin-bottom: 24px; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-family: 'Sora'; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.t-meta strong { display: block; font-family: 'Sora'; font-size: .92rem; }
.t-meta small { color: var(--slate-400); font-size: .82rem; }

/* Clients strip */
.clients-strip { padding: 56px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.clients-label { text-align: center; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 26px; }
.clients-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 56px; }
.client-name { font-family: 'Sora'; font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.5rem); color: var(--slate-700); opacity: .55; transition: var(--t); letter-spacing: -.01em; }
.client-name:hover { opacity: 1; color: var(--navy-600); }

/* Legal / prose pages */
.legal-prose { max-width: 820px; margin: 0 auto; }
.legal-intro { font-size: 1.05rem; color: var(--slate-700); margin-bottom: 8px; }
.legal-prose h2 { font-size: 1.35rem; margin: 40px 0 14px; padding-top: 8px; }
.legal-prose h2:first-of-type { margin-top: 8px; }
.legal-prose h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--slate-700); }
.legal-prose p { color: var(--slate-500); margin-bottom: 14px; }
.legal-prose ul { list-style: disc; padding-left: 24px; margin: 0 0 16px; }
.legal-prose li { color: var(--slate-500); margin-bottom: 8px; }
.legal-prose a { color: var(--red-500); font-weight: 500; }
.legal-prose a:hover { text-decoration: underline; }
.legal-prose strong { color: var(--ink); }
.legal-toc { background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin-bottom: 40px; }
.legal-toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate-400); margin-bottom: 12px; }
.legal-toc ol { padding-left: 20px; columns: 2; gap: 24px; }
.legal-toc li { margin-bottom: 7px; }
.legal-toc a { color: var(--navy-600); font-size: .9rem; font-weight: 500; }
.legal-toc a:hover { color: var(--red-500); }
.legal-note { margin-top: 36px; padding: 20px 24px; background: rgba(237,28,36,.05); border-left: 3px solid var(--red-500); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem; color: var(--slate-500); }

/* ============ 8. INNER PAGES ============ */
.page-hero { position: relative; background: var(--grad-hero); color: #fff; padding: calc(var(--header-h) + 80px) 0 90px; overflow: hidden; }
.page-hero-sm { padding-bottom: 70px; }
.page-hero-lead .updated { display: inline-block; margin-top: 10px; font-size: .85rem; color: rgba(255,255,255,.55); }
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.crumbs { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.crumbs a { color: rgba(255,255,255,.78); transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: .6rem; opacity: .5; }
.crumbs span { color: var(--red-400); font-weight: 600; }
.page-hero-title { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; color: #fff; position: relative; z-index: 2; }
.page-hero-lead { margin-top: 20px; max-width: 600px; font-size: 1.12rem; color: rgba(255,255,255,.72); position: relative; z-index: 2; }

/* About story */
.story-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.story-text p { color: var(--slate-500); margin-bottom: 18px; }
.story-text .mx, .story-text strong { color: var(--ink); }
.story-text .mx { color: var(--red-500); }
.story-card { background: var(--navy-900); color: #fff; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-lg); position: sticky; top: 100px; }
.story-card-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sc-k { color: rgba(255,255,255,.5); font-size: .88rem; }
.sc-v { font-family: 'Sora'; font-weight: 600; font-size: .9rem; text-align: right; }
.story-quote { margin-top: 26px; font-family: 'Sora'; font-style: italic; font-size: 1.05rem; color: #fff; line-height: 1.5; }
.story-card cite { display: block; margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,.5); font-style: normal; }
.story-card cite .mx { color: var(--red-400); }

/* Mission / Vision */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 44px 38px; transition: var(--t); }
.mv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.mv-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-size: 1.55rem; margin-bottom: 22px; }
.mv-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.mv-card p { color: var(--slate-500); }

/* Value card */
.value-card { text-align: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 40px 26px; transition: var(--t); }
.section-alt .value-card { background: #fff; }
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vc-icon { width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 20px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: var(--shadow); transition: var(--t); }
.value-card:hover .vc-icon { transform: scale(1.08) rotate(-5deg); }
.value-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.value-card p { font-size: .9rem; color: var(--slate-500); }

/* Detailed services */
.svc-detail-list { display: flex; flex-direction: column; gap: 28px; }
.svc-detail { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 40px; transition: var(--t); scroll-margin-top: 100px; }
.svc-detail:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-detail-media { position: relative; border-radius: var(--r-lg); aspect-ratio: 1/.78; display: grid; place-items: center; overflow: hidden; }
.svc-detail-icon { font-size: 3.4rem; }
.svc-detail-no { position: absolute; right: 18px; bottom: 6px; font-family: 'Sora'; font-weight: 800; font-size: 4.5rem; opacity: .14; }
.svc-detail-body h2 { font-size: 1.7rem; margin-bottom: 14px; }
.svc-detail-desc { color: var(--slate-500); margin-bottom: 22px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-bottom: 24px; }
.feature-grid li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--slate-700); }
.feature-grid li i { color: var(--c-green); font-size: .95rem; flex-shrink: 0; }
.feature-grid-compact { grid-template-columns: 1fr 1fr; margin: 14px 0 22px; }
.product-card .feature-grid li { color: rgba(255,255,255,.7); }
.product-card .feature-grid li i { color: #fbbf24; }

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tech-chip { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 12px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: var(--t); }
.tech-chip:hover { background: rgba(255,255,255,.1); transform: translateY(-5px); border-color: rgba(255,255,255,.22); }
.tech-chip i { font-size: 2rem; color: #fff; }
.tech-chip span { font-size: .8rem; color: rgba(255,255,255,.7); font-weight: 500; }

/* Product feature rows */
.prod-feature-list { display: flex; flex-direction: column; gap: 32px; }
.prod-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.prod-feature.is-flipped .pf-visual { order: 2; }
.pf-visual { border-radius: var(--r-xl); background: var(--grad-hero); padding: 54px 40px; display: grid; place-items: center; min-height: 320px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.pf-visual::after { content: ''; position: absolute; width: 300px; height: 300px; top: -80px; right: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(237,28,36,.25), transparent 70%); }
.pf-visual-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pf-logo { background: #fff; border-radius: var(--r); padding: 22px 30px; box-shadow: var(--shadow); }
.pf-logo img { max-height: 56px; max-width: 230px; width: auto; }
.pf-logo-icon { width: 110px; height: 110px; padding: 0; display: grid; place-items: center; background: var(--grad-brand); }
.pf-logo-icon i { font-size: 3rem; color: #fff; }
.pf-tagline { font-family: 'Sora'; font-style: italic; font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 280px; }
.pf-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pf-meta .pc-cat { margin: 0; color: var(--slate-400); }
.pf-body h3 { font-size: 1.9rem; margin-bottom: 14px; }
.pf-body > p { color: var(--slate-500); margin-bottom: 20px; }

/* ============ 9. CONTACT ============ */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.contact-aside .section-title { font-size: 2rem; margin-bottom: 14px; }
.contact-aside-lead { color: var(--slate-500); margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 34px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.cl-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--paper-2); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--navy-600); font-size: 1.05rem; flex-shrink: 0; transition: var(--t); }
.contact-list li:hover .cl-icon { background: var(--grad-brand); color: #fff; border-color: transparent; }
.cl-body { display: flex; flex-direction: column; }
.cl-body strong { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); }
.cl-body a, .cl-body span { font-size: .98rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.cl-body a:hover { color: var(--red-500); }
.contact-social > span { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); font-weight: 600; }
.cs-row { display: flex; gap: 10px; margin-top: 12px; }
.cs-row a { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--slate-500); transition: var(--t); }
.cs-row a:hover { background: var(--navy-600); color: #fff; border-color: transparent; transform: translateY(-3px); }

.contact-form-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); padding: 44px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .85rem; font-weight: 600; font-family: 'Sora'; }
.req { color: var(--red-500); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; font: inherit; font-size: .94rem; color: var(--ink);
    background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--r-sm);
    outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-500); background: #fff; box-shadow: 0 0 0 4px rgba(42,63,150,.1); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red-500); box-shadow: 0 0 0 4px rgba(237,28,36,.1); }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235A6478' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-feedback { margin-top: 14px; font-size: .9rem; font-weight: 500; text-align: center; display: none; padding: 12px; border-radius: var(--r-sm); }
.form-feedback.ok { display: block; background: rgba(22,163,74,.1); color: #15803d; }
.form-feedback.err { display: block; background: rgba(237,28,36,.1); color: var(--red-600); }
.form-note { margin-top: 14px; font-size: .8rem; color: var(--slate-400); text-align: center; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* ============ 10. FOOTER ============ */
.footer { background: var(--navy-900); color: #fff; padding-top: 80px; }
.footer-cta {
    margin-bottom: 64px;
    background: var(--grad-brand); border-radius: var(--r-xl); padding: 50px 56px;
    display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
    box-shadow: var(--shadow-xl); position: relative; overflow: hidden;
}
.footer-cta::after { content: ''; position: absolute; width: 360px; height: 360px; top: -140px; right: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.footer-cta-text { position: relative; z-index: 1; }
.footer-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.footer-cta p { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 460px; }
.footer-cta .btn { position: relative; z-index: 1; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr; gap: 44px; padding: 0 0 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo { height: 42px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .92rem; max-width: 290px; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; color: rgba(255,255,255,.6); transition: var(--t); }
.footer-social a:hover { background: var(--red-500); color: #fff; border-color: transparent; transform: translateY(-3px); }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.5); transition: var(--t); display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: #fff; }
.footer-contact i { width: 16px; color: var(--red-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 24px 0; }
.footer-bottom p { font-size: .84rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { font-size: .84rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* Back to top */
.back-top { position: fixed; right: 26px; bottom: 26px; z-index: 990; width: 50px; height: 50px; border-radius: 14px; background: var(--red-500); color: #fff; display: grid; place-items: center; font-size: 1rem; box-shadow: var(--shadow-red); opacity: 0; visibility: hidden; transform: translateY(18px); transition: var(--t); }
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--red-600); transform: translateY(-4px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand p { max-width: 100%; }
    .process { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; }
    .process::before { display: none; }
    .intro-grid, .story-grid { gap: 44px; }
}

@media (max-width: 860px) {
    .nav-cta-desktop { display: none; }
    .nav-toggle { display: flex; }
    .nav { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff; box-shadow: var(--shadow-xl); transform: translateX(100%); transition: transform .4s var(--ease); padding: calc(var(--header-h) + 20px) 28px 28px; }
    .nav.open { transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { color: var(--ink); padding: 14px 16px; border-radius: var(--r-sm); }
    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.is-active { background: var(--paper-2); }
    .nav-cta-mobile { display: block; margin-top: 14px; }
    .nav-cta-mobile .btn { width: 100%; justify-content: center; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(10,21,53,.5); z-index: 999; backdrop-filter: blur(2px); }

    .hero { min-height: auto; padding-top: calc(var(--header-h) + 60px); }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-lead { max-width: 100%; }

    .intro-grid, .story-grid, .mv-grid, .prod-feature, .contact-layout { grid-template-columns: 1fr; }
    .prod-feature.is-flipped .pf-visual { order: 0; }
    .story-card { position: static; }
    .svc-detail { grid-template-columns: 1fr; gap: 26px; text-align: left; }
    .svc-detail-media { max-width: 220px; aspect-ratio: 16/10; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 76px 0; }
    .section-head { margin-bottom: 44px; }
    .cards-grid, .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; padding: 30px 12px; }
    .stat:nth-child(3)::before, .stat:nth-child(odd)::before { display: none; }
    .stat:nth-child(even)::before { display: block; }
    .feature-grid, .feature-grid-compact { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-card { padding: 28px 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-cta { padding: 36px 28px; }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: 1fr 1fr; }
    .hero-trust { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .stats-grid, .footer-grid, .process { grid-template-columns: 1fr; }
    .stat::before { display: none !important; }
}
