:root {
  --bg: #F5F3EE;
  --bg-soft: #EFEDE6;
  --surface: #FFFFFF;
  --border: #E4E0D6;
  --ink: #14181D;
  --ink-soft: #5B6270;
  --ink-faint: #8A8F99;
  --blue: #2E7CF6;
  --blue-deep: #1E5FD0;
  --orange: #FF8A3D;
  --red: #FF5D5D;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'ss01' on, 'cv11' on;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 238, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(20, 24, 29, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 72px;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: -260px;
  right: -160px;
  width: 900px;
  height: 800px;
  background:
    radial-gradient(closest-side, rgba(46, 124, 246, 0.16), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(255, 138, 61, 0.14), transparent);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

h1.hero-title {
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}

h1.hero-title .accent {
  background: linear-gradient(100deg, var(--orange) 10%, var(--red) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 480px;
  margin: 0 0 34px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(20, 24, 29, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 24, 29, 0.24);
  background: var(--blue-deep);
}

.btn-primary svg { flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.btn-secondary:hover { background: var(--surface); border-color: #cfc9ba; }

.hero-microcopy {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ---------- Hero visual (phones) ---------- */

.hero-visual {
  position: relative;
}

.phones {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 10px 0 0;
}

.phone {
  position: relative;
  border-radius: 26px;
  background: #0B0F14;
  padding: 8px;
  box-shadow:
    0 24px 48px -18px rgba(20, 24, 29, 0.35),
    0 8px 16px -8px rgba(20, 24, 29, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  width: 172px;
  flex-shrink: 0;
}

.phone img {
  border-radius: 18px;
  width: 100%;
  display: block;
}

.phone.left {
  transform: rotate(-7deg) translate(16px, 26px);
  z-index: 1;
  width: 148px;
  opacity: 0.94;
}

.phone.right {
  transform: rotate(7deg) translate(-16px, 26px);
  z-index: 1;
  width: 148px;
  opacity: 0.94;
}

.phone.center {
  z-index: 2;
}

.video-note {
  text-align: center;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 0 20px;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-weight: 500;
}

.footer a:hover { color: var(--ink-soft); }

.footer-links {
  display: flex;
  gap: 22px;
}

/* ---------- Contact page ---------- */

.contact-main {
  padding: 90px 0 120px;
  position: relative;
}

.contact-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.contact-head {
  text-align: center;
  margin-bottom: 40px;
}

.contact-head h1 {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  line-height: 1.05;
}

.contact-head p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 48px -24px rgba(20, 24, 29, 0.14);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--surface);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  font-family: inherit;
  transition: transform 0.18s ease, background 0.18s ease;
  margin-top: 4px;
}

.submit-btn:hover { background: var(--blue-deep); transform: translateY(-1px); }

.form-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 18px;
}

.success-msg {
  display: none;
  text-align: center;
  padding: 46px 10px;
}

.success-msg .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-msg h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.success-msg p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 44px 0 8px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-copy { max-width: 560px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-glow { right: 50%; transform: translateX(50%); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-links { gap: 16px; font-size: 14px; }
  h1.hero-title { letter-spacing: -0.03em; }
  .phone.left, .phone.right { display: none; }
  .phone.center { width: 240px; }
  .card { padding: 26px 22px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
}
