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

:root {
  --c-bg: #faf9f7;
  --c-surface: #ffffff;
  --c-text: #1a1a1a;
  --c-muted: #6b6b6b;
  --c-accent: #e8630a;
  --c-accent-light: #fff3e8;
  --c-ice: #0a84ff;
  --c-ice-light: #e8f4ff;
  --c-border: #e8e6e3;
  --font: "Avenir Next", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --max-w: 960px;
  --section-py: clamp(64px, 10vh, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --c-bg: #111110;
    --c-surface: #1c1c1b;
    --c-text: #f0efe9;
    --c-muted: #999;
    --c-accent-light: #2a1e10;
    --c-ice-light: #0e1e2e;
    --c-border: #2a2a28;
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--c-muted); }
.accent { color: var(--c-accent); }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
}

.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-py) 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 30% 20%, rgba(232, 99, 10, 0.08), transparent),
    radial-gradient(ellipse 500px 350px at 70% 80%, rgba(10, 132, 255, 0.06), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--c-accent-light);
  color: var(--c-accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--c-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: var(--c-bg);
}
.hero-cta svg { width: 20px; height: 20px; }

.hero-cta-badge {
  display: inline-block;
  cursor: pointer;
}
.hero-cta-badge img {
  display: block;
  pointer-events: none;
}

/* ── Hero Showcase (phone + feature cards side by side) ── */
.hero-showcase {
  margin-top: 48px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  justify-content: center;
}

.hero-showcase .phone-frame {
  flex-shrink: 0;
  height: auto;
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
}

.hero-feature-card {
  display: flex;
  align-items: stretch;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.5;
  width: 100%;
  font: inherit;
  color: inherit;
}

.hero-feature-card.active {
  border-color: var(--c-accent);
  opacity: 1;
}

.hero-feature-card:hover {
  opacity: 0.8;
}

.hero-feature-card.active:hover {
  opacity: 1;
}

/* Slideshow phone transition */
.showcase-phone {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 9 / 19.5;
}

.showcase-phone .phone-screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 6px solid #3a3a3a;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.showcase-phone .phone-screenshot.active {
  opacity: 1;
}

.hero-feature-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.hero-feature-card p {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 720px) {
  .hero-showcase {
    flex-direction: column;
    gap: 32px;
  }
  .hero-features {
    max-width: 100%;
  }
}

/* ── Section ── */
section {
  padding: var(--section-py) 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 520px;
}

/* ── Feature Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-icon.hot { background: var(--c-accent-light); }
.feature-icon.cool { background: var(--c-ice-light); }
.feature-icon.neutral { background: var(--c-border); }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── Showcase (phone + text side by side) ── */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

.showcase-phone {
  display: flex;
  justify-content: center;
}
.showcase-phone .phone-frame {
  width: min(260px, 50vw);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
}

.showcase-text h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}
.showcase-text p {
  font-size: 1rem;
  color: var(--c-muted);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .showcase, .showcase.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
    text-align: center;
  }
}

/* ── Method Section ── */
.method-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pour-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pour-bar {
  width: 48px;
  border-radius: 8px;
  background: var(--c-accent);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease, opacity 0.4s ease;
}
.pour-bar.ice { background: var(--c-ice); }

.method-visual.visible .pour-bar {
  opacity: 1;
  transform: scaleY(1);
}

.pour-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-muted);
}

.method-divider {
  width: 2px;
  height: 100px;
  background: var(--c-border);
  border-radius: 1px;
  margin: 0 12px;
  align-self: flex-end;
  margin-bottom: 24px;
}

.method-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.method-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}
.method-legend .leg-taste::before { background: var(--c-accent); opacity: 0.6; }
.method-legend .leg-strength::before { background: var(--c-accent); }

/* ── Footer ── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--c-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-muted);
}
footer a { color: var(--c-muted); text-decoration: underline; }
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

/* ── Language Switcher ── */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  gap: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.lang-switch a {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  transition: background 0.2s, color 0.2s;
}
.lang-switch a.active {
  background: var(--c-text);
  color: var(--c-bg);
}
.lang-switch a:hover:not(.active) {
  background: var(--c-border);
}

/* ── Screenshot placeholder ── */
.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
