/* =====================================================================
   Sayyo V3 — Refined Hyperlocal (Toss × Linear sophistication)
   ===================================================================== */

:root {
  --white:  #FFFFFF;
  --ink:    #0A0A0A;
  --ink-2:  #3F3F46;
  --ink-3:  #71717A;
  --neutral:#F4F4F5;
  --line:   #F0F0F0;
  --line-2: #E4E4E7;
  --green:  #00A939;
  --green-d:#008A2E;
  --green-tint: #E6F7EC;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);

  --col-max: 1200px;
  --gutter:  clamp(20px, 4vw, 48px);

  --font-display: "Inter Display", "Inter", "Pretendard", system-ui, sans-serif;
  --font-display-ko: "Pretendard Variable", "Pretendard", "Inter", sans-serif;
  --font-body:    "Inter", "Pretendard", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--green); color: #fff; }

.v3-wrap { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter); }
.v3-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

.v3-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.v3-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}
[data-lang="ko"] .v3-display { font-family: var(--font-display-ko); letter-spacing: -0.04em; }

/* ─── Aurora signature device ─── */
.v3-aurora {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 169, 57, 0.18) 0%, rgba(0,169,57,0.10) 35%, transparent 70%);
  filter: blur(120px);
  animation: auroraDrift 12s var(--ease) infinite;
  z-index: 0;
}
@keyframes auroraDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -20px) scale(1.06); }
  66%  { transform: translate(-20px, 24px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ─── Nav ─── */
.v3-nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.v3-nav-inner {
  max-width: var(--col-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.v3-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.v3-mark .dot { color: var(--green); }
.v3-lang { display: inline-flex; gap: 4px; align-items: baseline; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.v3-lang button { appearance: none; background: none; border: 0; padding: 4px 6px; cursor: pointer; font: inherit; color: inherit; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.v3-lang button[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.v3-lang .sep { color: var(--line-2); padding: 0 2px; }

/* ─── Hero ─── */
.v3-hero {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}
.v3-hero .v3-aurora {
  width: 900px; height: 900px;
  top: -360px; right: -260px;
}
.v3-hero-inner { position: relative; z-index: 1; }
.v3-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.v3-hero-left h1 {
  margin: 16px 0 24px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
}
.v3-hero-sub {
  max-width: 52ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 36px;
}
.v3-hero-phone {
  position: relative;
  margin: 0 auto;
  max-width: 360px;
  filter: drop-shadow(0 30px 60px rgba(10,10,10,0.18));
  animation: floatY 4s var(--ease) infinite;
  will-change: transform;
}
.v3-hero-phone img { width: 100%; border-radius: 36px; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* word-by-word reveal */
.v3-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: wordIn 500ms var(--ease) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Download badges (shared) ─── */
.v3-badges { display: inline-flex; flex-wrap: wrap; gap: 12px; }
.v3-badge {
  position: relative;
  display: inline-flex; align-items: stretch;
  height: 60px; min-width: 220px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  transition: transform .25s var(--ease);
}
.v3-badge:hover { transform: translateY(-2px); }
.v3-badge .main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 18px; flex: 1; min-width: 0; line-height: 1.1;
}
.v3-badge .main .small { font-size: 10px; letter-spacing: 0.05em; opacity: 0.78; }
.v3-badge .main .big { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; margin-top: 2px; }
.v3-badge .qr {
  flex: 0 0 auto; width: 56px;
  padding: 8px 8px 8px 0;
  display: flex; align-items: center; justify-content: flex-end;
  background: transparent;
}
.v3-badge .qr img { width: 48px; height: 48px; display: block; object-fit: contain; }

/* ─── Three Ways ─── */
.v3-way {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.v3-way.is-green { background: var(--green); color: var(--white); }
.v3-way.is-green .v3-display, .v3-way.is-green .v3-eyebrow { color: var(--white); }
.v3-way.is-green .v3-eyebrow { color: rgba(255,255,255,0.78); }
.v3-way-inner { position: relative; z-index: 1; }
.v3-way-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
}
.v3-way h2 {
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  margin: 16px 0 20px;
  max-width: 14ch;
  font-weight: 700;
}
.v3-way-body { max-width: 50ch; font-size: 17px; line-height: 1.6; }
.v3-way.is-green .v3-way-body { color: rgba(255,255,255,0.92); }
.v3-way-phone { max-width: 340px; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(10,10,10,0.20)); }
.v3-way.is-green .v3-way-phone { filter: drop-shadow(0 30px 60px rgba(0,80,30,0.4)); }
.v3-way-phone img { width: 100%; border-radius: 32px; }
.v3-way.is-flip .v3-way-grid > div:first-child { order: 2; }

/* ─── Best Picks ─── */
.v3-picks { padding: 140px 0; }
.v3-picks-head { max-width: 640px; margin-bottom: 56px; }
.v3-picks-head h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05; font-weight: 700;
  margin: 14px 0 14px;
}
.v3-picks-head p { color: var(--ink-2); max-width: 56ch; }
.v3-picks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.v3-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.v3-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 24px 48px rgba(10,10,10,0.08), 0 8px 16px rgba(10,10,10,0.04);
}
.v3-card-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--neutral);
  overflow: hidden;
}
.v3-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.v3-card:hover .v3-card-photo img { transform: scale(1.03); }
.v3-card-body { padding: 18px 20px 20px; }
.v3-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v3-card-tag.is-offer { color: var(--green); font-weight: 600; }
.v3-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 8px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.v3-card-snip { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v3-card-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.v3-card-foot .price { color: var(--ink); font-weight: 500; }
.v3-card-foot .dot-sep { color: var(--line-2); }
.v3-card-foot .chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 4px 9px;
  background: var(--green-tint);
  color: var(--green-d);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.v3-card-foot .chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
}

/* ─── Trust panel ─── */
.v3-trust {
  position: relative;
  background: var(--neutral);
  padding: 120px 0;
  overflow: hidden;
}
.v3-trust .v3-aurora {
  width: 800px; height: 600px;
  top: -200px; left: 50%; transform: translateX(-50%);
}
.v3-trust-inner { position: relative; z-index: 1; }
.v3-trust-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.v3-trust-head h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05; font-weight: 700;
  margin: 14px 0 14px;
}
.v3-trust-head p { color: var(--ink-2); }
.v3-trust-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.v3-trust-cell {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.v3-trust-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
}
.v3-trust-icon .ph { font-size: 28px; }
.v3-trust-cell h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 0;
}
.v3-trust-cell p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0; }

/* ─── Inside the app ─── */
.v3-inside { padding: 140px 0; }
.v3-inside-head { max-width: 640px; margin-bottom: 64px; }
.v3-inside-head h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.05; font-weight: 700;
  margin: 14px 0 14px;
}
.v3-inside-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.v3-inside-cell { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 0; }
.v3-inside-phone { width: 100%; filter: drop-shadow(0 24px 48px rgba(10,10,10,0.14)); }
.v3-inside-phone img { width: 100%; border-radius: 28px; }
.v3-inside-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
}

/* ─── Categories (Round 8 spec carried over) ─── */
.v3-cats { padding: 140px 0; }
.v3-cats-head { max-width: 640px; margin-bottom: 64px; }
.v3-cats-head h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; font-weight: 700; margin: 14px 0 14px; }
.v3-cats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 64px; row-gap: 56px;
  max-width: 880px;
  margin: 0 auto;
}
.v3-cat {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  color: var(--ink); text-decoration: none;
}
.v3-cat .ph { font-size: 40px; color: var(--ink); }
.v3-cat-lbl { font-size: 15px; font-weight: 500; text-align: center; }

/* ─── Comparison (Group chats vs Sayyo) ─── */
.v3-comp { padding: 140px 0; }
.v3-comp-grid {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: 56px;
  align-items: start;
}
.v3-comp-divider { background: var(--line-2); width: 1px; align-self: stretch; }
.v3-comp-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 28px;
  font-weight: 500;
}
.v3-comp-col.is-them h4 { color: var(--ink); }
.v3-comp-col.is-us h4 { color: var(--green); }
.v3-comp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.v3-comp-list li {
  font-size: 18px;
  line-height: 1.5;
  padding-left: 26px;
  position: relative;
}
.v3-comp-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 14px; height: 1px;
  background: var(--line-2);
}
.v3-comp-col.is-them li { color: var(--ink-2); }
.v3-comp-col.is-us li { color: var(--ink); font-weight: 500; }
.v3-comp-col.is-us li::before { background: var(--green); height: 2px; top: 11px; }

/* ─── Final CTA ─── */
.v3-final {
  position: relative;
  background: var(--green);
  color: var(--white);
  padding: 160px 0;
  text-align: center;
  overflow: hidden;
}
.v3-final .v3-aurora {
  width: 900px; height: 900px;
  top: -280px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.10) 35%, transparent 70%);
  filter: blur(140px);
}
.v3-final-inner { position: relative; z-index: 1; }
.v3-final h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 14px auto 40px;
  max-width: 18ch;
}
[data-lang="ko"] .v3-final h2 { font-family: var(--font-display-ko); letter-spacing: -0.045em; }
.v3-final-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-bottom: 40px; }
.v3-final .v3-badges { justify-content: center; }
.v3-final .v3-badge { background: var(--ink); }

/* ─── Footer ─── */
.v3-foot {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.v3-foot-grid {
  display: grid; grid-template-columns: 1.3fr 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.v3-foot-brand .v3-mark { font-size: 24px; }
.v3-foot-tag { color: var(--ink-3); font-size: 14px; margin-top: 8px; max-width: 28ch; }
.v3-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.v3-foot-cols h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.v3-foot-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.v3-foot-cols a { font-size: 14px; color: var(--ink); }
.v3-foot-cols a:hover { color: var(--green); }
.v3-foot-right { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.v3-foot-right .v3-lang { gap: 4px; }
.v3-foot-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3);
  display: flex; justify-content: space-between;
}

/* ─── Mobile sticky CTA bar ─── */
.v3-mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  z-index: 60;
  gap: 10px;
}
.v3-mobile-bar a {
  flex: 1; text-align: center;
  padding: 12px 6px;
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 500;
  background: var(--neutral); color: var(--ink);
}
.v3-mobile-bar a.is-green { background: var(--green); color: var(--white); }

/* ─── Responsive ─── */
@media (max-width: 1023px) {
  .v3-hero { padding: 80px 0 96px; }
  .v3-hero-grid, .v3-way-grid { grid-template-columns: 1fr; gap: 40px; }
  .v3-hero-phone, .v3-way-phone { max-width: 280px; }
  .v3-picks-grid, .v3-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-inside-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-cats-grid { column-gap: 32px; }
  .v3-foot-grid { grid-template-columns: 1fr; }
  .v3-foot-right { align-items: flex-start; }
  .v3-way.is-flip .v3-way-grid > div:first-child { order: 0; }
}
@media (max-width: 640px) {
  .v3-hero { padding: 64px 0 80px; }
  .v3-way { padding: 80px 0; }
  .v3-picks, .v3-trust, .v3-inside, .v3-cats, .v3-comp { padding: 80px 0; }
  .v3-final { padding: 96px 0; }
  .v3-picks-grid, .v3-trust-grid, .v3-inside-row { grid-template-columns: 1fr; }
  .v3-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 36px; }
  .v3-comp-grid { grid-template-columns: 1fr; gap: 32px; }
  .v3-comp-divider { display: none; }
  .v3-mobile-bar { display: flex; }
  body { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .v3-aurora { animation: none; }
  .v3-hero-phone { animation: none; }
  .v3-word { opacity: 1; transform: none; animation: none; }
  .v3-card, .v3-badge { transition: none; }
}
