*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1A5CFF;
  --ink: #1e1e3a;
  --purple: #7B2D8E;
  --paper: #f8f9fc;
  --line: rgba(30, 30, 58, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow: hidden;
}

body.panel-open {
  overflow: auto;
  height: auto;
}

body.modal-open { overflow: hidden; }

/* ── SHARED BACKGROUND ── */
.page-bg {
  position: fixed;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  pointer-events: none;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.14) 40%,
    rgba(10,10,60,0.08) 100%
  );
}

.page-bg.dimmed::after {
  background: linear-gradient(180deg,
    rgba(248,249,252,0.92) 0%,
    rgba(248,249,252,0.97) 100%
  );
}

/* ── NAV ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 24px 48px 20px 44px;
  animation: fadeDown 0.8s ease 0.2s both;
}

body:not(.view-home-active) .site-header {
  background: rgba(248, 249, 252, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(30, 30, 58, 0.06);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  height: 88px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
  margin-left: 120px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 2px;
  display: inline-block;
  white-space: nowrap;
}

.nav-links li {
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── VIEWS ── */
.view {
  display: none;
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

.view.active { display: block; }

/* ── HOME / HERO ── */
#view-home {
  height: 100vh;
  overflow: hidden;
}

#view-home .hero {
  height: 100vh;
  min-height: 0;
}

#view-about {
  background: var(--paper);
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-content {
  position: absolute;
  left: 88px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  max-width: 620px;
}

.headline {
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--blue);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  animation: fadeUp 0.9s ease 0.4s both;
  text-shadow:
    0 0 40px rgba(255,255,255,0.55),
    0 2px 16px rgba(255,255,255,0.4),
    0 0 2px rgba(255,255,255,0.6);
}

.subheadline {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 500;
  color: rgba(255,255,255,0.93);
  line-height: 1.5;
  margin-bottom: 14px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  animation: fadeUp 0.9s ease 0.55s both;
}

.hero-tagline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  animation: fadeUp 0.9s ease 0.65s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeUp 0.9s ease 0.75s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(26,92,255,0.35);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(26,92,255,0.45); }

.btn-secondary {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: rgba(26,92,255,0.06); }

/* ── PEBBLE STATS ── */
.pebble-wrap {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: min(42vw, 580px);
  height: min(38vw, 500px);
  z-index: 8;
  animation: pebbleIn 1s ease 0.5s both;
}

@keyframes pebbleIn {
  from { opacity: 0; transform: scale(0.88) translate(30px, 30px); }
  to   { opacity: 1; transform: scale(1) translate(0, 0); }
}

.pebble {
  width: 100%;
  height: 100%;
  background: var(--blue);
  border-radius: 58% 42% 46% 54% / 44% 56% 48% 52%;
  transform: rotate(-8deg);
  box-shadow: 0 20px 50px rgba(26,92,255,0.22), inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pebble-inner {
  transform: rotate(8deg);
  width: 100%;
  height: 100%;
  padding: 4rem 2rem 3.5rem 5.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  color: #fff;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.stat-label {
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.stat-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.25);
  width: 100%;
}

/* ── ABOUT BODY ── */
.about-body {
  position: relative;
  z-index: 12;
  background: var(--paper);
  padding: 160px 88px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.about-body h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.about-body p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  color: #2a2a48;
}

.about-body ul {
  list-style: none;
  margin: 24px 0 32px;
}

.about-body ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2a48;
}

.about-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--purple);
  border-radius: 1px;
  transform: rotate(45deg);
}

.trust-grid {
  display: grid;
  gap: 12px;
  margin: 32px 0 40px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trust-grid li {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.trust-grid li::before { background: var(--blue); }

.about-body .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── CONTENT PANELS (Contact, Pricing) ── */
.content-panel {
  padding: 160px 48px 80px;
  max-width: 820px;
  margin: 0 auto;
}

.content-panel.wide { max-width: 920px; }

.panel-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.panel-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.panel-sub {
  font-size: 18px;
  font-weight: 500;
  color: #4a4a68;
  line-height: 1.5;
  margin-bottom: 28px;
}

.panel-body {
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a48;
  margin-bottom: 24px;
}

.panel-body p { margin-bottom: 18px; }

.panel-body ol {
  margin: 20px 0 24px 20px;
}

.panel-body ol li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.panel-trust {
  list-style: none;
  margin: 28px 0 36px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-trust li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 500;
}

.panel-trust li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.panel-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ── PRICING (minimal) ── */
#view-pricing .content-panel {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 680px;
}

#view-pricing .panel-body { text-align: left; }

#view-pricing .panel-ctas { justify-content: center; }

.pricing-intro {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--blue);
  margin-bottom: 28px;
}

/* ── CONTACT FORM ── */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 40px 40px;
  margin-top: 36px;
  box-shadow: 0 16px 48px rgba(30,30,58,0.06);
}

.form-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-note {
  font-size: 14px;
  color: #5a5a78;
  margin-bottom: 28px;
  line-height: 1.5;
}

.pathway-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.pathway-tab {
  flex: 1;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #f4f5f8;
  border: none;
  cursor: pointer;
  color: #5a5a78;
  transition: background 0.2s, color 0.2s;
}

.pathway-tab.active {
  background: var(--blue);
  color: #fff;
}

.form-section { display: none; }
.form-section.active { display: block; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a68;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fafbfc;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,92,255,0.12);
  background: #fff;
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-or {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8aa8;
  margin: 8px 0 20px;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.form-status.success { color: #0d7a4e; }
.form-status.error { color: #b42318; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(15, 15, 35, 0.55);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #8a8aa8;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover { color: var(--ink); }

.modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.modal-sub {
  font-size: 14px;
  color: #5a5a78;
  line-height: 1.5;
  margin-bottom: 28px;
}

.modal .form-group { margin-bottom: 18px; }

.modal-error {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #b42318;
}

.modal-error.visible { display: block; }

.modal-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: #7a7a98;
  text-align: center;
}

.modal-secondary {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
}

/* ── LANGUAGE SELECTOR ── */
.bottom-lang {
  position: fixed;
  bottom: 34px;
  left: 88px;
  z-index: 200;
  pointer-events: auto;
}

.view-home-active .bottom-lang {
  animation: fadeUp 0.9s ease 1s both;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.93);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

body:not(.view-home-active) .lang-btn {
  color: var(--ink);
  text-shadow: none;
}

.lang-btn:hover { opacity: 0.85; }

.chevron { display: flex; transition: transform 0.25s; }
.bottom-lang.open .chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.18);
  min-width: 160px;
  overflow: hidden;
}

.bottom-lang.open .lang-dropdown { display: block; }

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: #f4f7ff;
  color: var(--blue);
}

.lang-dropdown a.active { font-weight: 700; }

/* ── SIMPLE LANDING HERO ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
  pointer-events: none;
}

.hero .nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 24px 48px 0 44px;
  pointer-events: auto;
}

.panel-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  padding: 24px 48px 20px 44px;
  background: rgba(248, 249, 252, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(30, 30, 58, 0.06);
}

.panel-page {
  display: none;
  min-height: 100vh;
  background: var(--paper);
}

.panel-page.active { display: block; }

.panel-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 140px 48px 80px;
}

.about-body h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.pricing-panel {
  max-width: 680px;
  text-align: center;
}

.pricing-panel .panel-body { text-align: left; }

.panel-ctas-single {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.panel-ctas-single .btn-primary {
  width: auto;
  min-width: 260px;
}

.form-note-inline {
  margin-top: 8px;
  margin-bottom: 0;
}

body.panel-open .bottom-lang .lang-btn {
  color: var(--ink);
  text-shadow: none;
}

body:not(.panel-open) .bottom-lang .lang-btn {
  color: rgba(255,255,255,0.93);
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero .nav,
  .panel-nav { padding: 16px 24px 16px; }
  .panel-inner { padding: 120px 24px 60px; }
  .nav-links { margin-left: 24px; gap: 20px; }
  .logo { height: 64px; }
  .hero-content { left: 28px; right: 28px; max-width: none; }
  .pebble-wrap { width: 70vw; height: 55vw; right: -40px; bottom: -40px; }
  .about-body { padding: 60px 28px 80px; }
  .content-panel { padding: 120px 24px 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .bottom-lang { left: 28px; }
  .pathway-tab { font-size: 11px; padding: 12px 10px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .pebble-wrap { display: none; }
}

/* ── SITE FOOTER (Privacy / Legal) ── */
.site-footer {
  position: fixed;
  left: 88px;
  bottom: 8px;
  white-space: nowrap;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover { color: #fff; }

.site-footer .footer-sep { opacity: 0.5; }

.view-home-active .site-footer {
  animation: fadeUp 0.9s ease 1s both;
}

body.panel-open .site-footer {
  position: static;
  transform: none;
  justify-content: center;
  padding: 26px 24px 30px;
  background: var(--paper);
  border-top: 1px solid rgba(20, 20, 60, 0.08);
  color: rgba(20, 20, 60, 0.45);
}

body.panel-open .site-footer a { color: rgba(20, 20, 60, 0.6); }

body.panel-open .site-footer a:hover { color: var(--blue); }

body.modal-open .site-footer { display: none; }

/* ── LEGAL PAGES (Privacy Policy / Legal Disclaimer) ── */
.legal-body h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a3a;
  margin: 34px 0 12px;
}

.legal-body .legal-meta {
  font-size: 13px;
  color: rgba(20, 20, 60, 0.5);
  margin-bottom: 32px;
}

.legal-body .legal-link {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 900px) {
  body:not(.panel-open) .site-footer { left: 28px; }
}

@media (max-width: 600px) {
  body:not(.panel-open) .site-footer {
    left: auto;
    right: 16px;
    transform: none;
    bottom: 24px;
    font-size: 11px;
    gap: 7px;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 55vw;
    text-align: right;
  }
  body.panel-open .site-footer {
    font-size: 11px;
    flex-wrap: wrap;
    white-space: normal;
  }
}
