/* ============================================================
   qrew — Landing Page Styles
   Mobile-first. Breakpoints: 480 / 768 / 1024 / 1240
   ============================================================ */

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

:root {
  --mint:       #0EE3AE;
  --mint-dark:  #06C896;
  --mint-soft:  #B6F5DF;
  --forest:     #042F2E;
  --ink:        #0A1F1C;
  --text:       #1A2E2B;
  --muted:      #5C6B68;
  --bg:         #FFFFFF;
  --surface:    #F2FBF7;
  --surface-2:  #E5F4ED;
  --border:     #E5EBE8;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
}

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

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── ANIMATIONS ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

@keyframes pulse-ring {
  0%   { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-img--light {
  height: 30px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--forest);
  color: #fff;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

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

/* ============================================================
   SHARED COMPONENTS
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 100px;
  border: 1px solid var(--surface-2);
  letter-spacing: 0.02em;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-dark);
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--surface-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ── BUTTONS ── */
.btn-submit {
  width: 100%;
  padding: 15px 24px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--mint);
  color: var(--forest);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.15s;
  -webkit-appearance: none;
}

.btn-submit:hover  { background: var(--mint-dark); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px 56px;
}

.hero-text { margin-bottom: 48px; }

.hero-text .chip { margin-bottom: 24px; }

.hero h1 {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  position: relative;
  display: inline;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: -2%;
  width: 104%;
  height: 11px;
  background: var(--mint);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

/* ── SIGNUP FORM ── */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.form-input:focus {
  border-color: var(--mint-dark);
  box-shadow: 0 0 0 3px rgba(6, 200, 150, 0.14);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}

/* ── FORM SUCCESS STATE ── */
.form-success {
  display: none;
  background: var(--surface);
  border: 1.5px solid var(--mint-soft);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
}

.form-success-icon {
  width: 48px;
  height: 48px;
  background: var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.form-success h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-success p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── HERO VISUAL ── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.visual-blob {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: var(--radius-xl);
  transform: rotate(-2.5deg);
  z-index: 0;
}

.visual-blob::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(140deg, var(--mint) 0%, var(--mint-soft) 100%);
  opacity: 0.32;
  border-radius: var(--radius-xl);
}

.phone-hero {
  position: relative;
  z-index: 2;
  width: 200px;
  border-radius: 34px;
  background: var(--ink);
  border: 7px solid #0d1f1d;
  overflow: hidden;
  box-shadow: 0 32px 72px -16px rgba(4, 47, 46, 0.45);
  transform: rotate(2deg);
}

.phone-hero img { width: 100%; display: block; }

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

/* ── STAT BADGES ── */
.stat-badge {
  display: none; /* hidden on mobile */
  position: absolute;
  z-index: 5;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 13px 17px;
  box-shadow: 0 16px 44px -8px rgba(4, 47, 46, 0.18);
}

.stat-badge-1 { top: 22%;  left:  -5%; transform: rotate(-4deg); }
.stat-badge-2 { bottom: 16%; right: -4%; transform: rotate(3deg); }

.stat-badge-num {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 3px;
}

.stat-badge-num .m { color: var(--mint-dark); }

.stat-badge-label {
  font-size: 0.67rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================================
   PROOF BAR
   ============================================================ */
.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.proof-bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: max-content;
}

.proof-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.proof-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.proof-item svg { flex-shrink: 0; }

/* ============================================================
   SHARED SECTION WRAPPER
   ============================================================ */
.section {
  max-width: 1240px;
  margin: 80px auto;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 14px;
}

.section-title em { font-style: italic; }

.section-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 520px;
}

/* ============================================================
   SCREENSHOTS SECTION
   ============================================================ */
.screenshots-section {
  background: var(--forest);
  padding: 72px 20px;
}

.screenshots-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.screenshots-header {
  margin-bottom: 44px;
}

.screenshots-section .section-label {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
  border-color: rgba(255, 255, 255, 0.1);
}

.screenshots-section .section-title {
  color: #fff;
  margin-bottom: 12px;
}

.screenshots-section .section-sub {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* ── GUEST PHONE FLOW ── */
.phones-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.phone-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 8px;
}

.screenshot-phone {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  background: #111;
}

.screenshot-phone img { width: 100%; display: block; }

/* ── BROWSER FRAMES ── */
.dashboards-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.browser-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

.browser-chrome {
  background: #111118;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.browser-url {
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 3px 11px;
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: ui-monospace, 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.browser-frame img { width: 100%; display: block; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: attr(data-num);
  position: absolute;
  top: -14px;
  right: 14px;
  font-size: 5.5rem;
  font-weight: 900;
  font-style: italic;
  color: var(--surface-2);
  letter-spacing: -0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.step-ico {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.step-ico svg {
  stroke: var(--mint);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.step-desc {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  border-color: var(--mint-soft);
  box-shadow: 0 6px 24px rgba(14, 227, 174, 0.1);
}

.feature-ico {
  width: 44px;
  height: 44px;
  background: var(--mint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-ico svg {
  stroke: var(--forest);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 7px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.57;
}

/* ============================================================
   EARLY ACCESS
   ============================================================ */
.early-section {
  background: var(--forest);
  padding: 72px 20px;
}

.early-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.early-section .section-label {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mint);
  border-color: rgba(255, 255, 255, 0.1);
}

.early-section .section-title {
  color: #fff;
  margin-bottom: 14px;
}

.early-section .section-sub {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 32px;
}

.perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.perk-dot {
  width: 26px;
  height: 26px;
  background: var(--mint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.perk-text {
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  line-height: 1.55;
}

.perk-text strong {
  color: #fff;
  font-weight: 700;
}

/* ── EARLY FORM CARD ── */
.early-form-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}

.early-form-card h3 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}

.early-form-card > p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 5px;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (min-width: 480px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .phones-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

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

/* ============================================================
   RESPONSIVE — 768px (tablet)
   ============================================================ */
@media (min-width: 768px) {
  .nav { padding: 0 32px; height: 68px; }
  .nav-logo { font-size: 1.5rem; }
  .nav-cta  { padding: 10px 22px; font-size: 0.92rem; }

  .hero {
    padding: 80px 32px 72px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
  }

  .hero-text { margin-bottom: 0; }

  .hero-visual { min-height: 480px; }

  .phone-hero { width: 220px; }

  .stat-badge { display: block; }

  .proof-bar { padding: 20px 32px; }
  .proof-bar-inner { min-width: 0; }

  .section { margin: 96px auto; padding: 0 32px; }

  .screenshots-section { padding: 88px 32px; }

  .phones-grid { grid-template-columns: repeat(4, 1fr); }

  .how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .early-section { padding: 88px 32px; }

  footer { padding: 48px 32px; }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================================
   RESPONSIVE — 1024px (desktop)
   ============================================================ */
@media (min-width: 1024px) {
  .hero { padding: 100px 32px 88px; gap: 80px; }

  .phone-hero { width: 260px; }

  .hero-visual { min-height: 540px; }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

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