/* =============================================
   YourAppName — Landing Page Styles
   ============================================= */

/* ─── DESIGN TOKENS ─── */
:root {
  --ink:          #121212;
  --paper:        #F9F8F5;
  --accent:       #C8512E;
  --accent-mid:   #E2876A;
  --accent-light: #FDF1EC;
  --muted:        #6C6862;
  --card:         #FFFFFF;
  --border:       #E5E1DA;
  --hero-bg:      #0D0B09;
  --hero-fg:      #F9F8F5;

  --fs-display:  clamp(2.75rem, 7.5vw, 5.5rem);
  --fs-h2:       clamp(2rem, 4.5vw, 3.25rem);
  --fs-body:     1rem;
  --fs-small:    0.875rem;
  --fs-eyebrow:  0.68rem;

  --section-v:   clamp(5rem, 10vw, 9rem);
  --gap-lg:      clamp(2.5rem, 5vw, 5rem);
  --max-w:       1120px;
  --pad-x:       clamp(1.25rem, 5vw, 2.5rem);

  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-lg:   24px;
  --dur:         0.25s;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button, input {
  font-family: inherit;
}

/* ─── UTILITIES ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── TYPOGRAPHY ─── */
h1, h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 600;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
h1 {
  font-size: var(--fs-display);
}
h2 {
  font-size: var(--fs-h2);
}

.eyebrow,
.section-label {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1.25rem;
}

/* ─── BUTTON ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition: background var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #A83E1E;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(200, 81, 46, 0.38);
}
.btn-primary:active {
  transform: translateY(0);
}

/* ─── NAV ─── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0 var(--pad-x);
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hero-fg);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-cta {
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(249, 248, 245, 0.85);
  text-decoration: none;
  border: 1px solid rgba(249, 248, 245, 0.22);
  padding: 0.5rem 1.375rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-cta:hover {
  background: rgba(249, 248, 245, 0.09);
  border-color: rgba(249, 248, 245, 0.5);
  color: var(--hero-fg);
}
#nav.scrolled {
  background: rgba(13, 11, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
}

/* Signature: slow-breathing mesh gradient — warmth without flash */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: meshPulse 15s ease-in-out infinite alternate;
}
@keyframes meshPulse {
  0% {
    background:
      radial-gradient(ellipse 90% 70% at 14% 66%, rgba(200, 81, 46, 0.22) 0%, transparent 65%),
      radial-gradient(ellipse 60% 85% at 83% 16%, rgba(185, 60, 30, 0.14) 0%, transparent 55%),
      radial-gradient(ellipse 75% 55% at 58% 86%, rgba(226, 135, 106, 0.11) 0%, transparent 60%);
  }
  50% {
    background:
      radial-gradient(ellipse 72% 82% at 62% 28%, rgba(200, 81, 46, 0.25) 0%, transparent 65%),
      radial-gradient(ellipse 84% 58% at 16% 76%, rgba(185, 60, 30, 0.16) 0%, transparent 55%),
      radial-gradient(ellipse 60% 72% at 84% 58%, rgba(226, 135, 106, 0.10) 0%, transparent 60%);
  }
  100% {
    background:
      radial-gradient(ellipse 68% 90% at 78% 50%, rgba(200, 81, 46, 0.18) 0%, transparent 65%),
      radial-gradient(ellipse 82% 52% at 28% 24%, rgba(185, 60, 30, 0.20) 0%, transparent 55%),
      radial-gradient(ellipse 85% 68% at 48% 88%, rgba(226, 135, 106, 0.08) 0%, transparent 60%);
  }
}

/* Grain overlay — tactile premium depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: calc(68px + 3.5rem);
  padding-bottom: 5rem;
  max-width: 700px;
}

.hero h1 {
  color: var(--hero-fg);
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-mid);
}

.tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(249, 248, 245, 0.58);
  margin-bottom: 1.375rem;
}
.hero-body {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: rgba(249, 248, 245, 0.5);
  max-width: 490px;
  line-height: 1.78;
  margin-bottom: 2.5rem;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(249, 248, 245, 0.35), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── ABOUT ─── */
.about {
  padding: var(--section-v) 0;
  background: var(--paper);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}
.about-text .section-label {
  color: var(--accent);
}
.about-text h2 {
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 420px;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── APP MOCK ─── */
.app-mock {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  width: 100%;
  max-width: 330px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 24px 60px rgba(0, 0, 0, 0.12);
}
.mock-topbar {
  display: flex;
  gap: 5px;
  margin-bottom: 1.125rem;
}
.mock-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mock-dot-r { background: #FF5F57; }
.mock-dot-y { background: #FEBC2E; }
.mock-dot-g { background: #28C840; }

.mock-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5625rem 0.875rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.875rem;
}
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.mock-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.mock-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-img {
  height: 84px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.25rem;
}
.mock-img-a { background: linear-gradient(145deg, #EDD9C0, #CFA882); }
.mock-img-b { background: linear-gradient(145deg, #F0CEC8, #DDA898); }
.mock-img-c { background: linear-gradient(145deg, #CBD1D8, #A6B2BE); }
.mock-name {
  font-size: 0.625rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-price {
  font-size: 0.625rem;
  color: var(--accent);
  font-weight: 600;
}
.mock-footer {
  font-size: 0.66rem;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

/* ─── FEATURES ─── */
.features {
  padding: var(--section-v) 0;
  background: var(--ink);
}
.features .section-label {
  color: var(--accent-mid);
}
.features-title {
  color: var(--hero-fg);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 500px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem 2.25rem;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 81, 46, 0.3);
  transform: translateY(-5px);
}
.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(200, 81, 46, 0.13);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-mid);
  margin-bottom: 1.375rem;
  flex-shrink: 0;
}
.feature-card h3 {
  color: var(--hero-fg);
  margin-bottom: 0.75rem;
}
.feature-card p {
  color: rgba(249, 248, 245, 0.5);
  font-size: 0.9375rem;
  line-height: 1.72;
}

/* ─── WAITLIST ─── */
.waitlist {
  padding: var(--section-v) 0;
  background: var(--accent-light);
}
.waitlist-inner {
  text-align: center;
  max-width: 540px;
}
.wl-label {
  color: var(--accent);
}
.waitlist h2 {
  color: var(--ink);
  margin-bottom: 1rem;
}
.waitlist-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 380px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.waitlist-form {
  display: flex;
  gap: 0.625rem;
  max-width: 450px;
  margin: 0 auto 1rem;
}
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 1.125rem;
  font-size: 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.waitlist-form input[type="email"]::placeholder {
  color: #B0ABA4;
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 81, 46, 0.12);
}
.waitlist-form button {
  padding: 0.9rem 1.625rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.waitlist-form button:hover {
  background: #A83E1E;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 81, 46, 0.32);
}
.waitlist-form button:active {
  transform: translateY(0);
}
.form-note {
  min-height: 1.5rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent);
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--hero-fg);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-email {
  font-size: var(--fs-small);
  color: rgba(249, 248, 245, 0.45);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-email:hover {
  color: var(--hero-fg);
}
.awin-tag {
  font-size: 0.75rem;
  color: rgba(249, 248, 245, 0.25);
  letter-spacing: 0.04em;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-visual {
    order: -1;
  }
  .waitlist-form {
    flex-direction: column;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding-top: calc(68px + 2rem);
  }
  .btn-primary {
    width: 100%;
    justify-content: center;
  }
  .app-mock {
    max-width: 290px;
  }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-mesh,
  .hero-scroll span {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn-primary:hover,
  .feature-card:hover,
  .waitlist-form button:hover {
    transform: none;
  }
}
