/* ==========================================================================
   STANOVA DIGITAL SOLUTIONS — Design System
   Orange / Navy / White / Light Grey · Premium enterprise identity
   ========================================================================== */

/* ===== Tokens ===== */
:root {
  /* Brand — Orange */
  --orange-50:  #FFF7ED;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;
  --orange-300: #FDBA74;
  --orange-400: #FB923C;
  --orange-500: #F97316;
  --orange-600: #EA580C;
  --orange-700: #C2410C;
  --orange-800: #9A3412;
  --orange-900: #7C2D12;

  /* Brand — Navy */
  --navy-50:  #F2F6FC;
  --navy-100: #E1EBF7;
  --navy-200: #C2D6EE;
  --navy-300: #93B4DF;
  --navy-400: #2C54A8;
  --navy-500: #12316B;
  --navy-600: #0E2757;
  --navy-700: #0B1F46;
  --navy-800: #081734;
  --navy-900: #050F24;

  /* Light grey accents */
  --grey-50:  #F7F8FA;
  --grey-100: #EEF1F6;
  --grey-200: #DEE3EC;
  --grey-300: #C7CFDC;
  --grey-400: #98A2B3;
  --grey-500: #6B7280;
  --grey-600: #4B5563;

  --white:  #FFFFFF;
  --ink:    #0A1730;
  --muted:  #5B6B84;

  --grad-primary: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
  --grad-navy:    linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
  --grad-brand:   linear-gradient(120deg, var(--orange-500), var(--navy-500));
  --grad-hero:    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow-sm:  0 2px 8px rgba(10, 23, 48, 0.06);
  --shadow-md:  0 8px 28px rgba(10, 23, 48, 0.10);
  --shadow-lg:  0 20px 60px rgba(10, 23, 48, 0.16);
  --shadow-orange: 0 12px 32px rgba(249, 115, 22, 0.28);

  --maxw: 1240px;
  --nav-h: 76px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange-500); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
ul { padding-left: 1.1rem; }
::selection { background: rgba(249, 115, 22, .22); color: var(--navy-900); }

/* ===== Focus (accessibility) ===== */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }

/* ===== Layout helpers ===== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 56px 0; position: relative; }
.grey-bg { background: var(--grey-50); }
.navy-section { background: var(--grad-navy); color: #E7ECF6; }
.navy-section h2, .navy-section h3 { color: var(--white); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }

/* ===== Eyebrow + headings ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600; color: var(--orange-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad-primary); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.section-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.section-sub { color: var(--muted); font-size: 18px; max-width: 720px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: var(--radius-full);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: scale(.97); }
.btn-orange { background: var(--grad-primary); color: var(--white); box-shadow: var(--shadow-orange); }
.btn-orange:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(249, 115, 22, .38); }
.btn-navy { background: var(--grad-navy); color: var(--white); box-shadow: var(--shadow-md); }
.btn-navy:hover { color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-white { background: var(--white); color: var(--navy-800); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--navy-800); }
.btn-outline { border-color: var(--grey-300); color: var(--navy-800); background: transparent; }
.btn-outline:hover { border-color: var(--orange-500); color: var(--orange-600); transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
  background: rgba(255,255,255,0);
}
.nav.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 rgba(10,23,48,.06), var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); flex: 0 0 auto; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .01em; color: var(--navy-900); display: block; }
.brand-name em { font-style: normal; color: var(--orange-500); }
.brand-tag { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav.scrolled .brand-name { color: var(--navy-900); }
.nav:not(.scrolled) .brand-name { color: var(--white); }
.nav:not(.scrolled) .brand-tag { color: rgba(255,255,255,.7); }
.nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,.85); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 14px; font-size: 14px; font-weight: 500; color: var(--navy-800); border-radius: 10px; position: relative; }
.nav-links a:hover { color: var(--orange-500); background: rgba(249,115,22,.08); }
.nav-links a.active { color: var(--orange-600); font-weight: 600; }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--grad-primary); border-radius: 2px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; position: relative; z-index: 1002; border-radius: 10px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px auto; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav:not(.scrolled) .nav-burger span { background: var(--white); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links {
    position: fixed; inset: 0; background: var(--grad-navy); flex-direction: column;
    justify-content: center; gap: 8px; z-index: 1001;
    opacity: 0; pointer-events: none; transition: opacity .35s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--white); font-size: 20px; padding: 14px 20px; }
  .nav-links a:hover { color: var(--orange-400); background: rgba(255,255,255,.08); }
  .nav-links a.active { color: var(--orange-400); }
  .nav-links a.active::after { background: var(--orange-400); }
  .nav-cta .btn-sm { display: none; }
  .nav-burger { display: block; }
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--grad-hero); color: var(--white); overflow: hidden; padding: 140px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; margin-bottom: 22px; }
.hero h1 .grad-text { background: linear-gradient(100deg, var(--orange-400), var(--orange-500), var(--orange-300)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { color: rgba(255,255,255,.78); font-size: 19px; max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; }
.hero-stat b { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--white); display: block; }
.hero-stat b span { color: var(--orange-400); }
.hero-stat small { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
/* Animated background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: floatY 9s ease-in-out infinite; }
.glow-a { width: 460px; height: 460px; background: radial-gradient(circle, rgba(249,115,22,.55), transparent 70%); top: -140px; right: -80px; }
.glow-b { width: 380px; height: 380px; background: radial-gradient(circle, rgba(44,84,168,.5), transparent 70%); bottom: -120px; left: -100px; animation-delay: -3s; }
.hero-shapes { position: absolute; inset: 0; }
.shape { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; animation: floatY 7s ease-in-out infinite; }
.shape.s1 { width: 120px; height: 120px; right: 12%; top: 24%; transform: rotate(12deg); }
.shape.s2 { width: 70px; height: 70px; right: 30%; top: 14%; transform: rotate(-18deg); animation-delay: -2s; }
.shape.s3 { width: 40px; height: 40px; left: 6%; bottom: 28%; border-radius: 50%; animation-delay: -4s; }
.shape.s4 { width: 90px; height: 90px; left: 20%; top: 20%; border-radius: 50%; animation-delay: -1.4s; }
@keyframes floatY { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(3deg); } }
/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(20px); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg);
  animation: floatY 8s ease-in-out infinite;
}
.hero-card .bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.16); margin-bottom: 10px; }
.hero-card .bar.fill { background: linear-gradient(90deg, var(--orange-500), var(--orange-300)); }
.hero-chip {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(14px); border-radius: 14px; padding: 12px 16px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; color: var(--white); box-shadow: var(--shadow-md);
}
.hero-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange-400); box-shadow: 0 0 0 4px rgba(249,115,22,.25); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.chip-1 { top: -24px; left: -18px; animation: floatY 6s ease-in-out infinite; }
.chip-2 { bottom: 36px; right: -22px; animation: floatY 6.5s ease-in-out infinite; animation-delay: -2s; }
.chip-3 { bottom: -26px; left: 12%; animation: floatY 7s ease-in-out infinite; animation-delay: -4s; }

@media (max-width: 1024px) {
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ===== Cards ===== */
.card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.3,1.2), box-shadow .35s ease, border-color .35s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(249,115,22,.25); }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary); color: var(--white); margin-bottom: 20px; box-shadow: var(--shadow-orange);
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon.navy { background: var(--grad-navy); box-shadow: var(--shadow-md); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--orange-600); }
.card-link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(5px); }
.card.glass {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); backdrop-filter: blur(16px);
}
.card.glass:hover { border-color: rgba(249,115,22,.5); }
.card.glass h3 { color: var(--white); }
.card.glass p { color: rgba(255,255,255,.72); }
.tile { border-radius: var(--radius-md); border: 1px solid var(--grey-100); background: var(--white); padding: 26px; text-align: center; transition: all .3s ease; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(249,115,22,.3); }
.tile h3 { color: var(--navy-800); }

/* ===== Stats band ===== */
.stats-band { background: var(--grad-navy); color: var(--white); position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(249,115,22,.25), transparent 45%), radial-gradient(circle at 90% 100%, rgba(44,84,168,.4), transparent 50%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.stat { text-align: center; padding: 12px; }
.stat b { font-family: var(--font-display); font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; display: block; line-height: 1; }
.stat b span { color: var(--orange-400); }
.stat small { display: block; margin-top: 10px; color: rgba(255,255,255,.65); letter-spacing: .1em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Marquee / logo carousel ===== */
.marquee { overflow: hidden; position: relative; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--grey-300); white-space: nowrap; display: flex; align-items: center; gap: 10px; transition: color .3s; }
.marquee-item:hover { color: var(--navy-800); }
.marquee-item svg { width: 22px; height: 22px; color: var(--orange-400); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all .8s cubic-bezier(.2,.6,.2,1); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all .8s cubic-bezier(.2,.6,.2,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .24s; } .delay-3 { transition-delay: .36s; } .delay-4 { transition-delay: .48s; }

/* ===== Tabs / accordion (FAQ) ===== */
.faq-item { border: 1px solid var(--grey-100); border-radius: var(--radius-md); background: var(--white); margin-bottom: 14px; overflow: hidden; transition: box-shadow .3s; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: rgba(249,115,22,.3); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: none; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--navy-900); text-align: left; }
.faq-q .icon { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); display: flex; align-items: center; justify-content: center; font-weight: 800; transition: transform .3s, background .3s; flex: 0 0 auto; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); background: var(--grad-primary); color: var(--white); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 0; }
.timeline-item { position: relative; padding: 0 0 40px 44px; border-left: 2px solid var(--grey-100); }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -9px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--grad-primary); box-shadow: 0 0 0 4px var(--orange-100); }
.timeline-year { font-family: var(--font-mono); color: var(--orange-600); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.timeline-item h3 { font-size: 19px; margin: 6px 0 8px; }
.timeline-item p { color: var(--muted); }

/* ===== Testimonials ===== */
.testimonial { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.testimonial .quote { font-size: 16px; color: var(--ink); margin-bottom: 22px; }
.testimonial .quote::before { content: '“'; font-family: var(--font-display); font-size: 42px; color: var(--orange-400); display: block; line-height: 1; margin-bottom: 6px; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--font-display); }
.testi-name { font-weight: 700; font-size: 15px; color: var(--navy-900); }
.testi-role { font-size: 13px; color: var(--muted); }

/* ===== Forms ===== */
.form { display: grid; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--grey-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--white);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange-500); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }
.field textarea { resize: vertical; min-height: 120px; }
.navy-section .field input, .navy-section .field textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--white); }
.navy-section .field input::placeholder { color: rgba(255,255,255,.5); }
.form-note { font-size: 13px; color: var(--muted); }
.form-msg { display: none; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.form-msg.ok { display: block; background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form-msg.err { display: block; background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ===== Chat / AI widget ===== */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 1200; width: 58px; height: 58px; border-radius: 50%;
  background: var(--grad-primary); color: var(--white); border: 0; cursor: pointer;
  box-shadow: var(--shadow-orange); display: flex; align-items: center; justify-content: center;
  transition: transform .25s, box-shadow .25s;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 20px 44px rgba(249,115,22,.4); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 1201; width: 360px; max-width: calc(100vw - 48px);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(20px) scale(.97); opacity: 0; pointer-events: none; transition: all .3s cubic-bezier(.2,.7,.3,1.1);
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { background: var(--grad-navy); color: var(--white); padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; }
.chat-head b { font-family: var(--font-display); }
.chat-head small { color: rgba(255,255,255,.6); }
.chat-body { padding: 20px; min-height: 180px; font-size: 14px; color: var(--muted); }
.chat-msg { background: var(--grey-50); border-radius: 12px 12px 12px 4px; padding: 12px 14px; margin-bottom: 12px; }
.chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--grey-100); }
.chat-input input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--grey-200); border-radius: 10px; font-size: 14px; }
.chat-input input:focus { outline: none; border-color: var(--orange-500); }
.chat-input button { border: 0; background: var(--grad-primary); color: var(--white); border-radius: 10px; padding: 0 16px; cursor: pointer; }

/* ===== Footer ===== */
.footer { background: var(--navy-900); color: #AAB7CE; position: relative; overflow: hidden; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--orange-500), var(--orange-300), var(--orange-500)); }
.footer a { color: #AAB7CE; }
.footer a:hover { color: var(--orange-400); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 72px 0 48px; }
.footer .brand-name { color: var(--white); }
.footer h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; letter-spacing: .02em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; font-size: 14px; }
.footer-about { font-size: 14px; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.footer-social a:hover { background: var(--grad-primary); border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ===== Breadcrumb / page hero ===== */
.page-hero { position: relative; background: var(--grad-navy); color: var(--white); padding: 160px 0 90px; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(249,115,22,.3), transparent 45%), radial-gradient(circle at 10% 90%, rgba(44,84,168,.35), transparent 50%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 54px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 18px; max-width: 640px; }
.crumbs { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--orange-300); }
.crumbs a:hover { color: var(--orange-200); }

/* ===== Service page blocks ===== */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.service-block:nth-child(even) .sb-media { order: 2; }
.sb-media { position: relative; }
.sb-media .card { padding: 40px; }
.sb-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.sb-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.sb-list li::before { content: '✓'; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; background: var(--orange-100); color: var(--orange-600); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; gap: 32px; } .service-block:nth-child(even) .sb-media { order: 0; } }

/* ===== Project cards ===== */
.project-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); border: 1px solid var(--grey-100); box-shadow: var(--shadow-sm); transition: all .35s ease; }
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-visual { position: relative; height: 220px; background: var(--grad-navy); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.project-visual .mono-badge { font-family: var(--font-mono); color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .05em; z-index: 2; }
.project-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(249,115,22,.45), transparent 55%); }
.project-visual .pat { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; }
.project-tag { position: absolute; top: 14px; left: 14px; background: rgba(5,15,36,.55); backdrop-filter: blur(8px); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); z-index: 2; }
.project-status { background: rgba(234,179,8,.15); color: #b8860b; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(184,134,11,.35); margin-left: auto; }
.project-body { padding: 24px; }
.project-body h3 { font-size: 18px; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.project-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.project-meta span { font-size: 11px; font-weight: 600; color: var(--navy-600); background: var(--navy-50); padding: 4px 10px; border-radius: 999px; }

/* ===== Feature / split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 14px; }
.value-num { font-family: var(--font-mono); color: var(--orange-500); font-weight: 700; font-size: 14px; flex: 0 0 auto; }

/* ===== Misc ===== */
.badge { display: inline-block; background: var(--orange-100); color: var(--orange-700); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; letter-spacing: .04em; }
.badge.navy { background: var(--navy-100); color: var(--navy-600); }
.grad-text { background: linear-gradient(100deg, var(--orange-500), var(--orange-400), var(--orange-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.divider { height: 1px; background: var(--grey-100); border: 0; margin: 0; }
.cta-band { background: var(--grad-brand); border-radius: var(--radius-xl); padding: 64px; text-align: center; color: var(--white); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 30px; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 50%), radial-gradient(circle at 90% 100%, rgba(5,15,36,.4), transparent 50%); }
.cta-band > * { position: relative; }

/* Tech logos */
.tech-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-full); padding: 10px 18px; font-weight: 600; font-size: 14px; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.tech-chip svg { width: 16px; height: 16px; color: var(--orange-500); }

/* ===== Responsive grids ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-sm { padding: 36px 0; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; }
  .section-head { margin-bottom: 32px; }
  .cta-band { padding: 32px 20px; }
  .cta-band h2 { font-size: 24px; }
  .hero { padding: 120px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .hero-stats { gap: 16px; flex-direction: column; }
  .hero-stat b { font-size: 26px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .card { padding: 20px; }
  .tile { padding: 18px; }
  .tile h3 { font-size: 14px; }
  .container { padding: 0 16px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .stat b { font-size: 28px; }
  .stat small { font-size: 12px; }
}

/* ===== Print (brand documents) ===== */
@media print {
  body { background: #fff !important; }
  .no-print { display: none !important; }
  .print-page { page-break-after: always; }
  .print-sheet { box-shadow: none !important; border-radius: 0 !important; }
}
