:root {
  color-scheme: light;
  --bg: #F8FBFF;
  --bg-tint: linear-gradient(180deg, #EDF4FF, #F4F9FF);
  --surface: #FFFFFF;
  --field: #F8FBFF;
  --heading: #152038;
  --text: #1A2B4A;
  --muted: #4A5D7E;
  --rule: #DCE7F4;
  --accent: #3D7EF5;
  --accent-strong: #1A3DBF;
  --eyebrow: #127F78;
  --teal: #4ECDC4;
  --btn-bg: #152038;
  --btn-bg-hover: #253555;
  --btn-text: #FFFFFF;
  --nav-bg: rgba(248, 251, 255, .82);
  --chip-bg: rgba(255, 255, 255, .75);
  --hero-bg:
    radial-gradient(900px 500px at 85% 10%, rgba(105, 179, 255, .35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(78, 205, 196, .22), transparent 60%),
    linear-gradient(180deg, #E3F0FF 0%, #F8FBFF 100%);
  --pro-bg: #152038;
  --pro-text: #C9D6EC;
  --foot-bg: #152038;
  --foot-text: #C9D6EC;
  --foot-muted: #9FB0CC;
  --ico-a: #FFE8D6; --ico-a-fg: #CC5500;
  --ico-b: #EAE0FF; --ico-b-fg: #5535BB;
  --ico-c: #D4F5E9; --ico-c-fg: #1A8C5A;
  --ico-d: #FFE0ED; --ico-d-fg: #CC1155;
  --ok: #1A8C5A;
  --err: #C0392B;
  --shadow: 0 18px 50px -20px rgba(21, 32, 56, .35);
  --radius: 22px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1322;
  --bg-tint: linear-gradient(180deg, #0F1A2E, #0B1322);
  --surface: #141F35;
  --field: #0F1A2E;
  --heading: #EEF3FB;
  --text: #D6E1F2;
  --muted: #9DB0CC;
  --rule: #24365A;
  --accent: #7FB6FF;
  --accent-strong: #8EC1FF;
  --eyebrow: #5FD8CF;
  --btn-bg: #EEF3FB;
  --btn-bg-hover: #C9D6EC;
  --btn-text: #0B1322;
  --nav-bg: rgba(11, 19, 34, .82);
  --chip-bg: rgba(20, 31, 53, .8);
  --hero-bg:
    radial-gradient(900px 500px at 85% 10%, rgba(61, 126, 245, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(78, 205, 196, .14), transparent 60%),
    linear-gradient(180deg, #0F1D38 0%, #0B1322 100%);
  --pro-bg: #1D2D4D;
  --pro-text: #C9D6EC;
  --foot-bg: #070D18;
  --foot-text: #C9D6EC;
  --foot-muted: #8296B5;
  --ico-a: #3A2414; --ico-a-fg: #FFB27A;
  --ico-b: #2A2150; --ico-b-fg: #BBA8FF;
  --ico-c: #12352A; --ico-c-fg: #6FDDA9;
  --ico-d: #3A1527; --ico-d-fg: #FF8FB8;
  --ok: #6FDDA9;
  --err: #FF8F86;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 12px;
}
.intro { max-width: 40em; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none;
  padding: 14px 26px; border-radius: 999px; border: 0; font: inherit; font-weight: 700;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
  box-shadow: 0 10px 24px -12px rgba(21, 32, 56, .7);
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #69B3FF; outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--heading); box-shadow: inset 0 0 0 2px var(--heading); }
.btn-ghost:hover { background: var(--chip-bg); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.play-badge {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px;
  background: #000; color: #fff; text-decoration: none; border-radius: 12px; border: 1px solid #8A8A8A;
  transition: transform .15s ease;
}
.play-badge:hover { transform: translateY(-1px); }
.gp-logo { width: 26px; height: 28px; flex: none; }
.gp-text { display: grid; line-height: 1.05; text-align: left; }
.gp-text small { font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }
.gp-text b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--heading); text-decoration: none; }
.brand img { border-radius: 9px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--heading); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  font: inherit; font-weight: 700; font-size: 14px; color: var(--heading);
  background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
  height: 38px; min-width: 38px; padding: 0 12px; cursor: pointer;
  display: inline-grid; place-items: center;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (max-width: 960px) { .links { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 420px) { .nav .brand span { display: none; } .nav-actions .btn-sm { padding: 9px 14px; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 20px 88px; }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--accent-strong); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 26px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 14px; font-weight: 600; color: var(--heading);
  background: var(--chip-bg); border: 1px solid var(--rule);
  padding: 6px 14px; border-radius: 999px;
}
.hero-art { position: relative; min-height: 560px; }
.blob {
  position: absolute; inset: 6% 4% 4% 10%;
  background: linear-gradient(135deg, #69B3FF, #3D7EF5 52%, #1A3DBF);
  border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%;
  opacity: .14;
}
.family {
  position: absolute; right: 0; top: 0; width: 72%; height: 100%; object-fit: cover;
  border-radius: 32px; box-shadow: var(--shadow);
}
.phone {
  margin: 0; background: #0D1628; padding: 9px; border-radius: 38px;
  box-shadow: var(--shadow), inset 0 0 0 2px #2A3A5C;
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.phone-hero { position: absolute; left: 0; bottom: -20px; width: 46%; max-width: 270px; transform: rotate(-4deg); }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 520px; width: 100%; margin: 0 auto; }
}

/* Sections */
.section { padding: 96px 0; }
.section h2.center { max-width: 18em; margin-left: auto; margin-right: auto; margin-bottom: 18px; }
.tint { background: var(--bg-tint); }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; }
.num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-text); font-weight: 800; margin-bottom: 16px;
}
.steps p { color: var(--muted); margin: 0; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; }
.ico-a { background: var(--ico-a); fill: var(--ico-a-fg); }
.ico-b { background: var(--ico-b); fill: var(--ico-b-fg); }
.ico-c { background: var(--ico-c); fill: var(--ico-c-fg); }
.ico-d { background: var(--ico-d); fill: var(--ico-d-fg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 88px; }
.h3big { font-family: "Fraunces", Georgia, serif; font-size: clamp(26px, 3vw, 34px); }
.split-shots { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.phone.sm { width: 44%; max-width: 240px; }
.phone.sm:nth-child(2) { margin-top: 48px; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7.1-7.1 1.4 1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Gallery */
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 44px max(20px, calc((100vw - 1160px) / 2 + 20px)) 28px;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 240px; scroll-snap-align: center; text-align: center; }
.gallery figcaption { margin-top: 16px; font-weight: 700; color: var(--heading); font-size: 15px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 48px auto 0; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 34px; }
.plan-pro { background: var(--pro-bg); border-color: var(--pro-bg); box-shadow: var(--shadow); }
.plan-pro h3 { color: #fff; }
.plan-pro .muted, .plan-pro .ticks li { color: var(--pro-text); }
.badge {
  position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: #F4A520; color: #152038; padding: 4px 10px; border-radius: 999px;
}
.plans-cta { display: flex; justify-content: center; margin-top: 36px; }

/* Tech stack */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.tech-item {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 20px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tech-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tech-logo {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px;
  font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: #fff;
}
.tech-logo svg { width: 28px; height: 28px; fill: #fff; }
.tech-item strong { color: var(--heading); font-size: 16px; }
.tech-item span { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--heading); align-content: start; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--field);
  border: 1px solid var(--rule); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.form input[aria-invalid="true"] { border-color: var(--err); }
.field-err { color: var(--err); font-size: 13px; font-weight: 600; min-height: 0; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.foot { background: var(--foot-bg); color: var(--foot-text); padding: 64px 0 28px; }
.foot .brand { color: #fff; margin-bottom: 12px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-tag { color: var(--foot-muted); max-width: 22em; margin-bottom: 18px; }
.foot h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--foot-text); text-decoration: none; }
.foot ul a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: grid; gap: 6px; }
.foot-bottom p { color: var(--foot-muted); margin: 0; font-size: 14px; }

@media (max-width: 960px) {
  .grid4, .stack { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .steps, .grid4, .plans, .split, .contact, .form .row2 { grid-template-columns: 1fr; }
  .split { gap: 36px; margin-top: 64px; }
  .gallery figure { flex-basis: 210px; }
  .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
