/* =============================================
   Clipper Landing Page — Dimension-inspired
   ============================================= */

:root {
  color-scheme: dark;
  --bg-body: #0c0d14;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 255, 255, 0.15);
  --ink: #f1f1f4;
  --muted: #7a7d8b;
  --primary: #ef4457;
  --gradient-accent: linear-gradient(135deg, #ff6b4a, #ff8f3a);
  --radius: 16px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* === Ambient Orbs === */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
}
.orb--hero {
  width: 800px;
  height: 800px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,107,74,0.12), rgba(255,143,58,0.05) 50%, transparent 70%);
  filter: blur(100px);
  animation: pulse 15s ease-in-out infinite;
}
.orb--mid {
  width: 500px;
  height: 500px;
  top: 60%;
  right: -200px;
  background: radial-gradient(circle, rgba(239,68,87,0.08), transparent 70%);
  filter: blur(80px);
  animation: pulse 20s ease-in-out infinite reverse;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(12, 13, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta-mobile { display: none; }
.nav__right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  white-space: nowrap;
}
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--border-active);
  background: var(--bg-surface);
}
.btn--primary {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
}
.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn--cta {
  background: var(--gradient-accent);
  color: #fff;
  padding: 16px 36px;
  font-size: 1.05rem;
  border: none;
  box-shadow: 0 0 30px rgba(255, 107, 74, 0.25), 0 0 60px rgba(255, 107, 74, 0.1);
}
.btn--cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 107, 74, 0.35), 0 0 80px rgba(255, 107, 74, 0.15);
}
.btn__google-icon {
  flex-shrink: 0;
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero__content {
  max-width: 800px;
  width: 100%;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 107, 74, 0.1);
  border: 1px solid rgba(255, 107, 74, 0.2);
  color: #ff8f3a;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero__gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__note {
  font-size: 0.82rem;
  color: var(--muted);
}

/* === Auth Modal === */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal {
  background: #14151f;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}
.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}
.auth-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
.auth-modal__close:hover { color: var(--ink); }
.auth-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}
.auth-modal__sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -6px 0 4px;
}
.auth-card__error {
  width: 100%;
  background: rgba(239, 68, 87, 0.12);
  border: 1px solid rgba(239, 68, 87, 0.3);
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
}
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--ink);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.auth-input:focus {
  border-color: rgba(255, 107, 74, 0.5);
}
.auth-input::placeholder {
  color: var(--muted);
}
.auth-submit {
  width: 100%;
  margin-top: 4px;
}
.auth-toggle {
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-toggle a {
  color: #ff8f3a;
  font-weight: 600;
  margin-left: 4px;
}
.auth-toggle a:hover {
  text-decoration: underline;
}
.auth-divider {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn--google {
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}
.btn--google:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--border-active);
}
.modal__google-slot { display: none; }
.google-ready .btn--google { display: none; }
.google-ready .modal__google-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* === Section shared === */
.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section__heading {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section__sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* === Features === */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 107, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #ff6b4a;
}
.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* === How it Works === */
.how {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
}
.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.how__step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 16px;
}
.how__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.how__connector {
  width: 48px;
  height: 2px;
  background: var(--border-active);
  margin-top: 26px;
  flex-shrink: 0;
}
.how__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.how__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* === Final CTA === */
.final-cta {
  position: relative;
  z-index: 1;
  padding: 40px 0 80px;
}
.final-cta__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
}
.final-cta__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.final-cta__sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.final-cta__google-slot { display: none; }

/* === Footer === */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__copy {
  color: var(--muted);
  font-size: 0.82rem;
}

/* === Fade-in animation === */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================
   Responsive
   ========================================= */

/* Tablet */
@media (max-width: 900px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__hamburger { z-index: 110; }
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #0c0d14;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 105;
    padding: 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 14px 0;
    transition: color 0.2s;
  }
  .nav__links a:hover { color: var(--primary); }
  .nav__cta-mobile {
    display: inline-flex !important;
    font-size: 1.1rem !important;
    padding: 14px 36px !important;
    margin-top: 16px;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
  }
  .nav__cta-mobile--primary {
    display: inline-flex !important;
    font-size: 1.1rem !important;
    padding: 14px 36px !important;
    margin-top: 4px;
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
  }
  .nav__right { display: none; }

  .hero {
    min-height: auto;
    padding: 130px 20px 48px;
  }
  .hero__badge { font-size: 0.75rem; margin-bottom: 18px; padding: 5px 14px; }
  .hero__title { font-size: 2rem; margin-bottom: 14px; }
  .hero__subtitle { font-size: 0.92rem; margin-bottom: 28px; }

  .features { padding: 56px 0; }
  .features__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .feature-card { padding: 24px 20px; }

  .how { padding: 48px 0 56px; }
  .how__steps { flex-direction: column; align-items: center; gap: 0; }
  .how__step { max-width: 100%; padding: 0 20px; }
  .how__connector { width: 2px; height: 32px; margin: 8px 0; }

  .final-cta { padding: 24px 0 60px; }
  .final-cta__card { padding: 36px 20px; }

  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }

  .auth-overlay { padding: 16px; }
  .auth-modal { padding: 32px 20px 24px; }

  .section__heading { font-size: 1.5rem; }
  .section__sub { font-size: 0.9rem; margin-bottom: 32px; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 16px 40px; }
  .hero__title { font-size: 1.7rem; }
  .btn--cta { padding: 14px 28px; font-size: 0.95rem; }
  .section__inner { padding: 0 16px; }
}
