:root {
  --bg: #f4f2fa;
  --bg-2: #eef8f5;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: #ffffff;
  --text: #1d2740;
  --muted: #64718a;
  --line: rgba(35, 47, 73, 0.1);
  --violet: #6857eb;
  --violet-dark: #4e3bc4;
  --teal: #16c4b1;
  --mint: #d8f5ee;
  --gold: #f0aa1e;
  --shadow: 0 24px 60px rgba(58, 69, 120, 0.12);
  --radius: 30px;
  --radius-lg: 42px;
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 10%, rgba(104, 87, 235, 0.11), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(22, 196, 177, 0.14), transparent 24%),
    linear-gradient(135deg, var(--bg) 0%, #f7f4fb 48%, var(--bg-2) 100%);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: 96px 0; position: relative; }

.ambient,
.grid-glow {
  pointer-events: none;
  position: fixed;
  inset: auto;
  z-index: -1;
}
.ambient {
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.45;
}
.ambient-a {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(22,196,177,0.38), rgba(22,196,177,0) 70%);
  animation: driftA 18s ease-in-out infinite;
}
.ambient-b {
  left: -180px;
  bottom: 0;
  background: radial-gradient(circle, rgba(104,87,235,0.26), rgba(104,87,235,0) 70%);
  animation: driftB 16s ease-in-out infinite;
}
.grid-glow {
  inset: 0;
  background-image:
    linear-gradient(rgba(104,87,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,87,235,0.06) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 80%);
  opacity: 0.3;
}
@keyframes driftA { 0%,100% { transform: translateY(0) translateX(0);} 50% { transform: translateY(24px) translateX(-18px);} }
@keyframes driftB { 0%,100% { transform: translateY(0) translateX(0);} 50% { transform: translateY(-24px) translateX(22px);} }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(247, 244, 251, 0.74);
  border-bottom: 1px solid rgba(29, 39, 64, 0.07);
}
.nav-shell {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  position: relative;
  border-radius: 18px;
  background: linear-gradient(145deg, #241f59, #5d49de);
  box-shadow: 0 18px 32px rgba(68, 58, 151, 0.25);
}
.brand-page {
  position: absolute;
  width: 26px;
  height: 30px;
  left: 14px;
  top: 11px;
  background: #ffffff;
  border-radius: 8px 8px 10px 10px;
}
.brand-page::before,
.brand-page::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: rgba(104, 87, 235, 0.45);
  border-radius: 999px;
}
.brand-page::before { top: 9px; }
.brand-page::after { top: 16px; }
.brand-clip {
  position: absolute;
  width: 16px;
  height: 24px;
  right: 9px;
  top: 14px;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, var(--teal), #8ff1e4);
}
.brand-text strong { display: block; font-size: 1rem; letter-spacing: 0.01em; }
.brand-text small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 700;
  color: #34405a;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--teal));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 999px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), #7b68ef);
  box-shadow: 0 18px 34px rgba(104, 87, 235, 0.26);
}
.button-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.68);
  border-color: rgba(29, 39, 64, 0.1);
}

.hero { padding-top: 68px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.kicker,
.section-tag,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--violet-dark);
}
.kicker::before,
.section-tag::before,
.mini-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--teal);
  border-radius: 999px;
}
.hero-copy h1,
.story-copy h2,
.product-copy h2,
.section-head h2,
.roadmap-copy h2,
.focus-banner h2,
.contact-copy h2,
.policy-wrap h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 18px 0;
}
.hero-copy h1 { font-size: clamp(3rem, 4.9vw, 5.6rem); max-width: 11ch; }
.lead,
.story-copy p,
.product-copy p,
.section-head p,
.roadmap-copy p,
.focus-banner p,
.contact-copy p,
.policy-card p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.82;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.hero-stats article {
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-stats strong {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(104, 87, 235, 0.12);
  color: var(--violet);
  margin-bottom: 12px;
}
.hero-stats span { display: block; color: #45516b; line-height: 1.6; }

.hero-visual { position: relative; min-height: 720px; }
.showcase-frame {
  position: relative;
  min-height: 720px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.74), rgba(255,255,255,0.28));
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.showcase-card {
  position: absolute;
  border-radius: 32px;
  background: linear-gradient(180deg, #eef0f9, #ffffff);
  padding: 10px;
  box-shadow: 0 28px 60px rgba(72, 82, 126, 0.18);
}
.showcase-card img { border-radius: 24px; }
.showcase-main {
  width: min(70%, 360px);
  left: 26px;
  bottom: 26px;
  transform: rotate(-2.5deg);
}
.showcase-side {
  width: min(53%, 280px);
  right: 30px;
  top: 70px;
  transform: rotate(3deg);
}
.floating-product {
  position: absolute;
  right: 24px;
  bottom: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 20px 40px rgba(76, 83, 126, 0.15);
  max-width: 290px;
}
.floating-product img { width: 54px; height: 54px; border-radius: 16px; }
.floating-product strong { display: block; margin-bottom: 5px; }
.floating-product span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.note-panel {
  position: absolute;
  z-index: 2;
  width: 210px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(29,39,64,0.08);
  box-shadow: 0 20px 40px rgba(67, 77, 113, 0.12);
}
.note-panel strong { display: block; margin: 8px 0 6px; font-size: 1.02rem; }
.note-panel p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
.note-panel-a { left: -20px; top: 20px; }
.note-panel-b { right: -8px; top: 320px; }
.float-1 { animation: bob1 9s ease-in-out infinite; }
.float-2 { animation: bob2 11s ease-in-out infinite; }
@keyframes bob1 { 0%,100% { transform: translateY(0) rotate(-4deg);} 50% { transform: translateY(-10px) rotate(-1deg);} }
@keyframes bob2 { 0%,100% { transform: translateY(0) rotate(3deg);} 50% { transform: translateY(12px) rotate(0deg);} }

.marquee-band {
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(29,39,64,0.08);
  border-bottom: 1px solid rgba(29,39,64,0.08);
  background: rgba(255,255,255,0.45);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 800;
  color: #4a5671;
  animation: marquee 30s linear infinite;
}
.marquee-track span::after {
  content: '•';
  color: var(--teal);
  margin-left: 48px;
}
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

.story-grid,
.product-grid,
.roadmap-grid,
.focus-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}
.story-copy h2,
.product-copy h2,
.section-head h2,
.roadmap-copy h2,
.focus-banner h2,
.contact-copy h2,
.policy-wrap h1 { font-size: clamp(2.3rem, 3.3vw, 4rem); }
.story-cards {
  display: grid;
  gap: 18px;
}
.story-cards article,
.service-card,
.step-card,
.focus-banner,
.insight-list article,
.contact-card,
.policy-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.story-cards article {
  padding: 24px;
  border-radius: 28px;
}
.story-cards small,
.insight-list small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--violet-dark);
}
.story-cards strong,
.insight-list strong { display: block; margin: 10px 0 8px; font-size: 1.12rem; }
.story-cards p { margin: 0; color: var(--muted); line-height: 1.7; }

.product-section {
  background: linear-gradient(180deg, rgba(104,87,235,0.045), rgba(22,196,177,0.03));
}
.product-mosaic {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: minmax(240px, auto) minmax(240px, auto);
  gap: 18px;
}
.mosaic-card {
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(180deg, #fbfbff, #f0f4fb);
  box-shadow: 0 24px 50px rgba(74, 82, 124, 0.15);
}
.mosaic-card img { border-radius: 22px; width: 100%; height: 100%; object-fit: cover; }
.large-card { grid-row: 1 / span 2; }
.top-card { transform: rotate(2deg); }
.bottom-card { transform: rotate(-1.6deg); }
.feature-stack { display: grid; gap: 12px; margin: 26px 0 24px; }
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  color: #394560;
  line-height: 1.6;
}
.feature-row span {
  width: 11px;
  height: 11px;
  margin-top: 7px;
  border-radius: 50%;
  flex: 0 0 11px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
}
.product-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.app-note { color: var(--muted); max-width: 26ch; line-height: 1.6; }

.section-head { max-width: 760px; margin-bottom: 28px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-card {
  padding: 24px;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.service-card::before {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(22, 196, 177, 0.11);
}
.service-card b {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(104,87,235,0.12);
  color: var(--violet);
  margin-bottom: 18px;
}
.service-card h3 { margin: 0 0 10px; font-size: 1.16rem; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.roadmap-line {
  display: grid;
  gap: 16px;
}
.step-card {
  padding: 22px 24px;
  border-radius: 26px;
  position: relative;
}
.step-card span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22,196,177,0.12);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-card strong { display: block; font-size: 1.1rem; margin: 12px 0 8px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.focus-banner,
.contact-card,
.policy-card {
  padding: 32px;
  border-radius: 30px;
}
.insight-list {
  display: grid;
  gap: 16px;
}
.insight-list article {
  padding: 24px;
  border-radius: 26px;
}
.contact-card { display: grid; gap: 18px; }
.contact-item { display: grid; gap: 8px; }
.contact-item span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
}
.contact-item strong,
.contact-item a { font-size: 1.04rem; line-height: 1.6; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid rgba(29,39,64,0.08);
}
.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
}
.footer-shell p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; max-width: 42ch; }
.footer-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
}
.footer-meta a { font-weight: 800; color: var(--violet-dark); }

.privacy-body .section { padding-top: 72px; padding-bottom: 72px; }
.policy-wrap { max-width: 920px; }
.policy-date { margin-top: -4px; margin-bottom: 24px; color: var(--muted); font-size: 1.02rem; }
.policy-card { margin-bottom: 18px; }
.policy-card h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  margin: 0 0 10px;
  font-weight: 400;
}
.policy-card a { color: var(--violet-dark); font-weight: 800; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-layout,
  .story-grid,
  .product-grid,
  .roadmap-grid,
  .focus-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: auto; }
  .showcase-frame { min-height: 760px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-shell { grid-template-columns: auto auto auto; gap: 12px; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .desktop-cta { display: none; }
  .main-nav {
    display: none;
    position: fixed;
    top: 88px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(70, 78, 118, 0.16);
    padding: 16px 20px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .hero-stats,
  .services-grid { grid-template-columns: 1fr; }
  .product-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .large-card { grid-row: auto; }
  .showcase-frame { min-height: 860px; }
  .showcase-main {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 360px);
    margin: 180px auto 0;
  }
  .showcase-side {
    width: min(70%, 270px);
    top: 72px;
    right: 24px;
  }
  .note-panel-a { left: 12px; top: 24px; }
  .note-panel-b { right: 8px; top: 300px; }
  .floating-product {
    right: 20px;
    left: 20px;
    bottom: 24px;
    max-width: none;
  }
  .footer-shell { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(100vw - 28px, 100%); }
  .section { padding: 74px 0; }
  .hero-copy h1 { font-size: 2.72rem; }
  .story-copy h2,
  .product-copy h2,
  .section-head h2,
  .roadmap-copy h2,
  .focus-banner h2,
  .contact-copy h2,
  .policy-wrap h1 { font-size: 2.1rem; }
  .button { width: 100%; }
  .contact-actions .button { width: auto; }
  .showcase-frame { min-height: 780px; }
  .note-panel { width: 168px; padding: 14px; }
}
