/* ========================================
   Set — Landing Page Styles
   ======================================== */

/* ----------------------------------------
   Design Tokens
   ---------------------------------------- */
:root {
  --color-bg: #FAFAFA;
  --color-bg-alt: #FFFFFF;
  --color-surface: #F0F0F0;
  --color-text: #1A1A1A;
  --color-text-secondary: #555555;
  --color-text-muted: #999999;
  --color-border: #E8E8E8;
  --color-accent: #1A1A1A;
  --color-accent-hover: #333333;

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --text-hero: clamp(3rem, 7vw, 5.5rem);
  --text-h2: clamp(2rem, 4vw, 3rem);
  --text-h3: clamp(1.2rem, 1.8vw, 1.4rem);
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --max-width: 1120px;
  --max-width-narrow: 700px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px -15px rgba(0,0,0,0.15);
  --shadow-phone: 0 25px 50px -12px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
}

p {
  max-width: 62ch;
}

/* ----------------------------------------
   Layout
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-5xl) 0;
}

/* ----------------------------------------
   Header
   ---------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(250, 250, 250, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header--solid {
  background-color: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
}

.site-header__logo img {
  height: 34px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.site-header__nav a {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.site-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.site-header__nav a:hover {
  color: var(--color-text);
}

.site-header__nav a:hover::after {
  width: 100%;
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5xl) var(--space-lg) var(--space-4xl);
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, var(--color-bg) 70%);
}

.hero__content {
  max-width: 780px;
}

.hero__logo {
  width: 88px;
  height: auto;
  margin: 0 auto var(--space-2xl);
  border-radius: var(--radius-lg);
}

.hero__title {
  font-size: var(--text-hero);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero__title .dot {
  color: var(--color-text-muted);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 48ch;
  margin: 0 auto var(--space-2xl);
  line-height: 1.65;
}

.hero__note {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  font-weight: 400;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* App Store Button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px var(--space-xl);
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn-appstore:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-appstore:active {
  transform: translateY(0);
}

.btn-appstore svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  animation: float 3s ease-in-out infinite;
}

.hero__scroll .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ----------------------------------------
   Phone Showcase
   ---------------------------------------- */
.showcase {
  padding: var(--space-4xl) 0 var(--space-5xl);
  background: var(--color-bg-alt);
}

.showcase__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.showcase__header h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

.showcase__header p {
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 44ch;
  margin: 0 auto;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.showcase__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

/* iPhone Device Frame */
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1290 / 2796;
  border-radius: 42px;
  padding: 5px;
  background: #1A1A1A;
  box-shadow: var(--shadow-phone);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.phone-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 60px -15px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #F5F5F5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Island */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 20px;
  background: #1A1A1A;
  border-radius: 11px;
  z-index: 2;
}

.showcase__caption {
  text-align: center;
}

.showcase__caption h3 {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: 2px;
}

.showcase__caption p {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  font-weight: 400;
  margin: 0 auto;
}

/* ----------------------------------------
   Features
   ---------------------------------------- */
.features {
  padding: var(--space-5xl) 0;
  background: var(--color-bg);
}

.features__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.features__header h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

.features__header p {
  color: var(--color-text-secondary);
  font-weight: 300;
  max-width: 44ch;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-2xl) var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.feature-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-text);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.65;
}

/* ----------------------------------------
   How It Works
   ---------------------------------------- */
.how-it-works {
  padding: var(--space-5xl) 0;
  background: var(--color-bg-alt);
}

.how-it-works__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.how-it-works__header h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

.how-it-works__header p {
  color: var(--color-text-secondary);
  font-weight: 300;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 1px;
  background: var(--color-border);
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-text);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-sm);
}

.step p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  max-width: 26ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----------------------------------------
   CTA Section
   ---------------------------------------- */
.cta-section {
  padding: var(--space-5xl) 0;
  text-align: center;
  background: var(--color-bg);
}

.cta-section h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-md);
}

.cta-section .cta-subtitle {
  color: var(--color-text-secondary);
  font-weight: 300;
  margin: 0 auto var(--space-2xl);
  max-width: 44ch;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.site-footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer__left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-footer__logo img {
  height: 24px;
  width: auto;
  opacity: 0.5;
}

.site-footer__copy {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.site-footer__links {
  display: flex;
  gap: var(--space-xl);
}

.site-footer__links a {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--color-text);
}

/* ----------------------------------------
   Content Pages
   ---------------------------------------- */
.page-content {
  padding-top: calc(var(--space-5xl) + 60px);
  padding-bottom: var(--space-5xl);
  min-height: 100vh;
}

.page-content h1 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.page-meta {
  color: var(--color-text-muted);
  font-size: var(--text-small);
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.page-content h2 {
  font-size: var(--text-h3);
  font-family: var(--font-body);
  font-weight: 600;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.page-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.page-content ul {
  margin-bottom: var(--space-md);
}

.page-content ul li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-lg);
}

.page-content ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-text-muted);
}

.page-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.page-content a:hover {
  text-decoration-color: var(--color-text);
}

.contact-card {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--color-text);
  margin: var(--space-sm) 0 var(--space-md);
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.faq-item {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}

.faq-item h3 {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.faq-item p {
  color: var(--color-text-secondary);
  font-size: var(--text-small);
}

/* ----------------------------------------
   Scroll Reveal Animations
   ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
  .showcase__grid {
    gap: var(--space-lg);
  }

  .phone-frame {
    border-radius: 36px;
    padding: 4px;
  }

  .phone-screen {
    border-radius: 32px;
  }

  .phone-frame::after {
    width: 56px;
    height: 17px;
    top: 11px;
    border-radius: 9px;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--space-4xl) 0;
  }

  .site-header__nav {
    gap: var(--space-md);
  }

  .site-header__nav a {
    font-size: var(--text-caption);
  }

  .hero {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-3xl);
    min-height: auto;
  }

  .hero__scroll {
    display: none;
  }

  /* Phone showcase: horizontal scroll */
  .showcase__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
    scrollbar-width: none;
  }

  .showcase__grid::-webkit-scrollbar {
    display: none;
  }

  .showcase__item {
    flex: 0 0 190px;
    scroll-snap-align: center;
  }

  .phone-frame {
    border-radius: 30px;
    padding: 4px;
  }

  .phone-screen {
    border-radius: 26px;
  }

  .phone-frame::after {
    width: 44px;
    height: 14px;
    top: 8px;
    border-radius: 7px;
  }

  /* Features: stack */
  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Steps: stack */
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps::before {
    display: none;
  }

  /* Footer: stack */
  .site-footer .container {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .site-footer__left {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: -0.04em;
  }

  .btn-appstore {
    padding: 12px var(--space-lg);
    font-size: var(--text-caption);
  }

  .showcase__item {
    flex: 0 0 160px;
  }
}
