
:root {
  --bg: #f1f1ed;
  --bg-alt: #e2e2dc;
  --bg-soft: #d7d8d1;
  --surface: #ffffff;
  --line: rgba(10, 18, 32, 0.10);
  --line-strong: rgba(10, 18, 32, 0.16);
  --text: #111111;
  --text-strong: #05070a;
  --muted: #505762;
  --dark: #0b1220;
  --dark-2: #121b2d;
  --dark-3: #1a2438;
  --dark-soft: #182235;
  --white: #ffffff;
  --green: #0a7f3f;
  --green-deep: #085f30;
  --max: 1220px;
  --shadow-soft: 0 18px 46px rgba(9, 17, 28, 0.08);
  --shadow-phone: 0 32px 78px rgba(7, 10, 15, 0.20);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 10%, rgba(255,255,255,0.75), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(10,127,63,0.06), transparent 16%),
    linear-gradient(180deg, #f4f4f1 0%, #efefeb 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(244,244,241,0.9);
  border-bottom: 1px solid rgba(8, 12, 18, 0.08);
}
.topbar-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
}
.brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-copy strong {
  font-size: 1rem;
  font-weight: 700;
}
.brand-copy small {
  margin-top: 4px;
  color: #6a7078;
  font-size: .75rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #4d545d;
  font-size: .96rem;
  margin-left: auto;
}
.nav a:hover,
.contact-blocks a:hover,
.footer a:hover { color: var(--green); }
.nav-cta {
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
}

.section-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 56px;
  align-items: center;
  padding: 74px 0 88px;
}
.eyebrow {
  margin: 0 0 18px;
  color: #555d66;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
}
.hero h1,
.section h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero h1 { font-size: clamp(3.25rem, 7vw, 6rem); max-width: 9ch; color: var(--text-strong); letter-spacing: -.025em; }
.section h2,
.contact-copy h2 { font-size: clamp(2rem, 4.6vw, 3.85rem); max-width: 12ch; }
.section-dark h2,
.contact-copy h2,
.hero h1 { letter-spacing: -.015em; }
.hero-line,
.contact-line {
  width: min(220px, 52%);
  height: 2px;
  margin: 20px 0 24px;
  background: linear-gradient(90deg, var(--green), rgba(10,127,63,0.05));
}
.lead,
.section p,
.contact-copy p,
.contact-side p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}
.lead + .lead,
.text-panel p + p,
.contact-blocks div + div { margin-top: 18px; }
.hero-actions { margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--dark);
  color: #fff;
  box-shadow: 0 18px 36px rgba(7,12,18,.12);
}
.btn-secondary {
  background: var(--dark);
  color: #fff;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
}
.phone-shadow {
  position: absolute;
  width: 400px;
  height: 98px;
  bottom: 88px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,0,0,0.16), rgba(0,0,0,0));
  filter: blur(14px);
}
.phone-device {
  position: relative;
  width: 338px;
  height: 690px;
  border-radius: 42px;
  background: #121212;
  box-shadow: var(--shadow-phone);
  transform: rotate(11deg);
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 26px;
  border-radius: 999px;
  background: #050505;
  z-index: 4;
}
.phone-screen {
  position: absolute;
  inset: 10px;
  overflow: hidden;
  border-radius: 34px;
  background: #ededeb;
}
.phone-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
}
.phone-card.active { opacity: 1; }
.phone-scroll-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.phone-scroll-inner {
  width: 100%;
  will-change: transform;
}
.phone-scroll-inner img {
  width: 100%;
  height: auto;
}
.floating {
  animation: floatPhone 6.2s ease-in-out infinite;
}

.section {
  position: relative;
  z-index: 1;
  padding: 98px 0;
  border-top: 1px solid rgba(6, 10, 16, 0.04);
  border-bottom: 1px solid rgba(6, 10, 16, 0.04);
}
.section-dark {
  background: linear-gradient(180deg, #08111f 0%, #0f1a2b 100%);
  border-top-color: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.06);
}
.section-dark .eyebrow { color: rgba(255,255,255,0.64); }
.section-dark h2,
.section-dark p,
.section-dark strong { color: #fff; }
.section-dark .text-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.section-dark .text-panel p { color: rgba(255,255,255,0.78); }

.section-soft {
  background: linear-gradient(180deg, #e8e8e2 0%, #d9d9d2 100%);
}
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 64px;
  align-items: start;
}
.text-panel {
  padding: 34px 36px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow-soft);
  border-radius: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 56px;
  align-items: end;
}
.contact-copy h2,
.contact-copy strong { color: var(--text-strong); }
.contact-blocks strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}
.contact-side {
  padding: 34px 36px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-soft);
}
.contact-side .btn { margin-top: 24px; }

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #f4f4f1;
}
.footer-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer p,
.footer-links {
  margin: 0;
  color: #3f4650;
  font-size: .95rem;
}
.footer p span:first-child {
  letter-spacing: .12em;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-sep { opacity: .55; }
.footer-cd { color: var(--green); font-weight: 700; }

.legal-page {
  min-height: 100vh;
  background: var(--bg);
}
.legal-main {
  padding: 84px 0 110px;
}
.legal-box {
  max-width: 860px;
  padding: 42px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}
.legal-note { margin-top: 28px; font-size: .95rem; }
.legal-box h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.05em;
}
.legal-box h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}
.legal-box p,
.legal-box li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}
.legal-box ul { padding-left: 18px; }

@keyframes floatPhone {
  0%, 100% { transform: rotate(11deg) translateY(0); }
  50% { transform: rotate(11deg) translateY(-10px); }
}

@media (max-width: 1080px) {
  .section-hero,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero h1,
  .section h2,
  .contact-copy h2 { max-width: none; }
  .hero-visual { order: 2; }
  .phone-stage { min-height: 620px; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .site-shell { width: min(calc(100% - 32px), var(--max)); }
  .topbar-inner { min-height: 74px; }
  .section-hero { padding: 42px 0 62px; gap: 28px; }
  .section { padding: 72px 0; }
  .phone-stage { min-height: 480px; }
  .phone-device {
    width: 252px;
    height: 514px;
    transform: none;
  }
  .floating { animation: none; }
  .phone-shadow {
    width: 300px;
    bottom: 40px;
  }
  .contact-side,
  .text-panel,
  .legal-box { padding: 28px 24px; }
  .footer-inner { min-height: 74px; }
}

.footer-cd:hover { color: var(--green-deep); }
