/* ============================================
   Onyva — Design tokens
   ============================================ */
:root {
  --green: #47d45a;
  --blue: #139fdd;
  --blue-dark: #1c54b5;
  --ink: #14181c;
  --ink-soft: #57626c;
  --paper: #ffffff;
  --paper-soft: #f5f8f9;
  --navy: #0e1a2b;
  --navy-soft: #16273d;
  --border: #e3e8eb;

  --max: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(14, 26, 43, 0.06);
  --shadow-lg: 0 16px 48px rgba(14, 26, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(19, 159, 221, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.section {
  padding: 96px 0;
}
.section--soft { background: var(--paper-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy p { color: rgba(255,255,255,0.7); }
.section--navy h2 { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-dark); }

.btn--on-navy {
  background: var(--blue);
  color: #fff;
}
.btn--on-navy:hover { background: var(--green); }

.btn--block { width: 100%; justify-content: center; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 26, 43, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand img {
  height: 92px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--blue-dark); }
.nav-links a.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; color: #fff; }

@media (min-width: 861px) {
  .nav-links a { color: rgba(255, 255, 255, 0.75); }
  .nav-links a:hover { color: #fff; }
  .nav-links a.active { color: #fff; }
}

.nav-cta .btn--primary { background: var(--blue); }
.nav-cta .btn--primary:hover { background: var(--blue-dark); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
  }
  .nav-cta .btn--primary { display: none; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 88px;
  padding-bottom: 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero--photo {
  position: relative;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  min-height: 620px;
  display: flex;
  align-items: flex-start;
  padding-top: 48px;
}
.hero-photo-content {
  max-width: 620px;
  margin: 0 auto;
  background: radial-gradient(ellipse 120% 140% at 50% 50%, rgba(14,26,43,0.72) 0%, rgba(14,26,43,0.72) 55%, rgba(14,26,43,0) 100%);
  padding: 48px 56px;
  border-radius: 24px;
  text-align: center;
}
.hero-photo-content p { text-align: left; }
.hero-photo-content .eyebrow { margin-left: auto; margin-right: auto; }
.hero-photo-content .hero-actions { justify-content: center; }
.hero--photo .eyebrow { background: rgba(255,255,255,0.14); color: #fff; }
.hero--photo h1 { color: #fff; }
.hero--photo p { color: rgba(255,255,255,0.85); }
.hero--photo .hero-note { color: rgba(255,255,255,0.65); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > div:first-child { text-align: center; }
  .hero-grid > div:first-child p { text-align: left; }
  .hero-grid > div:first-child .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}
@media (max-width: 760px) {
  .hero--photo { min-height: 520px; }
  .hero-photo-content {
    text-align: center;
    max-width: 100%;
    margin-left: 0;
    background: rgba(14,26,43,0.72);
    border-radius: 16px;
    padding: 32px 24px;
  }
  .hero-photo-content p { text-align: left; }
  .hero-photo-content .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-photo-content .hero-actions { justify-content: center; }
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-visual {
  background: var(--navy);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ============================================
   Phone frame (real app screenshots)
   ============================================ */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  background: #0b0f14;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,0.04) inset;
}
.phone-frame .phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0b0f14;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-frame .phone-screen {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}
.phone-frame .phone-screen img {
  width: 100%;
  display: block;
}
.phone-frame--float {
  box-shadow: var(--shadow-lg);
}
.phone-showcase {
  display: flex;
  justify-content: center;
}
.phone-showcase-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 16px;
}
.hero-visual .device-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.hero-visual .device-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 12px;
  color: #fff;
}
.hero-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.hero-card .value {
  font-weight: 600;
  font-size: 0.98rem;
}
.hero-card.accent {
  border-color: rgba(19,159,221,0.4);
  background: rgba(19,159,221,0.12);
}
.hero-badge {
  position: absolute;
  bottom: -18px;
  right: 28px;
  background: var(--green);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ============================================
   Feature grid / cards
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}
.showcase-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 16px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(19, 159, 221, 0.1);
  color: var(--blue-dark);
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ============================================
   Comparison table
   ============================================ */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare th, .compare td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.compare th {
  background: var(--paper-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.compare tr:last-child td { border-bottom: none; }
.compare td.old { color: var(--ink-soft); }
.compare td.new { color: var(--navy); font-weight: 600; }
.arrow { color: var(--blue); font-weight: 700; padding: 0 10px; }

/* ============================================
   Steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding-top: 8px;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ============================================
   Stat band
   ============================================ */
.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 860px) { .stat-band { grid-template-columns: 1fr; } }
.stat-band .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green);
}
.stat-band .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

/* ============================================
   CTA banner
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.7); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; }

/* ============================================
   Hero logo lockup (icon + wordmark + pronunciation)
   ============================================ */
.hero-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 44px;
  text-align: left;
}
.hero-lockup img {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-lockup .lockup-name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.hero-lockup .lockup-name span { color: var(--blue-dark); }
.hero-lockup .lockup-pronounce {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-top: 4px;
}
.hero-lockup .lockup-pronounce em { color: var(--green-dark, #2ba83c); font-style: normal; font-weight: 600; }
@media (max-width: 560px) {
  .hero-lockup { flex-direction: column; text-align: center; gap: 14px; }
}
.footer-col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Forms
   ============================================ */
.form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper-soft);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-two { grid-template-columns: 1fr; } }

/* ============================================
   Misc
   ============================================ */
.page-hero {
  padding-top: 72px;
  padding-bottom: 56px;
  text-align: center;
}
.page-hero .section-head { margin-left: auto; margin-right: auto; }

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
