:root {
  --bg: #eef4ff;
  --bg-2: #f7faff;
  --surface: rgba(255,255,255,.72);
  --surface-strong: rgba(255,255,255,.92);
  --card-border: rgba(83, 107, 216, .14);
  --text: #172144;
  --muted: #62709a;
  --primary: #5f5df4;
  --secondary: #31c9be;
  --accent: #8da4ff;
  --shadow: 0 24px 80px rgba(38, 57, 127, .12);
  --shadow-soft: 0 12px 36px rgba(32, 49, 116, .08);
  --radius: 28px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(121,140,255,.34), transparent 24%),
    radial-gradient(circle at right 20%, rgba(49,201,190,.18), transparent 20%),
    linear-gradient(180deg, #f4f7ff 0%, #eef4ff 35%, #f9fbff 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.7; }

.page-orb {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .22;
  pointer-events: none;
  z-index: 0;
  animation: floaty 14s ease-in-out infinite;
}
.orb-one { top: -120px; right: -100px; background: linear-gradient(180deg, #6f76ff, #44dbc0); }
.orb-two { left: -180px; bottom: 10%; background: linear-gradient(180deg, #8e9bff, #cdd7ff); animation-delay: -7s; }

.container { width: var(--container); margin: 0 auto; position: relative; z-index: 1; }
.section { padding: 110px 0; }
.section-xl { padding: 140px 0 110px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #5a6cc8;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}
h1, h2, h3 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  letter-spacing: -.04em;
}
h1 { font-size: clamp(2.85rem, 6vw, 5rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; }
h3 { font-size: 1.35rem; line-height: 1.2; }
.lead { font-size: 1.1rem; max-width: 620px; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 255, .72);
  border-bottom: 1px solid rgba(95, 93, 244, .08);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-pill {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: Sora, sans-serif;
  font-weight: 800;
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-soft);
}
.brand-text strong {
  display: block;
  font-size: .95rem;
  letter-spacing: -.02em;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 4px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
}
.site-nav a:not(.button) { color: #33406d; }
.site-nav a:not(.button):hover { color: var(--primary); }
.nav-toggle {
  display: none;
  border: 0;
  background: white;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  box-shadow: var(--shadow-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-solid {
  color: white;
  background: linear-gradient(135deg, var(--primary), #7290ff 58%, var(--secondary));
  box-shadow: 0 14px 30px rgba(95, 93, 244, .25);
}
.button-ghost {
  background: rgba(255,255,255,.66);
  color: var(--text);
  border: 1px solid rgba(96,114,217,.16);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { display: grid; gap: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.hero-metrics article {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.hero-metrics span {
  display: block;
  font-family: Sora, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.hero-metrics p { margin: 0; color: var(--muted); font-size: .98rem; }
.hero-visual {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
}
.device-stack {
  position: relative;
  height: 720px;
}
.device-stack img {
  position: absolute;
  width: 56%;
  max-width: 320px;
  border-radius: 36px;
  box-shadow: var(--shadow);
  border: 10px solid rgba(255,255,255,.6);
}
.screen-back {
  left: 4%;
  top: 10%;
  transform: rotate(-9deg);
}
.screen-front {
  right: 4%;
  top: 0;
  transform: rotate(7deg);
}
.floating-card {
  position: absolute;
  right: -10px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.85);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  max-width: 280px;
  z-index: 2;
}
.floating-card img {
  width: 68px;
  height: 68px;
  border-radius: 20px;
}
.floating-card strong { display: block; margin-bottom: 6px; font-family: Sora, sans-serif; }
.floating-card p { margin: 0; color: var(--muted); font-size: .95rem; }

.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid rgba(92, 107, 216, .12);
  border-bottom: 1px solid rgba(92, 107, 216, .12);
  background: rgba(255,255,255,.35);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  min-width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  padding: 14px 0;
  font-size: .92rem;
  letter-spacing: .24em;
  color: #5061be;
  font-weight: 700;
}

.section-heading { display: grid; gap: 16px; max-width: 760px; }
.section-heading p, .product-copy p { color: var(--muted); margin: 0; }
.section-heading.compact { margin-bottom: 38px; }

.studio-grid,
.product-grid,
.workflow-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.studio-panels { display: grid; gap: 20px; }
.panel {
  border-radius: 30px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
}
.soft-blue { background: linear-gradient(160deg, rgba(102,119,255,.16), rgba(255,255,255,.9)); }
.soft-mint { background: linear-gradient(160deg, rgba(49,201,190,.16), rgba(255,255,255,.9)); }
.panel-label { display: inline-block; font-size: .82rem; font-weight: 700; color: #5a6cc8; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.panel p, .service-card p, .timeline p, .contact-copy p, .contact-item p, .footer-meta p { margin: 0; color: var(--muted); }

.product-band { background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.06)); }
.product-copy { display: grid; gap: 20px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.feature-list li {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.74);
  border: 1px solid var(--card-border);
  display: grid;
  gap: 6px;
}
.feature-list strong { font-size: 1rem; }
.feature-list span { color: var(--muted); }
.product-art { position: relative; }
.banner-image {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(96,114,217,.14);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface-strong);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  min-height: 240px;
  display: grid;
  gap: 14px;
}
.service-no {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: Sora, sans-serif;
  font-weight: 800;
  color: #4050b5;
  background: linear-gradient(145deg, rgba(109,131,255,.12), rgba(49,201,190,.14));
}

.showcase { padding-top: 80px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.gallery-card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border-radius: 24px;
}
.gallery-card figcaption {
  padding: 16px 8px 8px;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 18px;
}
.timeline article {
  position: relative;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px 24px 24px 28px;
  box-shadow: var(--shadow-soft);
}
.timeline article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.timeline span {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6072d9;
  margin-bottom: 10px;
}

.contact-section { padding-top: 90px; }
.contact-card {
  display: grid;
  gap: 0;
  background: rgba(255,255,255,.84);
  border: 1px solid var(--card-border);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-item {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(86,102,194,.12);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item span {
  display: block;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #5c70cd;
  margin-bottom: 12px;
  font-weight: 700;
}
.contact-item a { color: var(--text); font-weight: 600; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid rgba(90, 111, 215, .14);
  background: rgba(255,255,255,.44);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: end;
}
.footer-grid h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.footer-meta { justify-self: end; text-align: right; }
.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.footer-links a { font-weight: 700; color: #4050b5; }
.footer-meta small { color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.legal-page { min-height: 100vh; }
.legal-shell {
  width: min(980px, calc(100% - 32px));
  margin: 40px auto 80px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.legal-tag {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(95, 93, 244, .08);
  color: #4f61c7;
  font-size: .85rem;
  font-weight: 700;
}
.legal-page h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 16px; }
.legal-page .intro { color: var(--muted); max-width: 760px; margin-bottom: 24px; }
.legal-sections { display: grid; gap: 18px; }
.legal-card {
  border-radius: 24px;
  border: 1px solid rgba(96,114,217,.12);
  background: linear-gradient(180deg, rgba(111,118,255,.06), rgba(255,255,255,.92));
  padding: 24px;
}
.legal-card h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-card p { margin: 0; color: var(--muted); }
.legal-card + .legal-card { margin-top: 0; }
.legal-footer { margin-top: 28px; color: var(--muted); font-size: .95rem; }

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.not-found-card {
  width: min(720px, 100%);
  background: rgba(255,255,255,.82);
  border: 1px solid var(--card-border);
  border-radius: 34px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.not-found-card p { color: var(--muted); margin: 18px auto 30px; max-width: 480px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes floaty {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0, 18px, 0); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .studio-grid,
  .product-grid,
  .workflow-grid,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-grid,
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: 650px; }
  .footer-meta { justify-self: start; text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .nav-cta { width: 100%; }
  .hero-metrics { grid-template-columns: 1fr; }
  .device-stack { height: 540px; }
  .device-stack img { width: 48%; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 24px, 1180px); }
  .section, .section-xl { padding: 78px 0; }
  .hero-grid { gap: 36px; }
  .hero-visual { min-height: 500px; }
  .device-stack { height: 500px; }
  .device-stack img { width: 58%; border-width: 8px; }
  .screen-back { left: 0; top: 12%; }
  .screen-front { right: 0; top: 0; }
  .floating-card {
    position: static;
    margin-top: 16px;
    max-width: none;
  }
  .service-grid,
  .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .button { width: 100%; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .legal-shell { padding: 22px; margin-top: 20px; }
  .legal-top { flex-direction: column; align-items: flex-start; }
}
