/* ============================================================
   Lazyweb V3 — Hero-Only + Strawberry-style Input
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #fffcfa;
  --bg-card: #ffffff;
  --bg-dark: #1a1a1a;

  /* Text */
  --ink: #111111;
  --ink-secondary: #555555;
  --ink-muted: #999999;

  /* Brand accent — neutral/dark, no purple */
  --accent-solid: #111111;

  /* Structural */
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

  /* Layout */
  --max-width: 1200px;

  /* Typography */
  --font: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font); cursor: pointer; }

/* Ambient grid canvas */
#v3-ambient-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.v3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 252, 250, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

.v3-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.v3-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.v3-logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.v3-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--bg-dark);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.v3-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Navigation links (middle section) */
.v3-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.v3-nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.v3-nav-link:hover {
  color: var(--ink);
}

/* ============================================================
   HERO — Full Viewport Centered
   ============================================================ */
.v3-hero-page {
  min-height: calc(100vh - 64px);
  margin-top: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1.5rem, 4vh, 3rem) 1.5rem 0;
  position: relative;
  z-index: 1;
}

.v3-hero {
  text-align: center;
  max-width: 760px;
  width: 100%;
  position: relative;
}

/* Decorative gradient blob — subtle warm neutral */
.v3-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.015) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   LOGO STACK (Mobbin-style cycling app icons)
   ============================================================ */
.v3-logo-stack {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.v3-logo-stack-back {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  z-index: 0;
}

.v3-logo-stack-front {
  position: relative;
  width: 80px;
  height: 80px;
  z-index: 1;
}

.v3-app-icon {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  will-change: transform, opacity;
}

.v3-app-icon.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  z-index: 2;
}

.v3-app-icon.next {
  opacity: 0.7;
  transform: translateY(-10px) scale(0.78);
  z-index: 1;
  filter: saturate(0.5) brightness(1.1);
}

.v3-hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  margin-bottom: 16px;
}

.v3-hero-title {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--ink);
}

.v3-hero-title-accent {
  color: var(--ink-secondary);
}

.v3-hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin: 0 auto 24px;
  max-width: 560px;
}

/* ============================================================
   STRAWBERRY-STYLE SEARCH CARD
   ============================================================ */
.v3-search-card {
  max-width: 680px;
  width: 100%;
  margin: 0 auto 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 20px 20px 14px;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  text-align: left;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.v3-search-card:hover {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
}

.v3-search-content {
  flex: 1;
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.55;
  padding-bottom: 16px;
  min-height: 24px;
}

.v3-search-text {
}

.v3-search-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--ink);
  margin-left: 1px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.v3-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 12px;
}

.v3-search-attach {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.v3-search-attach:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-secondary);
}

.v3-search-send {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: none;
  border-radius: 50%;
  color: #fff;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
}

.v3-search-send:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 10px rgba(26, 26, 46, 0.25);
}

/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */
.v3-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.v3-btn-primary {
  color: #fff;
  background: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.v3-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   EMAIL FORM (mobile only)
   ============================================================ */
.v3-email-form {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.v3-hero-actions.form-open .v3-btn {
  display: none;
}

.v3-hero-actions.form-open .v3-email-form {
  display: flex;
}

.v3-email-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background-color 0.3s;
}

.v3-email-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.v3-email-send {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  border: none;
  border-radius: 50%;
  color: #fff;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.v3-email-send:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.v3-email-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   TOAST
   ============================================================ */
.v3-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--bg-dark);
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 300;
}

.v3-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.v3-toast.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
}

/* ============================================================
   SCREENSHOT CAROUSEL — Orbital Arc
   ============================================================ */
.v3-carousel {
  position: fixed;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 280px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

.v3-carousel-track {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.v3-phone-frame {
  position: relative;
  width: 110px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
  margin: 0 10px;
  will-change: transform, opacity;
}

.v3-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 16px;
}

.v3-phone-company {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.v3-carousel-fade-left,
.v3-carousel-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 2;
}

.v3-carousel-fade-left {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 100%);
}

.v3-carousel-fade-right {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, transparent 100%);
}

/* ============================================================
   RESPONSIVE: Tablet (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .v3-hero-title {
    font-size: 48px;
  }

  .v3-hero-subtitle {
    font-size: 17px;
  }

  .v3-phone-frame {
    width: 85px;
    height: 174px;
    border-radius: 14px;
    margin: 0 8px;
  }

  .v3-carousel {
    height: 200px;
  }
}

/* ============================================================
   RESPONSIVE: Mobile (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  .v3-nav-links {
    display: none;
  }

  .v3-nav-cta {
    display: none;
  }

  .v3-carousel {
    display: none;
  }

  body {
    overflow: auto;
    height: auto;
  }

  .v3-hero-page {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding: 1.5rem 1rem;
    align-items: center;
  }

  .v3-hero-title {
    font-size: 36px;
  }

  .v3-hero-subtitle {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .v3-search-card {
    min-height: 120px;
    padding: 16px 16px 12px;
    border-radius: 16px;
  }

  .v3-search-content {
    font-size: 14px;
  }

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

/* Hide carousel on short viewports */
@media (max-height: 700px) {
  .v3-carousel {
    display: none;
  }

  .v3-hero-page {
    align-items: center;
  }
}

/* ============================================================
   RESPONSIVE: Extra small (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .v3-hero-title {
    font-size: 30px;
  }

  .v3-hero-badge {
    font-size: 11px;
    padding: 5px 12px;
  }
}
