/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --bg-primary:        #001219;
  --bg-secondary:      #061f26;
  --bg-elevated:       #092a32;
  --bg-accent-soft:    #073f45;

  --text-primary:      #f7fafa;
  --text-secondary:    #b8c9ce;
  --text-muted:        #7f979e;

  --accent:            #ee9b00;
  --accent-pressed:    #c98300;
  --accent-soft:       #fff0cc;

  --teal:              #0a9396;
  --teal-dim:          #077b7d;

  --border-subtle:     #123a3a;
  --separator:         #1a3d46;
  --divider-strong:    #2a5964;

  --radius-compact:    12px;
  --radius-standard:   16px;
  --radius-hero:       20px;

  --font: 'SF Pro Rounded', -apple-system, system-ui, BlinkMacSystemFont, sans-serif;

  --max-w: 1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Layout helpers ────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ── Typography ────────────────────────────────────────────── */
.label-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.lead {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #001219;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-pressed); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 100px;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover { border-color: var(--divider-strong); background: var(--bg-elevated); }

/* ── Phone frame ───────────────────────────────────────────── */
.phone-frame {
  position: relative;
  background: #080f12;
  border-radius: 36px;
  border: 3px solid #1e3540;
  padding: 8px;
  box-shadow:
    0 0 0 1px #0d2530,
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(10, 147, 150, 0.06);
  flex-shrink: 0;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 28px;
  background: #080f12;
  border-radius: 20px;
  z-index: 10;
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: phone-spin 0.7s linear infinite;
  z-index: 5;
  pointer-events: none;
}

.phone-frame.img-loaded::after {
  display: none;
}

@keyframes phone-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.phone-frame img {
  border-radius: 28px;
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phone-frame.img-loaded img {
  opacity: 1;
}

.phone-label {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 18, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-svg {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(63%) sepia(83%) saturate(700%) hue-rotate(1deg) brightness(102%) contrast(103%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

@media (max-width: 640px) {
  .nav-inner   { flex-wrap: wrap; gap: 10px; }
  .nav-brand   { font-size: 16px; }
  .nav-links   { display: flex; width: 100%; justify-content: center; gap: 20px; padding-bottom: 2px; }
  .nav-links a { font-size: 13px; }
}

/* ── Mobile spacing overrides ──────────────────────────────── */
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero   { padding: 48px 0 40px; }
  .features-header { margin-bottom: 32px; }
  .prose-page { padding: 48px 20px 64px; }
}

@media (max-width: 767px) {
  .hero-inner    { gap: 32px; }
  .history-inner { gap: 32px; }
  .history-phone { order: 1; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary,
  .hero-cta .appstore-btn { justify-content: center; }
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(10, 147, 150, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(238, 155, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.hero-text { position: relative; z-index: 1; }

.hero-text h1 span {
  color: var(--accent);
}

.hero-text .lead {
  margin-top: 20px;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  align-items: center;
}

.hero-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-phone .phone-frame {
  width: min(260px, 70vw);
}

/* ── Features grid ─────────────────────────────────────────── */
.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header .lead {
  margin: 12px auto 0;
  max-width: 540px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-hero);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--divider-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}

.feature-card-screenshot {
  padding: 28px 32px 0;
  display: flex;
  justify-content: center;
}

.feature-card-screenshot .phone-frame {
  width: min(160px, 50%);
  border-radius: 22px;
}

.feature-card-screenshot .phone-frame img {
  border-radius: 14px;
}

.feature-card-body {
  padding: 24px 24px 28px;
  flex: 1;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 12px;
  display: block;
  color: var(--accent);
}

.feature-card-body h3 {
  margin-bottom: 8px;
}

.feature-card-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Screenshots row ───────────────────────────────────────── */
.screenshots {
  overflow: hidden;
}

.screenshots-header {
  text-align: center;
  margin-bottom: 48px;
}

.screenshots-header .lead {
  margin: 10px auto 0;
  max-width: 480px;
}

.scroll-container-wrap {
  position: relative;
}

.scroll-container-wrap::before,
.scroll-container-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.scroll-container-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.scroll-container-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.scroll-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 60px 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}

.scroll-container::-webkit-scrollbar { display: none; }

.scroll-item {
  flex-shrink: 0;
  width: 200px;
  scroll-snap-align: start;
}

.scroll-item .phone-frame {
  width: 200px;
}

.scroll-hint {
  display: none;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .scroll-container {
    padding: 16px 16px 28px;
    justify-content: flex-start;
  }
  .scroll-container-wrap::before,
  .scroll-container-wrap::after { width: 32px; }
  .scroll-hint { display: block; }
}

/* ── History section ───────────────────────────────────────── */
.history {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.history-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 768px) {
  .history-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.history-phone {
  display: flex;
  justify-content: center;
}

.history-phone .phone-frame {
  width: min(240px, 65vw);
}

.history-text {}

.history-text h2 { margin-bottom: 16px; }

.history-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.history-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-secondary);
}

.history-list .icon-dot {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--bg-accent-soft);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Pro section ───────────────────────────────────────────── */
.pro {
  position: relative;
  overflow: hidden;
}

.pro::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(238, 155, 0, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.pro-header {
  text-align: center;
  margin-bottom: 16px;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-accent-soft);
  border: 1px solid rgba(238, 155, 0, 0.3);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.pro-header h2 { margin-bottom: 12px; }

.pro-header .lead {
  max-width: 500px;
  margin: 0 auto;
}

.pro-price {
  text-align: center;
  margin: 32px 0 48px;
}

.pro-price-tag {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.pro-once {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
}

.pro-once span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 6px;
}

.pro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto 48px;
}

@media (max-width: 600px) {
  .pro-grid { grid-template-columns: 1fr; }
}

.pro-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-standard);
  padding: 24px;
  transition: border-color 0.2s;
}

.pro-card:hover { border-color: rgba(238, 155, 0, 0.3); }

.pro-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--accent);
}

.pro-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.pro-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.pro-cta {
  text-align: center;
}

.pro-fine {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

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

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Prose pages (privacy, support) ───────────────────────── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 96px;
}

.prose-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  margin-bottom: 8px;
}

.prose-page .page-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 10px;
  color: var(--text-primary);
}

.prose-page p,
.prose-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.prose-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose-page a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-page a:hover { color: var(--accent); }

.prose-page .contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-standard);
  padding: 28px;
  margin-top: 40px;
}

.prose-page .contact-card h2 {
  margin-top: 0;
}

.prose-page .contact-card p {
  margin-bottom: 20px;
}

.support-form {
  text-align: left;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group label span {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8c9ce' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-success {
  background: rgba(10, 147, 150, 0.12);
  border: 1px solid rgba(10, 147, 150, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 15px;
}

.form-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  color: #ff6b7a;
  font-size: 14px;
  margin-bottom: 16px;
}

.faq-item {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ── Utility ───────────────────────────────────────────────── */
.teal { color: var(--teal); }
.accent { color: var(--accent); }

.badge-sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(10, 147, 150, 0.12);
  border: 1px solid rgba(10, 147, 150, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── App Store badge ───────────────────────────────────────── */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--divider-strong);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.appstore-btn:hover {
  background: var(--bg-accent-soft);
  border-color: var(--teal);
}

.appstore-btn svg {
  width: 20px;
  height: 20px;
}
