:root {
  --navy-950: #0e1a2e;
  --navy-900: #14233c;
  --navy-800: #1b2a4a;
  --navy-700: #2d3c50;
  --orange-500: #e8731a;
  --orange-600: #c45e14;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --ink: #1b2330;
  --muted: #5c6472;
  --border: #e7e3db;
  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;
  --shadow-soft: 0 20px 45px -25px rgba(14, 26, 46, 0.35);
  --shadow-card: 0 12px 30px -18px rgba(14, 26, 46, 0.25);
  --max-width: 1160px;
  --font: 'Rubik', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap-narrow { max-width: 760px; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn-large { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-small { padding: 0.55rem 1.2rem; font-size: 0.92rem; }
.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(232, 115, 26, 0.55);
}
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 26, 46, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(14, 26, 46, 0.92);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 2.8rem; width: auto; display: block; }
.nav { display: none; align-items: center; gap: 1.9rem; margin-inline-start: 1rem; flex: 1; }
.nav-link { color: rgba(255,255,255,0.85); font-weight: 500; font-size: 0.96rem; transition: color 0.2s; }
.nav-link:hover { color: #fff; }
.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.2rem; height: 2.2rem; background: none; border: none; cursor: pointer; margin-inline-start: auto;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
#navCta { display: none; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  #navCta { display: inline-flex; margin-inline-start: auto; }
}

.site-header.nav-open .nav {
  display: flex;
  position: absolute;
  inset-inline: 0;
  top: 4.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: rgba(14, 26, 46, 0.97);
  padding: 0.5rem 1.5rem 1.5rem;
}
.site-header.nav-open .nav-link { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, #24395e 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  padding: 3.5rem 0 5rem;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(38rem 24rem at 85% 10%, rgba(232, 115, 26, 0.28), transparent 60%),
    radial-gradient(30rem 22rem at 100% 90%, rgba(232, 115, 26, 0.12), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--orange-500);
  background: rgba(232, 115, 26, 0.14);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 42rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.hero-note { font-size: 0.9rem; color: rgba(255,255,255,0.55); }

.hero-visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- phone mockup ---------- */
.phone-frame {
  width: 220px;
  border-radius: 2.1rem;
  background: #0c1626;
  padding: 0.55rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}
.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 1.6rem;
  display: block;
  background: #f2f0ec;
}
.phone-frame img.img-missing { visibility: hidden; }
.hero-visual .phone-frame--front {
  position: relative;
  z-index: 2;
  transform: translateX(-16%) rotate(-4deg);
}
.hero-visual .phone-frame--back {
  position: absolute;
  width: 210px;
  z-index: 1;
  transform: translateX(22%) rotate(9deg);
  filter: brightness(0.85);
}
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- stats ---------- */
.stats { background: var(--navy-800); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 2.2rem 0;
  text-align: center;
}
.stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 0.2rem; }

/* ---------- sections ---------- */
.section { padding: 5.5rem 0; background: var(--bg); }
.problem, .features, .audiences, .contact { background: var(--bg-alt); }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(14,26,46,0.3); }
.card-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 0.2rem;
  background: var(--orange-500);
  margin-bottom: 1.1rem;
}
.card-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 0.8rem;
  background: var(--navy-800); color: #fff; font-weight: 700; font-size: 0.9rem;
  margin-bottom: 1.1rem;
}
.card-title { font-size: 1.08rem; margin-bottom: 0.5rem; }
.card-desc { color: var(--muted); font-size: 0.96rem; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  gap: 2.2rem;
  position: relative;
}
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: start; }
.step-num {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 1.08rem; margin-bottom: 0.35rem; }
.step-desc { color: var(--muted); }
@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- screenshots ---------- */
.screenshots { background: var(--navy-950); color: #fff; }
.screenshots .section-head p { color: rgba(255,255,255,0.65); }
.screenshots .section-head h2 { color: #fff; }
.screenshots-frames {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  padding-top: 1rem;
}
.phone-frame--gallery { width: 240px; }
.phone-frame--gallery:nth-child(1) { transform: rotate(-3deg); }
.phone-frame--gallery:nth-child(2) { transform: rotate(3deg); }

/* ---------- comparison table ---------- */
.comparison-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.comparison-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.comparison-table th, .comparison-table td {
  padding: 1rem 1.3rem;
  text-align: start;
  font-size: 0.95rem;
}
.comparison-table thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg-alt);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.comparison-th-globalex {
  color: var(--orange-500) !important;
  font-weight: 800 !important;
}
.comparison-th-globalex, .comparison-globalex {
  text-align: center;
  background: rgba(232, 115, 26, 0.06);
}
.comparison-table tbody tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
.comparison-label { font-weight: 600; }
.comparison-market { color: var(--muted); font-size: 0.9rem; }
.comparison-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.comparison-footnote {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- faq ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.03rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--orange-500);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { color: var(--muted); margin-top: 0.8rem; font-size: 0.98rem; }

/* ---------- contact ---------- */
.contact { background: var(--bg-alt); }
.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1.2rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row-group { display: grid; gap: 1.2rem; }
@media (min-width: 640px) {
  .form-row-group { grid-template-columns: 1fr 1fr; }
}
.form-row label { font-size: 0.9rem; font-weight: 600; color: var(--navy-800); }
.form-row input, .form-row textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(232, 115, 26, 0.18);
}
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-status { font-size: 0.95rem; min-height: 1.2rem; }
.form-status--success { color: #1a7d3a; }
.form-status--error { color: #c0392b; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding: 2.8rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { height: 2.5rem; width: auto; display: block; }
.footer-tagline { font-size: 0.88rem; opacity: 0.65; margin-top: 0.5rem; }
.footer-links { display: flex; gap: 1.4rem; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; opacity: 0.55; width: 100%; text-align: center; }
@media (min-width: 720px) {
  .footer-copy { width: auto; text-align: start; }
}

/* ---------- live visual edit mode ---------- */
body.edit-mode { padding-bottom: 3.4rem; }
.edit-mode [data-edit-path] {
  cursor: text;
  border-radius: 0.3rem;
  transition: outline-color 0.15s ease, background-color 0.15s ease;
  outline: 2px dashed transparent;
  outline-offset: 3px;
}
.edit-mode [data-edit-path]:hover {
  outline-color: rgba(232, 115, 26, 0.55);
}
.edit-mode [data-edit-path]:focus {
  outline: 2px solid var(--orange-500);
  background: rgba(232, 115, 26, 0.08);
}

.edit-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.2rem;
  background: var(--navy-950);
  color: #fff;
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,0.6);
  font-size: 0.88rem;
}
.edit-bar-label { opacity: 0.8; flex: 1 1 auto; min-width: 200px; }
.edit-bar-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  white-space: nowrap;
}
.edit-bar-btn:hover { background: rgba(255,255,255,0.2); }
.edit-bar-btn--danger { border-color: rgba(220,80,60,0.6); }
.edit-bar-btn--primary {
  background: var(--orange-500);
  border-color: var(--orange-500);
  font-weight: 700;
}
.edit-bar-btn--primary:hover { background: var(--orange-600); border-color: var(--orange-600); }

.edit-toast {
  position: fixed;
  bottom: 4.2rem;
  inset-inline-end: 1.2rem;
  z-index: 210;
  padding: 0.55rem 1.1rem;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.edit-toast--show { opacity: 1; transform: translateY(0); }
.edit-toast--ok { background: #1a7d3a; }
.edit-toast--error { background: #c0392b; }

/* ---------- section layout controls (reorder / hide / add / delete) ---------- */
.section-controls {
  position: absolute;
  top: 0.8rem;
  inset-inline-end: 0.8rem;
  z-index: 60;
  display: flex;
  gap: 0.3rem;
  background: rgba(14, 26, 46, 0.85);
  padding: 0.3rem;
  border-radius: 0.6rem;
  backdrop-filter: blur(4px);
}
.section-controls button {
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.4rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
  font-family: inherit;
}
.section-controls button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.22); }
.section-controls button:disabled { opacity: 0.3; cursor: not-allowed; }
.section-controls button.danger:hover { background: rgba(220, 80, 60, 0.7); }

.edit-mode .section-hidden-in-editor {
  opacity: 0.4;
  outline: 2px dashed rgba(220, 80, 60, 0.55);
  outline-offset: -6px;
}
.hidden-badge {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  z-index: 60;
  background: rgba(220, 80, 60, 0.9);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
}
