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

:root {
  --bg:             #FAF6EE;
  --surface:        #F2E8D5;
  --surface-2:      #E8D9C0;
  --text-primary:   #2C1A0E;
  --text-secondary: #7A5C42;
  --accent:         #B87333;
  --accent-dark:    #8B5A2B;
  --cta:            #7C4A1E;
  --cta-hover:      #6A3E18;
  --border:         #D9C8A8;
  --shadow:         0 4px 24px rgba(44, 26, 14, 0.08);
  --shadow-lg:      0 8px 48px rgba(44, 26, 14, 0.12);
  --radius:         10px;
  --radius-lg:      16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--cta);
  color: #FAF6EE;
}
.btn--primary:hover {
  background: var(--cta-hover);
  color: #FAF6EE;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 74, 30, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--large {
  padding: 14px 32px;
  font-size: 16px;
}

.btn--full { width: 100%; }

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  background: rgba(250, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo img { display: block; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  background: rgba(250, 246, 238, 0.98);
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { font-size: 16px; }

/* === SECTION BASE === */
.section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 48px;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  background: linear-gradient(160deg, #FAF6EE 0%, #F2E8D5 60%, #EAD9BC 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(184, 115, 51, 0.03) 2px,
    rgba(184, 115, 51, 0.03) 4px
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: var(--surface-2);
  color: var(--accent-dark);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}

.hero__headline {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--accent);
  margin-bottom: 24px;
  font-style: italic;
}

.hero__body {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__platforms {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.platform-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.platform-badge a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.platform-badge a:hover { color: var(--accent); }

.hero__waitlist {
  font-size: 13px;
  color: var(--text-secondary);
}

/* === APP SHOWCASE === */
.app-showcase {
  background: linear-gradient(to bottom, #EAD9BC, #0C0A08);
  padding: 0;
  overflow: hidden;
}

.app-window {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 60px rgba(0,0,0,0.4), 0 32px 80px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none;
  width: min(960px, 92%);
  margin: 0 auto;
}

.app-window__chrome {
  background: #1e1e2e;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-window__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.app-window__dot--red    { background: #ff5f57; }
.app-window__dot--yellow { background: #febc2e; }
.app-window__dot--green  { background: #28c840; }

.app-window__title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-left: -52px; /* compensate for dots to truly center */
}

.app-window img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

/* === WHAT IS IT === */
.what-is { background: #0C0A08; }

.what-is__inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.what-is__inner .section-label { color: var(--accent); }

.what-is__inner h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  color: #F2E8D5;
  margin-bottom: 24px;
}

.philosophy .what-is__inner { max-width: 640px; }
.philosophy .what-is__body p { font-size: 18px; line-height: 1.8; }

.what-is__body p {
  color: rgba(242, 232, 213, 0.6);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* === HOW IT WORKS === */
.how-it-works { background: var(--bg); }
.how-it-works h2 { margin-bottom: 56px; }

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

.step__number { display: none; }

.step h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin-bottom: 14px;
  font-weight: 600;
}

.step p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

/* === FEATURES === */
.features { background: var(--bg); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card__icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* === VIDEOS === */
.videos {
  background: #0C0A08;
}

.videos .section-label { color: var(--accent); }

.videos h2 {
  color: #F2E8D5;
  margin-bottom: 32px;
}

/* Tab buttons */
.video-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.video-tab {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: rgba(242, 232, 213, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.video-tab:hover {
  color: rgba(242, 232, 213, 0.85);
  border-color: rgba(255,255,255,0.2);
}
.video-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FAF6EE;
}

/* Stage: break out of container to give videos more real estate */
.video-stage {
  position: relative;
  width: calc(100% + 96px);
  margin-left: -48px;
  margin-right: -48px;
}

.video-wrap {
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21/9;
  background: #000;
  border: 1px solid rgba(217, 200, 168, 0.1);
}
.video-wrap.active { display: block; }

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Multi-tool content sits slightly higher in the frame */
.video-wrap:nth-child(2) .demo-video {
  object-position: center 35%;
}

/* === REQUIREMENTS === */
.requirements {
  background: var(--bg);
  padding: 64px 0;
}

.requirements__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.requirements__card h3 { font-size: 22px; margin-bottom: 28px; }

.requirements__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.requirements__grid strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.requirements__grid p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}

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

.cta-section__inner h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}

.cta-section__inner p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* === FOOTER === */
.footer {
  background: #0C0A08;
  border-top: 1px solid rgba(217, 200, 168, 0.1);
  padding: 40px 0;
}

.footer__inner { text-align: center; }
.footer__inner img { margin-bottom: 12px; }
.footer__tagline {
  font-style: italic;
  color: rgba(242, 232, 213, 0.5);
  font-size: 14px;
  margin-bottom: 8px;
}
.footer__copy {
  font-size: 13px;
  color: rgba(242, 232, 213, 0.3);
}

/* === SIGNUP PAGE === */
.signup-page {
  min-height: calc(100vh - 64px - 140px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: linear-gradient(160deg, #FAF6EE 0%, #F2E8D5 100%);
}

.signup-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.signup-card__header {
  text-align: center;
  margin-bottom: 36px;
}

.signup-card__header h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.signup-card__header p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #C4A882; }

/* Success state */
.signup-success { text-align: center; padding: 16px 0; }

.signup-success__icon {
  width: 64px;
  height: 64px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.signup-success h2 { font-size: 26px; margin-bottom: 12px; }
.signup-success p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .hamburger { display: flex; }

  .section { padding: 64px 0; }

  .steps { grid-template-columns: 1fr; gap: 32px; }
  .features__grid { grid-template-columns: 1fr; }
  .video-stage { width: 100% !important; margin-left: 0; margin-right: 0; }
  .app-window { width: 100% !important; }
  .requirements__grid { grid-template-columns: 1fr 1fr; }

  .hero { padding: 80px 0 64px; }
  .signup-page { min-height: calc(100vh - 72px - 140px); }
  .signup-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .requirements__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
}

/* Wide screens: let video scale with the viewport instead of being capped by the container */
@media (min-width: 1300px) {
  .video-stage {
    width: 80vw;
    margin-left: calc(50% - 40vw);
    margin-right: 0;
  }
}
