:root {
  --bg-color: #fef5e5;
  /* Exact beige from Cali logo */
  --text-dark: #2a3a29;
  /* Deep Cali green for text */
  --text-light: #52664f;
  /* Lighter green for paragraphs */
  --accent-color: #3e5a3c;
  --accent-hover: #2a3a29;
  --white: #ffffff;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-geometric: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

p {
  color: var(--text-light);
}

a {
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--bg-color);
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  /* Slightly stronger shadow for separation without blur */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-geometric);
  font-size: 30px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  height: 36px;
  object-fit: contain;
  margin-top: -2px;
  /* optical alignment */
}

/* Buttons */
.btn-primary {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(42, 58, 41, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 58, 41, 0.25);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-dark);
  padding: 12px 28px;
  border-radius: 30px;
  border: 1px solid var(--text-dark);
  font-size: 15px;
}

.btn-secondary:hover {
  background-color: rgba(42, 58, 41, 0.05);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  /* Anchor for bottom group */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  width: 100%;
}

.hero h1 {
  /* Dynamic font size that forces single line with nowrap */
  font-size: clamp(2rem, 5vw, 5rem);
  white-space: nowrap;
  margin: 0;
}

.hero-bottom-group {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bottom-group p {
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* iPhone Frame */
.iphone-frame {
  width: 320px;
  position: relative;
  background-color: #0b0b0d;
  /* Inner black bezel */
  border-radius: 48px;
  /* Outer curve */
  padding: 6px;
  /* Reduced thickness of the black bezel */

  /* Outer metal rim using box-shadow */
  box-shadow:
    0 0 0 2px #262626,
    /* outer edge of the screen glass */
    0 0 0 4px #5a5a5c,
    /* metallic rim */
    inset 0 0 6px 2px rgba(255, 255, 255, 0.1),
    /* inner reflection */
    0 30px 60px -15px rgba(0, 0, 0, 0.4);

  display: flex;
  transform: translateZ(0);
  /* Create stacking context */
}

/* Side Buttons (Volume Up & Down) */
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 150px;
  left: -7px;
  /* Stick out from the 4px metal rim */
  width: 3px;
  height: 40px;
  background-color: #5a5a5c;
  /* same metal color */
  border-radius: 2px 0 0 2px;
  z-index: -1;
  /* send behind the bezel background */
  box-shadow: 0 55px 0 0 #5a5a5c;
  /* Vol Down */
}

/* Dynamic Island */
.iphone-frame::after {
  content: '';
  position: absolute;
  top: 16px;
  /* 6px padding + 10px safe space inside image */
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background-color: #000;
  border-radius: 14px;
  /* Pill shape */
  z-index: 10;
  /* Realistic camera lens dot */
  background-image:
    radial-gradient(circle at 80px 14px, #1a1a1f 3px, transparent 4px),
    radial-gradient(circle at 80px 14px, #0a0a0f 5px, transparent 6px);
  box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.15);
  /* Glossy bottom reflection */
}

.iphone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 42px;
  /* Inner screen corner radius (48 - 6) */
  z-index: 1;
  position: relative;
  /* ensure it stays above the bezel bg */
}

/* iPhone Frame Wrapper (for overlays) */
.iphone-frame-wrapper {
  position: relative;
  display: inline-block;
}

.message-overlay {
  position: absolute;
  top: 10px;
  left: -100px;
  width: 480px;
  height: auto;
  z-index: 20;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.18));
  animation: messageFloat 3.5s ease-in-out infinite;
}

@keyframes messageFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
}

/* Feature Sections */
.feature {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 30px;
  display: flex;
  align-items: center;
  gap: 80px;
}

/* By default, Image is flex-item 1, Text is flex-item 2.
   So default view: Image Left, Text Right. 
   alternate view: Row Reverse (Text Left, Image Right) */
.feature.alternate {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 24px;
}

.feature-text p {
  font-size: 1.125rem;
  max-width: 480px;
}

/* Footer */
.footer {
  background-color: #202a1f;
  color: #fff;
  padding: 80px 30px;
  text-align: center;
  margin-top: 60px;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-geometric);
  font-size: 32px;
  font-weight: 800;
  /* Also matching the 800 weight from top bar */
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  height: 36px;
  object-fit: contain;
  margin-top: -2px;
}

.footer p {
  color: #a4b3a2;
  margin-bottom: 30px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-links a {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: #d1dcd0;
}

.copyright {
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-bottom: 0 !important;
}

/* Micro Animations (Scroll reveal) */
.section-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter & Delayed Fade-in */
.fade-in-delayed {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in-delayed.visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--text-dark);
  animation: blink 0.8s infinite;
  margin-left: 4px;
  height: 1em;
  vertical-align: text-bottom;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Legal Pages (Privacy & Terms) */
.legal-page {
  padding: 140px 30px 80px;
  min-height: 100vh;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 50px;
  opacity: 0.7;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.legal-section h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 600;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.legal-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-color);
  opacity: 0.5;
}

.legal-section a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--text-dark);
}

/* Contact Page */
.contact-page {
  padding: 140px 30px 80px;
  min-height: 100vh;
}

.contact-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 50px;
  color: var(--text-light);
}

/* Contact Info Sections */
.contact-sections {
  margin-bottom: 60px;
}

.contact-info-block {
  padding: 40px 0;
  text-align: center;
}

.contact-info-block + .contact-info-block {
  border-top: 1px solid rgba(42, 58, 41, 0.1);
}

.contact-info-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-serif);
  color: var(--text-dark);
  margin-bottom: 12px;
}

.contact-info-detail {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contact-info-action {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.3px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info-action:hover {
  color: var(--text-dark);
  transform: translateX(4px);
}

/* QR Code Section */
.qr-section {
  padding: 50px 0;
  border-top: 1px solid rgba(42, 58, 41, 0.1);
}

.qr-section h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.qr-section p {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.qr-code-wrapper {
  display: flex;
  justify-content: center;
}

.qr-code-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(42, 58, 41, 0.1);
  padding: 12px;
  background: #fff;
}

/* Waitlist Page */
.waitlist-page {
  padding: 140px 30px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-container {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.waitlist-flame {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 24px;
  animation: flameFloat 3s ease-in-out infinite;
}

@keyframes flameFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.05);
  }
}

.waitlist-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.waitlist-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 24px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid rgba(42, 58, 41, 0.2);
  border-radius: 30px;
  font-size: 15px;
  font-family: var(--font-sans);
  background: #fff;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(62, 90, 60, 0.1);
}

.waitlist-form button {
  padding: 14px 28px;
  background-color: var(--text-dark);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(42, 58, 41, 0.15);
}

.waitlist-form button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(42, 58, 41, 0.25);
}

.waitlist-note {
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.7;
}

.waitlist-success {
  display: none;
  text-align: center;
}

.waitlist-success.show {
  display: block;
}


.waitlist-success h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.waitlist-success p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn-back {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.btn-back:hover {
  color: var(--text-dark);
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form button {
    width: 100%;
  }
}

/* Footer Active Link */
.footer-links a.active {
  color: #d1dcd0;
  position: relative;
}

.footer-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #d1dcd0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 60px;
  }

  .hero p {
    margin: 0 auto 40px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .feature,
  .feature.alternate {
    flex-direction: column-reverse;
    text-align: center;
    padding: 80px 30px;
    gap: 50px;
  }

  .feature-text p {
    margin: 0 auto;
  }

  .message-overlay {
    width: 320px;
    top: 5px;
    left: -40px;
  }

}