:root {
  --navy: #1f4e79;
  --teal: #1e5060;
  --ink: #143844;
  --orange: #ff6000;
  --orange-deep: #e65500;
  --paper: #f6f8f8;
  --white: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Montserrat, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), #ffb088);
  z-index: 50;
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem max(1.2rem, 6vw);
  padding-left: max(1.2rem, calc(6vw + env(safe-area-inset-left)));
  padding-right: max(1.2rem, calc(6vw + env(safe-area-inset-right)));
  background: rgba(20, 56, 68, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav img { height: 42px; width: auto; }
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; color: #fff;
  border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.menu-btn span {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff;
}
.nav-links { display: flex; gap: 1.4rem; align-items: center; }
.nav-links a {
  color: #fff; text-decoration: none; font-size: 1rem;
  letter-spacing: 0.08em; font-weight: 600;
}
.nav-links .btn { font-size: 0.85rem; letter-spacing: 0.04em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--orange); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff !important; text-decoration: none;
  padding: 0.9rem 1.4rem; border-radius: 999px;
  font-weight: 700; letter-spacing: 0.04em; font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(255, 96, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(255, 96, 0, 0.45); }
.btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
.btn.ghost {
  background: transparent; color: #fff !important;
  border: 1px solid rgba(255,255,255,0.35); box-shadow: none;
}
.btn.light {
  background: #fff; color: var(--teal) !important; box-shadow: none;
}
.hero {
  min-height: 100vh; padding: 8rem 6vw 4rem;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3rem; align-items: center;
  background:
    radial-gradient(circle at 75% 40%, rgba(255,96,0,0.28), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(31,78,121,0.55), transparent 32%),
    linear-gradient(160deg, #102833 0%, var(--teal) 55%, #16303a 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero.start { align-items: start; min-height: 0; }
.hero.stage {
  min-height: 0;
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,96,0,0.2), transparent 28%),
    linear-gradient(165deg, #16303a 0%, #102833 58%, #1a3d4a 100%);
}
.hero.stage .hero-visual { order: -1; }
.hero.stage .hero-visual img { animation: none; border-radius: 20px 48px; }
.hero.stage h1 { font-size: clamp(2.15rem, 4vw, 3.4rem); }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -20% 40%; height: 50%;
  background: radial-gradient(circle, rgba(255,96,0,0.18), transparent 60%);
  animation: pulse 7s ease-in-out infinite;
  pointer-events: none;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.02; font-weight: 800; }
.lead { margin: 1.2rem 0 1.8rem; max-width: 38rem; color: rgba(255,255,255,0.86); font-size: 1.05rem; }
.lead a { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-visual { position: relative; z-index: 1; min-width: 0; }
.hero-visual img {
  width: 100%; height: auto; border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: float 6s ease-in-out infinite;
}
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: -2.5rem 6vw 0; position: relative; z-index: 3;
}
.stat {
  background: #fff; border-radius: 20px; padding: 1.4rem 1.2rem;
  box-shadow: 0 18px 40px rgba(20,56,68,0.12);
}
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--orange); line-height: 1.1; }
.stat span { color: var(--teal); font-weight: 600; font-size: 0.92rem; }
section { padding: 5.5rem 6vw; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; color: var(--teal); }
h2 em { font-style: normal; color: var(--orange); }
.copy { margin-top: 1rem; color: #3d5c66; font-size: 1.02rem; }
.copy a { color: var(--orange); font-weight: 700; }
.frame {
  border-radius: 28px; overflow: hidden; background: #fff;
  box-shadow: 0 20px 50px rgba(20,56,68,0.12);
}
.frame img { width: 100%; height: auto; object-fit: contain; transition: transform 0.6s ease; }
.frame:hover img { transform: scale(1.04); }
.why {
  background: linear-gradient(180deg, #12313b, var(--teal));
  color: #fff; border-radius: 32px; text-align: center;
  width: min(52rem, calc(100% - 12vw));
  margin: 0 auto; padding: 4rem 2rem;
}
.why h2, .why p { color: #fff; }
.why p { max-width: 40rem; margin-left: auto; margin-right: auto; opacity: 0.9; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: #fff; border-radius: 22px; padding: 1.4rem;
  min-height: 220px; border: 1px solid rgba(30,80,96,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(20,56,68,0.12); }
.card h3 { color: var(--orange); font-size: 1.05rem; margin-bottom: 0.6rem; }
.card p { color: #3d5c66; font-size: 0.95rem; }
.cta {
  margin: 1rem 6vw 0; border-radius: 32px; overflow: hidden;
  background: linear-gradient(120deg, var(--navy), var(--orange));
  color: #fff; text-align: center; padding: 4.5rem 1.5rem;
}
.cta h2 { color: #fff; }
.cta p { margin: 0.8rem auto 1.4rem; max-width: 36rem; }
footer { padding: 2rem 6vw 2.5rem; text-align: center; color: #6b848c; font-size: 0.85rem; }
footer img { height: 64px; margin: 0 auto 0.8rem; }
.reveal { opacity: 0; transform: translateY(24px); animation: rise 0.8s ease forwards; }
.reveal.d2 { animation-delay: 0.15s; }
.reveal.d3 { animation-delay: 0.3s; }
.video-frame {
  margin-top: 1.6rem;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 50px rgba(20,56,68,0.16);
}
.video-frame video {
  width: 100%; height: 100%; object-fit: contain; background: #000; display: block;
}
.eyebrow {
  display: inline-block; color: var(--orange); font-weight: 700;
  letter-spacing: 0.18em; font-size: 0.75rem; margin-bottom: 0.8rem;
}
.case-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem; align-items: center;
}
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.pills a {
  text-decoration: none; color: var(--teal); font-weight: 700; font-size: 0.8rem;
  border: 1px solid rgba(30,80,96,0.18); border-radius: 999px; padding: 0.45rem 0.8rem;
}
.pills a:hover { color: var(--orange); border-color: var(--orange); }
.site-card {
  display: block; text-decoration: none; color: #fff;
  background: #102833; border-radius: 28px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(20,56,68,0.16);
}
.site-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; background: #0c1e26;
  font-size: 0.78rem; color: rgba(255,255,255,0.75);
}
.site-bar span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none;
}
.site-body { padding: 1rem 1rem 1.2rem; }
.site-body img { width: 100%; border-radius: 16px; margin-bottom: 0.9rem; }
.site-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.site-facts p {
  margin: 0; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 0.75rem 0.8rem; font-size: 0.85rem;
}
.site-facts strong { display: block; color: var(--orange); font-size: 1rem; margin-bottom: 0.15rem; }
.form-card {
  background: #fff; color: var(--ink);
  border-radius: 28px; padding: 1.4rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--teal); }
.field input, .field textarea {
  width: 100%; border: 1px solid rgba(30,80,96,0.16);
  background: var(--paper); border-radius: 14px;
  padding: 0.85rem 1rem; font: inherit; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid rgba(255,96,0,0.45); border-color: transparent;
}
.form-card .btn { width: 100%; margin-top: 0.2rem; }
.form-note { display: none; margin-top: 0.9rem; padding: 0.9rem 1rem; border-radius: 14px; font-weight: 600; }
.form-note.show { display: block; }
.form-note.ok { background: #e8f6ef; color: #146c43; }
.form-note.bad { background: #fdecea; color: #9b2c2c; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 50% { transform: scale(1.08); opacity: 0.7; } }
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .nav-links { gap: 0.85rem; }
  .nav-links a { letter-spacing: 0.06em; }
  .hero { gap: 2rem; padding-top: 7rem; }
  section { padding-top: 4rem; padding-bottom: 4rem; }
  .why { padding: 2.75rem 2rem; }
  .card { min-height: 0; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    gap: 0.25rem;
    padding: 0.6rem 1.25rem 1.1rem;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
    background: #102833;
    z-index: 2;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.85rem 0.2rem;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
  .nav-links .btn { width: 100%; margin-top: 0.45rem; }
  .hero, .hero.stage, .split, .case-grid { grid-template-columns: 1fr; }
  .hero.stage .hero-visual { order: 1; }
  .hero { min-height: 0; padding: 6.4rem 1.25rem 2.6rem; }
  h1 { font-size: clamp(2.05rem, 8vw, 3.1rem); }
  .split { gap: 1.6rem; }
  .split.reverse { direction: ltr; }
  .stats { margin: -1.4rem 1.25rem 0; }
  .cta { margin-left: 1rem; margin-right: 1rem; padding: 2rem 1.25rem; }
  .why { width: min(52rem, calc(100% - 2rem)); margin-left: auto; margin-right: auto; padding: 2rem 1.25rem; }
  section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .lead { font-size: 1rem; }
}
@media (max-width: 700px) {
  .features, .stats, .fields, .site-facts { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn, .cta .btn { width: 100%; }
}
.scroll-in:not(.split):not(.stats):not(.case),
.stats.scroll-in .stat,
.split.scroll-in > *,
.case.scroll-in .case-grid > * { opacity: 0; }
.scroll-in.from-down:not(.split):not(.stats):not(.case) { animation: section-rise 0.75s ease both; }
.scroll-in.from-up:not(.split):not(.stats):not(.case) { animation: section-drop 0.75s ease both; }
.stats.scroll-in.from-down .stat { animation: section-rise 0.7s ease both; }
.stats.scroll-in.from-up .stat { animation: section-drop 0.7s ease both; }
.stats.scroll-in.from-down .stat:nth-child(2),
.stats.scroll-in.from-up .stat:nth-child(2) { animation-delay: 0.08s; }
.stats.scroll-in.from-down .stat:nth-child(3),
.stats.scroll-in.from-up .stat:nth-child(3) { animation-delay: 0.16s; }
.split.scroll-in.from-down > *,
.split.scroll-in.from-up > *,
.case.scroll-in.from-down .case-grid > *,
.case.scroll-in.from-up .case-grid > * { animation: from-side 0.75s ease both; }
.split.scroll-in > :first-child,
.case.scroll-in .case-grid > :first-child { --slide: -56px; }
.split.scroll-in > :last-child,
.case.scroll-in .case-grid > :last-child { --slide: 56px; }
.split.reverse.scroll-in > :first-child { --slide: 56px; }
.split.reverse.scroll-in > :last-child { --slide: -56px; }
@keyframes section-rise {
  from { opacity: 0; transform: translateY(52px); }
  to { opacity: 1; transform: none; }
}
@keyframes section-drop {
  from { opacity: 0; transform: translateY(-52px); }
  to { opacity: 1; transform: none; }
}
@keyframes from-side {
  from { opacity: 0; transform: translateX(var(--slide, 0)); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .scroll-in, .scroll-in .stat, .split.scroll-in > *, .case.scroll-in .case-grid > * {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
}
