:root {
  --bg: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f6;
  --muted: #a0a0ab;
  --red: #ff2d3f;
  --red-deep: #d81f2e;
  --red-glow: rgba(255, 45, 63, 0.35);
  --nav-bg: rgba(20, 20, 24, 0.75);
  --dot: rgba(255, 255, 255, 0.07);
  --blob-opacity: 0.5;
  --soft: #d6d6dc;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 64px;
}

html.light {
  --bg: #f4f4f6;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --border: rgba(15, 15, 20, 0.08);
  --border-strong: rgba(15, 15, 20, 0.18);
  --text: #17171c;
  --muted: #5b5b62;
  --red: #e02433;
  --red-deep: #bf1f2c;
  --red-glow: rgba(224, 36, 51, 0.25);
  --nav-bg: rgba(250, 250, 252, 0.82);
  --dot: rgba(20, 20, 25, 0.08);
  --blob-opacity: 0.22;
  --soft: #3f3f46;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
}
.blob-a {
  width: 620px; height: 620px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(255, 45, 63, 0.4), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-b {
  width: 520px; height: 520px;
  bottom: -200px; left: -140px;
  background: radial-gradient(circle, rgba(255, 45, 63, 0.18), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 50px, 0) scale(1.08); }
}

.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, transparent 90%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 30%, transparent 90%);
}

/* ---------- Glass ---------- */
.glass {
  background: var(--surface);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
          backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--border);
}

.glass-panel {
  position: relative;
  background: var(--surface);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
          backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(135deg, #ff4a56, var(--red-deep));
  color: #fff;
  box-shadow: 0 8px 24px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px var(--red-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg { padding: 0.95rem 1.8rem; font-size: 1rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border-radius: 999px;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
          backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff4a56, var(--red-deep));
  color: #fff;
  box-shadow: 0 4px 14px var(--red-glow);
}
.brand-icon svg { width: 17px; height: 17px; }
.accent-dot { color: var(--red); }

.nav-links {
  display: flex;
  gap: 0.4rem;
  margin: 0 auto;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-strong); }

.nav-cta { padding: 0.6rem 1.15rem; }

.theme-toggle {
  width: 38px; height: 38px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.theme-toggle:hover { background: var(--surface-strong); }
.theme-toggle:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
html:not(.js) .theme-toggle { display: none; }
html:not(.light) .icon-moon { display: none; }
html.light .icon-sun { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 7rem) 1.5rem 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.3rem;
}
h1 em { font-style: normal; background: linear-gradient(110deg, #ff6b6b, var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.fact { display: inline-flex; align-items: center; gap: 0.45rem; }
.fact svg { width: 16px; height: 16px; color: var(--red); flex: none; }
.fact a:hover { color: var(--text); }

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  max-width: 500px;
  justify-self: end;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 15%;
  background: radial-gradient(ellipse at center, rgba(255, 45, 63, 0.18), transparent 60%);
  pointer-events: none;
}
.hero-logo {
  width: 100%;
  mix-blend-mode: screen;
  position: relative;
}

html.light .hero-visual {
  background: rgba(12, 12, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}
html.light .hero-visual .panel-tag { color: #a0a0ab; }

.panel-tag {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}
.panel-tag span { color: var(--red); }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.7rem 0;
  background: rgba(255, 45, 63, 0.05);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-inner {
  display: flex;
  gap: 1.6rem;
  white-space: nowrap;
  width: max-content;
  animation: ticker 32s linear infinite;
}
.ticker-inner span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-inner i { color: var(--red); font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-block;
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services bento ---------- */
.grid-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.card {
  grid-column: span 1;
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.7rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card.card-feature { grid-column: span 2; }

.card.card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.card-wide .card-icon { margin-bottom: 0; flex: none; }
.card-wide > div { flex: 1; }
.card-wide .btn { flex: none; }
@media (max-width: 640px) {
  .card.card-wide { flex-wrap: wrap; }
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 45, 63, 0.16), rgba(255, 45, 63, 0.05));
  border: 1px solid rgba(255, 45, 63, 0.22);
  color: #ff6b6b;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-family: var(--font-head);
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Over ---------- */
.over-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.over-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
}
.over-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.over-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.over-copy .lede { margin-bottom: 1.4rem; }

.story { color: var(--muted); margin-bottom: 1rem; }

.why-quote {
  margin: 1.6rem 0 0;
  padding: 1.2rem 1.4rem;
  border-left: 3px solid var(--red);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(255, 45, 63, 0.1), transparent 70%);
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--soft);
}

.why li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  color: var(--soft);
}
.why li:last-child { border-bottom: 1px solid var(--border); }
.why svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 0.15rem; }

/* ---------- Contact CTA ---------- */
.contact-cta {
  border-radius: 28px;
  padding: clamp(2.2rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(ellipse at center, rgba(255, 45, 63, 0.16), transparent 60%);
  pointer-events: none;
}

.cta-copy { margin-bottom: 2rem; }
.cta-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cta-copy h2 em {
  font-style: normal;
  background: linear-gradient(110deg, #ff6b6b, var(--red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-copy p { color: var(--muted); max-width: 52ch; margin: 1rem auto 0; }

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.18s ease;
}
.contact-line svg { width: 16px; height: 16px; color: var(--red); }
.contact-line:hover { color: var(--text); }
.contact-line[data-note] { cursor: default; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.4rem 1.5rem calc(2.4rem + env(safe-area-inset-bottom));
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer .brand { font-size: 1rem; color: var(--text); }
.footer-inner .copy { margin-left: auto; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .ticker-inner, .badge-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 5rem); }
  .hero-visual { max-width: 420px; justify-self: center; }
  .over-grid { grid-template-columns: 1fr; }
  .over-visual { max-width: 420px; justify-self: start; }
  .grid-bento { grid-template-columns: repeat(2, 1fr); }
  .card.card-feature { grid-column: span 2; }
  .card.card-wide { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .grid-bento { grid-template-columns: 1fr; }
  .card, .card.card-feature { grid-column: span 1; }
  .card.card-wide { grid-column: 1 / -1; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-facts { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

@media (max-width: 520px) {
  .nav { padding: 0.5rem 0.5rem 0.5rem 0.9rem; }
  .brand { font-size: 0.98rem; }
  .brand-icon { width: 26px; height: 26px; }
  .theme-toggle { width: 34px; height: 34px; }
  .nav-cta { padding: 0.55rem 0.9rem; font-size: 0.8rem; }

  .hero { padding: calc(var(--nav-h) + 2.5rem) 1.1rem 2.5rem; }
  h1 { font-size: clamp(2.1rem, 8.5vw, 2.6rem); }
  .lede { font-size: 1.02rem; }
  .hero-visual { padding: 1.2rem; max-width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .ticker-inner span { font-size: 0.78rem; }

  .section { padding: 4rem 1.1rem; }
  .section-head p { font-size: 1rem; }
  .grid-bento { gap: 0.85rem; }
  .card { padding: 1.35rem 1.15rem 1.45rem; }
  .card-wide { flex-wrap: wrap; }
  .card-wide .card-icon { margin-bottom: 0; }

  .over-visual { max-width: 100%; padding: 1rem; }
  .why-quote { font-size: 1rem; }

  .contact-cta { padding: 2rem 1.15rem; }
  .cta-actions { width: 100%; }
  .cta-actions .btn-lg { width: 100%; }
  .contact-line { flex-wrap: wrap; justify-content: center; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .footer-inner .copy { margin-left: 0; }
}