/* Aethra Solutions — site styles. Tokens follow ../../../../aethra-style-guide.md */

:root {
  --navy: #002347;
  --navy-deep: #001538;
  --blue: #1f5fa8;
  --teal: #007c89;
  --teal-on-dark: #33c3d1;
  --muted: #5f6b7a;
  --body: #3d4754;
  --ink: #1a1a1a;
  --bg-light: #f5f8fa;
  --line: #e3e9ef;
  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 10px 30px rgba(0, 35, 71, 0.06);
  --shadow-hover: 0 20px 40px rgba(0, 35, 71, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 81px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--navy); line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 104px; }
.section--light { background: var(--bg-light); }
.section--tight-bottom { padding-bottom: 40px; }

.eyebrow { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow--light { color: var(--teal-on-dark); }
.h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose p { font-size: 17px; color: var(--body); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: center; }
.split--top { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius-sm); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.btn--sm { padding: 11px 20px; font-size: 15px; font-weight: 600; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.arrow { display: inline-block; transition: transform 0.2s; }
a:hover .arrow { transform: translateX(4px); }
.text-link { font-weight: 600; text-decoration: none; color: var(--blue); }
.text-link:hover { color: var(--navy); }
.hero-link { color: var(--white); text-decoration: none; font-weight: 600; padding-block: 12px; border-bottom: 1.5px solid rgba(255, 255, 255, 0.35); }
.hero-link:hover { color: var(--white); border-bottom-color: var(--teal-on-dark); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { position: relative; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 4px; }
.nav__link::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--teal); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .brand img { height: 42px; }
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 35, 71, 0.08); display: none; }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Dark backgrounds and the animated pattern ---------- */
.dark { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(circle at 12% 20%, var(--navy) 0%, var(--navy-deep) 70%); }
.dark--flat { background: var(--navy-deep); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark > .container { position: relative; z-index: 1; }
.pattern { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pattern__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.2px); background-size: 28px 28px; animation: dots-drift 30s linear infinite; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb--a { width: 420px; height: 420px; background: rgba(51, 195, 209, 0.22); top: -140px; right: 8%; animation: orb-a 16s ease-in-out infinite; }
.orb--b { width: 360px; height: 360px; background: rgba(31, 95, 168, 0.35); bottom: -140px; left: -60px; animation: orb-b 20s ease-in-out infinite; }
.circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.circuit .trace { fill: none; stroke: rgba(51, 195, 209, 0.16); stroke-width: 1.2; }
.circuit .spark { fill: none; stroke: var(--teal-on-dark); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 70 1400; animation: spark 7s linear infinite; }
.circuit .spark--2 { animation-delay: -2.3s; animation-duration: 9s; }
.circuit .spark--3 { animation-delay: -4.6s; animation-duration: 8s; }
.circuit .node { fill: var(--teal-on-dark); opacity: 0.55; }
@keyframes dots-drift { to { background-position: 56px 56px; } }
@keyframes orb-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-60px, 50px); } }
@keyframes orb-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(70px, -40px); } }
@keyframes spark { from { stroke-dashoffset: 1470; } to { stroke-dashoffset: 0; } }

/* ---------- Home hero ---------- */
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; padding-block: 64px 72px; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; }
.hero__title { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -0.01em; }
.hero__lead { font-size: 18px; color: rgba(255, 255, 255, 0.8); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 8px; }
.hero-visual { max-width: 500px; width: 100%; justify-self: center; }
.hero-visual__panel { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 16px; backdrop-filter: blur(6px); animation: float 7s ease-in-out infinite; }
.hero-visual__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: 14px; padding: 13px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); animation: tile-glow 8s ease-in-out infinite; }
.tile svg { width: 24px; height: 24px; stroke: var(--teal-on-dark); }
.tile--core { justify-content: center; background: var(--teal); border-color: var(--teal-on-dark); font-size: 14px; font-weight: 800; animation: core-pulse 2.4s ease-out infinite; }
.tile--core svg { width: 28px; height: 28px; stroke: var(--white); }
.tile:nth-child(1) { animation-delay: 0s; } .tile:nth-child(2) { animation-delay: 1s; } .tile:nth-child(3) { animation-delay: 2s; }
.tile:nth-child(6) { animation-delay: 3s; } .tile:nth-child(9) { animation-delay: 4s; } .tile:nth-child(8) { animation-delay: 5s; }
.tile:nth-child(7) { animation-delay: 6s; } .tile:nth-child(4) { animation-delay: 7s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes tile-glow { 0%, 14%, 100% { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); } 6% { background: rgba(51, 195, 209, 0.18); border-color: var(--teal-on-dark); } }
@keyframes core-pulse { 0% { box-shadow: 0 0 0 0 rgba(51, 195, 209, 0.5); } 100% { box-shadow: 0 0 0 22px rgba(51, 195, 209, 0); } }

/* Entrance for hero content */
.rise { animation: rise 0.8s var(--ease) both; }
.rise--1 { animation-delay: 0.1s; } .rise--2 { animation-delay: 0.2s; } .rise--3 { animation-delay: 0.3s; } .rise--4 { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: 88px; display: flex; flex-direction: column; gap: 20px; }
.page-hero__title { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; font-weight: 800; max-width: 820px; }
.page-hero__lead { font-size: 19px; color: rgba(255, 255, 255, 0.8); max-width: 700px; }
.jump-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.jump-links a { color: var(--white); text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.jump-links a:hover { color: var(--white); border-color: var(--teal-on-dark); background: rgba(51, 195, 209, 0.12); }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card--soft { background: var(--bg-light); }
.card--sm { padding: 22px; gap: 10px; border-radius: 14px; }
.card h3 { font-size: 22px; font-weight: 700; }
.card--sm h3 { font-size: 17px; }
.card p { color: var(--body); }
.card--sm p { font-size: 15px; color: var(--muted); }
.lift { transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #cfe3e6; }
.icon-tile { width: 56px; height: 56px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--teal); background: rgba(0, 124, 137, 0.1); transition: background 0.3s, color 0.3s; flex-shrink: 0; }
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile--sm { width: 48px; height: 48px; }
.icon-tile--sm svg { width: 24px; height: 24px; }
.lift:hover .icon-tile { background: var(--teal); color: var(--white); }
.checklist { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 18px; height: 18px; stroke: var(--teal); flex-shrink: 0; margin-top: 3px; }
.card .checklist { flex-grow: 1; }
.label-caps { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Home: who we are visual ---------- */
.compare { display: grid; gap: 16px; }
.compare__before { background: var(--bg-light); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.compare__scraps { display: flex; flex-wrap: wrap; gap: 8px; }
.compare__scraps span { padding: 7px 12px; border-radius: var(--radius-sm); background: var(--white); border: 1px dashed #b9c6d2; font-size: 14px; color: var(--muted); }
.compare__scraps span:nth-child(odd) { transform: rotate(-1.5deg); }
.compare__scraps span:nth-child(even) { transform: rotate(1.5deg); }
.compare__arrow { display: flex; justify-content: center; color: var(--teal); }
.compare__after { background: var(--navy-deep); color: var(--white); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.compare__after ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; font-size: 14px; }
.compare__after li { display: flex; gap: 8px; align-items: center; }
.compare__after svg { width: 16px; height: 16px; stroke: var(--teal-on-dark); }

/* ---------- Home: industries strip ---------- */
.marquee { overflow: hidden; padding-block: 8px 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: flex; gap: 20px; width: max-content; padding-inline: 24px; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.ind-card { width: 300px; flex-shrink: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 14px; align-items: center; align-content: start; transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.ind-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 35, 71, 0.12); border-color: #cfe3e6; }
.ind-card h3 { font-size: 19px; font-weight: 700; }
.ind-card p { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }
.ind-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: rgba(31, 95, 168, 0.1); color: var(--blue); display: flex; align-items: center; justify-content: center; transition: background 0.3s, color 0.3s; }
.ind-icon svg { width: 26px; height: 26px; }
.ind-card:hover .ind-icon { background: var(--blue); color: var(--white); }

/* ---------- Chips and tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--navy); transition: transform 0.2s, border-color 0.2s; }
.chip svg { width: 20px; height: 20px; stroke: var(--teal); }
.chip:hover { transform: translateY(-3px); border-color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 13px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--navy); }
.tag--pill { border-radius: 999px; padding: 8px 14px; }
.tag--soft { background: var(--bg-light); }

/* ---------- Home: demo steps ---------- */
.step-line { height: 3px; border-radius: 2px; background: #dbe6ec; position: relative; overflow: hidden; margin-bottom: 28px; }
.step-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--teal-on-dark)); transform-origin: left; animation: fill-line 6s ease-in-out infinite; }
@keyframes fill-line { 0% { transform: scaleX(0); } 45%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.step-num { font-size: 13px; font-weight: 800; color: var(--teal); letter-spacing: 0.1em; }

/* ---------- Home: why Aethra ---------- */
.why { flex-direction: row; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius-lg); }
.why h3 { font-size: 19px; margin-bottom: 6px; }

/* ---------- CTA band and footer ---------- */
.cta-band { padding-block: 96px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.2; }
.cta-band p { font-size: 18px; color: rgba(255, 255, 255, 0.78); max-width: 640px; }
.cta-band .btn { margin-top: 10px; }
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.8); border-top: 1px solid rgba(255, 255, 255, 0.08); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 32px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.footer-brand { font-size: 20px; font-weight: 700; color: var(--white); }
.footer-tagline { font-size: 14px; letter-spacing: 0.08em; color: var(--teal-on-dark); }
.footer-about { font-size: 14px; color: rgba(255, 255, 255, 0.65); margin-top: 6px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Services ---------- */
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px 20px; }
.service-list li { display: flex; gap: 12px; align-items: flex-start; }
.service-list svg { width: 20px; height: 20px; stroke: var(--teal); flex-shrink: 0; margin-top: 3px; }
.service-list b { display: block; color: var(--navy); }
.service-list span span { font-size: 15px; color: var(--muted); }
.modules-panel { background: var(--bg-light); border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.module { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; font-size: 15px; font-weight: 600; color: var(--navy); transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.module:hover { transform: translateY(-3px); border-color: var(--teal); background: #f0f9fa; }
.small-muted { font-size: 14px; color: var(--muted); }

.phone { width: 230px; height: 440px; border-radius: 36px; background: var(--navy-deep); padding: 12px; box-shadow: 0 25px 50px -12px rgba(0, 35, 71, 0.35); margin-inline: auto; animation: float 7s ease-in-out infinite; }
.phone__screen { width: 100%; height: 100%; border-radius: 26px; background: var(--white); padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; }
.sk { border-radius: 4px; background: #c9d4de; height: 8px; }
.sk--title { height: 12px; width: 60%; border-radius: 6px; background: var(--navy); }
.sk--hero { height: 90px; border-radius: var(--radius-md); background: rgba(0, 124, 137, 0.12); }
.sk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sk-grid div { height: 58px; border-radius: 10px; background: var(--bg-light); border: 1px solid var(--line); }
.sk--btn { margin-top: auto; height: 40px; border-radius: 10px; background: var(--teal); }
.shimmer { position: relative; overflow: hidden; }
.shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%); transform: translateX(-100%); animation: shimmer 3.2s ease-in-out infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.browser { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 25px 50px -12px rgba(0, 35, 71, 0.25); overflow: hidden; animation: float 7s ease-in-out infinite; }
.browser__bar { height: 38px; background: var(--navy-deep); display: flex; align-items: center; gap: 8px; padding-inline: 16px; }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.browser__body { display: grid; grid-template-columns: 120px minmax(0, 1fr); min-height: 260px; }
.browser__side { background: var(--bg-light); padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.browser__main { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.browser__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.browser__cards div { height: 64px; border-radius: 10px; }

.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.flow span { padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bg-light); border: 1px solid var(--line); }
.flow span:last-child { background: var(--teal); border-color: var(--teal); color: var(--white); }
.flow svg { width: 16px; height: 16px; stroke: var(--teal); }
.chat { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.chat__bubble { align-self: flex-start; padding: 8px 12px; border-radius: 12px 12px 12px 4px; background: var(--bg-light); border: 1px solid var(--line); font-size: 14px; color: var(--navy); }
.typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.ai-panel { margin-top: 24px; background: var(--navy-deep); border-radius: 18px; padding: 32px; color: var(--white); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 40px; }
.ai-panel h3 { color: var(--white); font-size: 20px; }
.ai-panel p { color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.ai-panel ul { display: flex; flex-direction: column; gap: 12px; }
.ai-panel li { display: flex; gap: 12px; align-items: flex-start; }
.ai-panel li svg { width: 20px; height: 20px; stroke: var(--teal-on-dark); flex-shrink: 0; margin-top: 2px; }
.ai-panel li span span { font-size: 15px; color: rgba(255, 255, 255, 0.72); }

/* ---------- About ---------- */
.about-hero { padding-block: 88px 0; }
.facts { position: relative; z-index: 2; margin: 56px 0 -48px; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0, 35, 71, 0.18); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); overflow: hidden; }
.facts div { padding: 28px; display: flex; flex-direction: column-reverse; gap: 4px; border-right: 1px solid var(--line); transition: background 0.3s; }
.facts div:last-child { border-right: 0; }
.facts div:hover { background: #f0f9fa; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-size: 34px; font-weight: 800; color: var(--teal); }
.after-facts { padding-top: 144px; }
.draft-note { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1.5px dashed #c58a00; background: #fff8e6; color: #6b4e00; font-size: 13px; font-weight: 600; }
.link-card { text-decoration: none; color: inherit; }
.link-card:hover { color: inherit; }
.link-card .more { margin-top: auto; font-weight: 600; color: var(--blue); font-size: 15px; }

/* ---------- Contact and forms ---------- */
.contact-section { padding-block: 88px 96px; }
.numbered { display: flex; flex-direction: column; gap: 14px; }
.numbered li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.numbered b { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: 14px; display: flex; align-items: center; justify-content: center; }
.numbered span { padding-top: 2px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.contact-card li { display: flex; gap: 14px; align-items: center; }
.contact-card svg { width: 22px; height: 22px; stroke: var(--blue); flex-shrink: 0; }
.form-card { background: var(--white); border-radius: var(--radius-xl); padding: 36px; box-shadow: 0 20px 40px rgba(0, 35, 71, 0.12); }
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-light); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 124, 137, 0.2); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; border-radius: 10px; padding: 12px 14px; }
.form-status[data-state="error"] { background: #fdecea; color: #8a1c13; }
.form-status[data-state="success"] { background: #e3f3ea; color: #145a32; }
.form-note { font-size: 14px; color: var(--muted); }

/* ---------- Contact pop-up ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 21, 56, 0.62); backdrop-filter: blur(4px); animation: fade 0.3s ease-out both; }
.modal__dialog { position: relative; width: 100%; max-width: 820px; max-height: calc(100vh - 40px); overflow: auto; background: var(--white); border-radius: var(--radius-xl); box-shadow: 0 30px 60px rgba(0, 21, 56, 0.35); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); animation: pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.modal__aside { background: radial-gradient(circle at 20% 15%, var(--navy) 0%, var(--navy-deep) 75%); color: var(--white); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.modal__aside h2 { color: var(--white); font-size: 28px; font-weight: 800; line-height: 1.2; }
.modal__aside p { font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.modal__aside ul { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.modal__aside li { display: flex; gap: 10px; align-items: center; }
.modal__aside li svg { width: 18px; height: 18px; stroke: var(--teal-on-dark); }
.modal__contact { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; }
.modal__contact a { color: var(--teal-on-dark); font-weight: 600; text-decoration: none; white-space: nowrap; }
.modal__contact a:hover { color: var(--white); text-decoration: underline; }
.modal__body { padding: 32px; }
.modal__body .lead-form { gap: 14px; }
.modal__body .field input, .modal__body .field textarea { font-size: 15px; padding: 11px 12px; }
.modal__body .field textarea { min-height: 84px; }
.modal__body h3 { font-size: 20px; padding-right: 40px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 4px 12px rgba(0, 21, 56, 0.15); }
.modal__close:hover { background: #eef3f7; }
.modal__later { align-self: center; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; padding: 8px; }
.modal__later:hover { color: var(--navy); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; translate: 0 40px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding-block: 96px; }
.not-found__code { font-size: 96px; font-weight: 800; color: var(--teal); line-height: 1; }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .card { padding: 24px; }
  .form-card, .modal__body { padding: 24px; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .modal__aside { padding: 28px 24px; gap: 12px; }
  .modal__aside h2 { font-size: 24px; padding-right: 44px; }
  .modal__aside ul { display: none; }
}

/* ---------- Reduced motion: everything rests in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track .dup { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
