/* Ouria Technologies — shared styles */

:root {
  --bg: #f7f8fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --ink: #0f1530;
  --muted: #566079;
  --line: #e3e6f0;
  --accent: #1f5eff;
  --accent-soft: #eaf1ff;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --blue: #1f6bff;
  --violet: #7c3aed;
  --aurora: linear-gradient(110deg, #22d3ee 0%, #1f6bff 45%, #7c3aed 100%);
  --navy: #050b1f;
  --navy-2: #0b1633;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(15, 21, 48, .04), 0 8px 24px rgba(15, 21, 48, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1f;
    --bg-alt: #0e1427;
    --surface: #121a2e;
    --ink: #eef1fa;
    --muted: #a3acc4;
    --line: #232c45;
    --accent: #6ea8ff;
    --accent-soft: #10203f;
    --shadow: none;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
p { text-wrap: pretty; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 11, 31, .94);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav ul { display: flex; gap: 26px; list-style: none; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(226, 234, 255, .72); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"] { position: relative; }
.nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--aurora);
}
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; background: var(--blue); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(31,107,255,.45); }
.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  width: 42px; height: 42px; color: #fff; cursor: pointer; place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(15, 21, 48, .18); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.link-arrow { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 700px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }
.gradient-text { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- Hero ---------- */
/* Dark, animated heroes (home + inner pages) */
.hero, .page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, #10307a 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #2a1466 0%, transparent 60%),
              var(--navy);
}
.hero { padding: 104px 0 96px; }
.page-hero { padding: 104px 0 88px; margin-bottom: 72px; }
.hero::before, .page-hero::before {
  /* faint grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  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: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none; opacity: .55; }
.orb-1 { width: 460px; height: 460px; background: #1f6bff; top: -140px; right: 8%; animation: drift1 18s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; background: #22d3ee; top: 40%; right: -120px; opacity: .35; animation: drift2 22s ease-in-out infinite; }
.orb-3 { width: 420px; height: 420px; background: #7c3aed; bottom: -220px; left: -120px; opacity: .4; animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,40px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-80px,-50px); } }
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.hero .eyebrow, .page-hero .eyebrow { color: #7fd8ff; }
.page-hero .eyebrow a { color: inherit; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); max-width: 720px; margin-bottom: 22px; letter-spacing: -0.035em; }
.hero .lead, .page-hero .lead { color: rgba(226, 234, 255, .78); }
.hero .lead { font-size: clamp(18px, 2vw, 20px); max-width: 600px; margin-bottom: 34px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); max-width: 820px; margin-bottom: 20px; letter-spacing: -0.03em; }
.page-hero .lead { font-size: clamp(18px, 2vw, 20px); max-width: 660px; }
.hero .btn-primary, .page-hero .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(31,107,255,.45); }
.hero .btn-ghost, .page-hero .btn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .gradient-text, .page-hero .gradient-text {
  background: linear-gradient(110deg, #22d3ee, #6ea8ff 35%, #a78bfa 65%, #22d3ee);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.trust-row span {
  font-size: 13.5px; color: rgba(226,234,255,.82); padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); display: inline-flex; gap: 8px; align-items: center;
}
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
.page-hero .logo-chip { background: #fff; border-color: transparent; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .link-arrow { display: inline-block; margin-top: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }

/* Two pillars on home */
.pillar { padding: 40px; display: flex; flex-direction: column; }
.pillar h3 { font-size: 26px; margin-bottom: 12px; }
.pillar p { font-size: 16.5px; margin-bottom: 20px; }
.pillar ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.pillar .btn { margin-top: auto; align-self: flex-start; }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); font-size: 15.5px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5eff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Product feature (dark card) ---------- */
.feature-dark {
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(34,211,238,.35), transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(124,58,237,.5), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(31,107,255,.25), transparent 60%),
    var(--navy);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
}
.feature-dark .tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); margin-bottom: 18px;
}
.feature-dark h2, .feature-dark h3 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.feature-dark p { color: rgba(255,255,255,.8); margin-bottom: 28px; }
.facets { display: grid; gap: 14px; }
.facet { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 20px 22px; }
.facet h4 { font-size: 16px; margin-bottom: 4px; letter-spacing: -0.01em; }
.facet p { font-size: 15px; margin: 0; color: rgba(255,255,255,.74); }

.coming {
  margin-top: 20px; border: 1.5px dashed var(--line); border-radius: 28px; padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.coming h3 { font-size: 22px; margin-bottom: 4px; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats div { background: var(--surface); padding: 28px; }
.stats strong { display: block; font-size: 30px; letter-spacing: -0.03em; margin-bottom: 2px; }
.stats span { color: var(--muted); font-size: 15px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process > div { border-top: 2px solid var(--line); padding-top: 18px; position: relative; }
.process > div::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--aurora);
}
.process .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.process h3 { font-size: 19px; margin: 6px 0; letter-spacing: -0.015em; }
.process p { color: var(--muted); font-size: 15.5px; }

/* ---------- Split / prose ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 20px; }

/* ---------- Engagement / pricing-style cards ---------- */
.engage .card { display: flex; flex-direction: column; }
.engage .card.highlight { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--aurora) border-box; border: 1.5px solid transparent; }
.engage .meta { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.engage .checks { margin: 18px 0 24px; }
.engage .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Tags (tech stack / industries) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span {
  padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* ---------- Timeline (about) ---------- */
.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 28px; display: grid; gap: 26px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--blue);
}
.timeline strong { display: block; font-size: 17px; }
.timeline span { color: var(--muted); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 28px; padding: 72px 56px; text-align: center; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #0b1633, #1f4fd8, #5b2bd6, #0e7490, #0b1633);
  background-size: 300% 300%; animation: flowbg 14s ease infinite;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
@keyframes flowbg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 30px; font-size: 18px; }
.cta-band .actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex-shrink: 0; }
.contact-list strong { display: block; }
.contact-list a, .contact-list span { color: var(--muted); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; display: grid; gap: 6px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-grid p { color: var(--muted); font-size: 15px; max-width: 320px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { text-decoration: none; font-size: 15px; }
.footer-grid ul a:hover { color: var(--accent); }
.footer-legal { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 76px 0; }
  .grid-4, .stats, .process { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .feature-dark, .contact-grid, .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .feature-dark { padding: 36px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .nav-toggle { display: grid; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 24px 24px;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav ul a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 18px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid-3, .grid-4, .process, form .row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0 72px; }
  .page-hero { padding: 72px 0 52px; }
  .pillar { padding: 28px 22px; }
  .cta-band { padding: 44px 22px; }
  .coming { padding: 26px 22px; }
  .nav { padding: 8px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Products ---------- */
.product-logo { height: 64px; width: auto; }
.feature-dark h3 .product-logo { margin-bottom: 4px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; background: #e7f8f1; color: #0f7a55;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (prefers-color-scheme: dark) { .status { background: #0f2e25; color: #5fe0b0; } }
.product-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; overflow: hidden; padding: 0;
}
.product-card .body { padding: 44px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.product-card .body p { font-size: 16.5px; }
.product-card .body .product-logo { height: 72px; }
.product-card .meta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.product-card .shot { background: var(--accent-soft); padding: 40px 0 0 40px; display: flex; align-items: flex-end; overflow: hidden; }
.product-card .shot img { border-radius: 12px 0 0 0; box-shadow: var(--shadow); width: 100%; max-height: 380px; object-fit: cover; object-position: top left; }
.logo-chip {
  display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 12px 18px;
  border: 1px solid var(--line);
}
.logo-chip img { height: 56px; width: auto; }
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.screen figure { margin: 0; }
.frame {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.frame .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.frame .bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.frame img { width: 100%; height: 460px; object-fit: cover; object-position: top; }
.screen figcaption { margin-top: 14px; }
.screen figcaption strong { display: block; font-size: 17px; }
.screen figcaption span { color: var(--muted); font-size: 15px; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.parent-note {
  display: flex; gap: 16px; align-items: center; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); flex-wrap: wrap;
}
.parent-note img { height: 30px; width: auto; }
.parent-note p { color: var(--muted); font-size: 15px; flex: 1; min-width: 240px; }
@media (max-width: 980px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card .body { padding: 30px 24px; }
  .product-card .shot { padding: 24px 0 0 24px; }
  .screens { grid-template-columns: 1fr; }
  .frame img { height: 380px; }
}


/* =========================================================
   Motion & workflow components
   ========================================================= */

/* Scroll reveal (JS adds .reveal, then .in when visible) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Card spotlight + lift */
.card { position: relative; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(31,107,255,.10), transparent 45%);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,21,48,.10); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card:hover::after { opacity: 1; }
.card .icon { transition: transform .3s ease, background .3s ease, color .3s ease; }
.card:hover .icon { transform: scale(1.08) rotate(-4deg); background: var(--aurora); color: #fff; }
.product-card:hover, .engage .card:hover { transform: translateY(-3px); }

/* Capability marquee */
.marquee { background: var(--navy); color: rgba(226,234,255,.75); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; font-weight: 500; white-space: nowrap; font-size: 15px; }
.marquee span::after { content: "✦"; color: #22d3ee; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Animated workflow ---------- */
.flow-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px;
  backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08); color: #fff;
}
.flow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.flow-head strong { font-size: 14px; letter-spacing: .02em; }
.flow-head .live { font-size: 12px; color: #7fd8ff; display: inline-flex; gap: 6px; align-items: center; }
.flow-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,238,.7); } 100% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } }
.flow { list-style: none; display: grid; gap: 0; position: relative; }
.flow-step { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; position: relative; transition: background .4s; }
.flow-step + .flow-step { margin-top: 18px; }
.flow-step + .flow-step::before {
  /* connector */
  content: ""; position: absolute; left: 31px; top: -18px; width: 2px; height: 18px;
  background: linear-gradient(rgba(255,255,255,.15), rgba(255,255,255,.15));
}
.flow-step.done + .flow-step::before, .flow-step.active::before { background: linear-gradient(#22d3ee, #1f6bff); }
.flow-step .node {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.7); transition: all .4s;
}
.flow-step .node svg { width: 20px; height: 20px; }
.flow-step .txt strong { display: block; font-size: 14.5px; font-weight: 600; }
.flow-step .txt span { font-size: 12.5px; color: rgba(226,234,255,.6); }
.flow-step .state { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: rgba(226,234,255,.4); text-transform: uppercase; }
.flow-step.active { background: rgba(31,107,255,.16); }
.flow-step.active .node { background: var(--aurora); color: #fff; border-color: transparent; box-shadow: 0 0 24px rgba(34,211,238,.55); transform: scale(1.06); }
.flow-step.active .state { color: #7fd8ff; }
.flow-step.done .node { background: rgba(34,211,238,.14); color: #7fd8ff; border-color: rgba(34,211,238,.35); }
.flow-step.done .state { color: #5fe0b0; }
.flow-out {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(5,11,31,.6); border: 1px solid rgba(255,255,255,.1);
  font-size: 14px; color: rgba(226,234,255,.9); min-height: 72px;
}
.flow-out small { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #7fd8ff; margin-bottom: 6px; }
.flow-out .caret { display: inline-block; width: 7px; height: 15px; background: #22d3ee; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.flow-note { font-size: 12px; color: rgba(226,234,255,.5); margin-top: 12px; }

/* Horizontal workflow (services demo) */
.demo { background: var(--navy); border-radius: 28px; padding: 36px; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.demo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 90% 0%, rgba(31,107,255,.35), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(124,58,237,.35), transparent 60%);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs button {
  font: inherit; font-size: 14.5px; font-weight: 600; color: rgba(226,234,255,.75); cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 10px 16px; transition: all .2s;
}
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.hflow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.hflow .flow-step { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 18px 10px; margin: 0; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.hflow .flow-step + .flow-step { margin-top: 0; }
.hflow .flow-step + .flow-step::before { left: -15px; top: 38px; width: 16px; height: 2px; }
.hflow .flow-step .txt span { display: block; margin-top: 2px; }
.hflow .flow-step .state { margin-top: 2px; }
.demo-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: rgba(226,234,255,.65); }
.demo-foot strong { color: #fff; }
.travel { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 14px #22d3ee; pointer-events: none; opacity: 0; }

/* Process timeline that fills on reveal */
.process { position: relative; }
.process > div { border-top-color: var(--line); }
.process > div::before { width: 0; transition: width 1s ease; transition-delay: calc(var(--i, 0) * .35s); }
.process.in > div::before { width: 100%; }
.process .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; margin-bottom: 4px;
  transition: background .4s, color .4s; transition-delay: calc(var(--i, 0) * .35s + .4s);
}
.process.in .num { background: var(--aurora); color: #fff; }

/* Product screenshot float */
.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.feature-dark { box-shadow: 0 30px 80px rgba(5,11,31,.35); }

/* Gradient section divider glow */
.glow-line { height: 1px; background: linear-gradient(90deg, transparent, #1f6bff, #22d3ee, transparent); opacity: .5; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hflow { grid-template-columns: 1fr; }
  .hflow .flow-step { grid-template-columns: 40px 1fr auto; text-align: left; justify-items: start; }
  .hflow .flow-step + .flow-step { margin-top: 14px; }
  .hflow .flow-step + .flow-step::before { left: 31px; top: -15px; width: 2px; height: 14px; }
  .demo { padding: 24px 18px; }
  .page-hero { margin-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .marquee-track, .cta-band, .float, .gradient-text, .flow-head .live::before, .flow-out .caret { animation: none !important; }
  .card, .card .icon { transition: none; }
}

/* Home product portfolio */
.port-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-decoration: none; color: inherit; }
.port-card p { flex: 1; }
.port-logo { height: 50px; width: auto; margin: 4px 0; }
.port-card .link-arrow { margin-top: 4px; }
.port-soon { background: transparent; border-style: dashed; box-shadow: none; }
.port-soon h3 { font-size: 22px; }
