:root {
  --ink: #0f172a;
  --ink-soft: #1e293b;
  --bg: #ffffff;
  --bg-soft: #f3faf7;
  --muted: #475569;
  --lime: #059669;
  --lime-bright: #10b981;
  --amber: #d97706;
  --rose: #e11d48;
  --border: #dcece5;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Inter", "Noto Sans KR", "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* Option 1: Clean Clinical Light Sticky Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.14);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 900; font-size: 1.28rem; letter-spacing: -0.025em;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link {
  color: #334155; text-decoration: none; font-size: 0.9rem; font-weight: 700;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--lime); }
@media (max-width: 720px) {
  .nav-link { display: none; }
}

.lang-switch {
  display: flex; background: #eef6f2; border: 1px solid #d5ebe1;
  border-radius: 999px; padding: 3px;
}
.lang-switch button {
  border: none; background: transparent; color: #64748b;
  padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; cursor: pointer;
}
.lang-switch button.active {
  background: #ffffff; color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 800; border-radius: 999px;
  padding: 13px 26px; font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(5, 150, 105, 0.28);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost {
  background: #ffffff; color: var(--ink);
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* Option 1: Clean Clinical Light Hero */
.hero {
  background:
    radial-gradient(circle at 78% 32%, rgba(16, 185, 129, 0.16), transparent 52%),
    radial-gradient(circle at 18% 80%, rgba(52, 211, 153, 0.10), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f1fbf7 100%);
  color: var(--ink);
  padding: 64px 0 88px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #e6f9f0; border: 1px solid #a7f3d0;
  color: #047857; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; margin-bottom: 20px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero h1 {
  font-size: clamp(2.35rem, 4.9vw, 3.85rem);
  font-weight: 900; line-height: 1.06; letter-spacing: -0.038em;
  color: #0f172a;
}
.hero h1 span {
  background: linear-gradient(90deg, #059669, #10b981);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead {
  margin-top: 20px; font-size: 1.1rem; color: #334155;
  max-width: 530px; line-height: 1.65; font-weight: 500;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-metrics { display: flex; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.hero-metrics div { border-left: 3px solid #10b981; padding-left: 12px; }
.hero-metrics strong { display: block; font-size: 1.2rem; font-weight: 900; color: #0f172a; }
.hero-metrics span { font-size: 0.78rem; color: #64748b; font-weight: 600; }

/* Right-Side iPhone Frame + Floating Frosted Glass Chips */
.stage-wrap {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}
.floating-chip {
  position: absolute;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}
.floating-chip .chip-icon {
  width: 24px; height: 24px; border-radius: 999px;
  background: #d1fae5; color: #047857;
  display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 900;
}
.chip-top { top: 92px; left: -112px; }
.chip-bottom { bottom: 136px; left: -132px; }
@media (max-width: 1080px) {
  .chip-top, .chip-bottom { display: none; }
}

.stage {
  background: #ffffff;
  border: 8px solid #1e293b;
  border-radius: 44px;
  padding: 16px 18px 22px;
  position: relative;
  box-shadow: 0 32px 72px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.phone-notch {
  width: 96px; height: 22px; border-radius: 999px;
  background: #0f172a; margin: 0 auto 14px;
}
.stage-tabs { display: flex; gap: 6px; margin-bottom: 12px; background: #f1f5f9; padding: 4px; border-radius: 14px; }
.stage-tab {
  flex: 1; border: none; background: transparent;
  color: #64748b; border-radius: 10px; padding: 8px 8px; font-size: 0.75rem; font-weight: 800; cursor: pointer;
  transition: all 0.2s ease;
}
.stage-tab.active {
  background: #ffffff; color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.scanner-viewport {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 14px;
}
.hero-meal-photo {
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 12px;
  border: 1px solid #e2e8f0;
}
.scan-beam {
  position: absolute;
  left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.35);
  animation: scanMove 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}
@keyframes scanMove {
  0%, 100% { top: 8%; opacity: 0.25; }
  50% { top: 88%; opacity: 0.85; }
}

.scene-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scene-badge {
  width: 54px; height: 54px; border-radius: 999px;
  display: grid; place-items: center; font-weight: 900; font-size: 1.25rem;
  background: #ffffff;
  border: 4px solid #10b981;
  color: #0f172a;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.scene-badge.alert { border-color: #10b981; color: #0f172a; }
.scene-badge.safe { border-color: #10b981; color: #047857; }
.scene-badge.caution { border-color: #f59e0b; color: #b45309; }

/* Animated Glucose Curve SVG (Light Clinical Card) */
.curve-box {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
}
.curve-label { display: flex; justify-content: space-between; font-size: 0.73rem; color: #475569; font-weight: 800; margin-bottom: 6px; }
.curve-path {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawCurve 1.6s ease forwards;
}
@keyframes drawCurve { to { stroke-dashoffset: 0; } }

.stage-callout {
  margin-top: 10px;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.81rem;
  line-height: 1.48;
}
.stage-callout.danger {
  background: #fff1f2; border: 1px solid #fecdd3; color: #881337;
}
.stage-callout.good {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #064e3b;
}

/* White & Soft Mint Clean Sections */
section.block { padding: 84px 0; }
section.block.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 900; letter-spacing: -0.03em; color: #0f172a; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(5, 150, 105, 0.09); }
.card-num { font-size: 0.78rem; font-weight: 900; color: var(--lime); letter-spacing: 0.08em; margin-bottom: 10px; }
.card h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 8px; color: #0f172a; }
.card p { font-size: 0.92rem; color: var(--muted); }

/* Comparison Strip (Clinical Mint & Emerald Card) */
.compare-box {
  background: #ffffff; color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  border-radius: 28px; padding: 32px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.compare-col { padding: 20px; border-radius: 20px; background: #f8fafc; border: 1px solid #e2e8f0; }
.compare-col.win {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  border-color: #059669;
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.22);
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; max-width: 780px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.price-card.pro {
  border: 2px solid #059669;
  background: linear-gradient(180deg, #f0fdf8 0%, #ffffff 36%);
  box-shadow: 0 22px 50px rgba(5, 150, 105, 0.12);
}
.price-num { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.03em; color: #0f172a; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; color: #334155; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

footer { padding: 48px 0; text-align: center; color: var(--muted); font-size: 0.84rem; border-top: 1px solid var(--border); background: #f9fdfb; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--lime); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 60px; }
}
