/* =============================================================
   coach — service suite homepage
   Apple-inspired clean white base. Korean (Pretendard).
   Structure: design tokens → base → layout → components → sections
   ============================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* surfaces */
  --bg:        #ffffff;
  --bg-soft:   #f5f5f7;   /* apple gray section bg */
  --bg-dark:   #111113;
  --line:      #d2d2d7;   /* hairline */

  /* ink */
  --ink:       #1d1d1f;
  --ink-soft:  #6e6e73;
  --ink-faint: #86868b;
  --on-dark:   #f5f5f7;
  --on-dark-soft: #a1a1a6;

  /* brand / actions — fresh coral (EAST AI) */
  --accent:        oklch(0.62 0.18 32);
  --accent-hover:  oklch(0.56 0.18 32);

  /* per-service hues — fresh, distinguishable, same family as app theme */
  --svc-qr:    oklch(0.62 0.15 228);   /* sky   */
  --svc-vote:  oklch(0.62 0.13 165);   /* teal  */
  --svc-video: oklch(0.58 0.15 340);   /* berry */
  --svc-ai:    oklch(0.72 0.14 80);    /* gold  */
  --svc-qr-soft:    oklch(0.62 0.15 228 / 0.10);
  --svc-vote-soft:  oklch(0.62 0.13 165 / 0.10);
  --svc-video-soft: oklch(0.58 0.15 340 / 0.10);
  --svc-ai-soft:    oklch(0.72 0.14 80  / 0.10);

  /* radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 980px;

  /* type scale (apple-like) */
  --t-hero:    clamp(48px, 6.4vw, 96px);
  --t-display: clamp(40px, 4.6vw, 64px);
  --t-title:   clamp(30px, 3.0vw, 44px);
  --t-lead:    clamp(20px, 1.7vw, 26px);
  --t-body:    19px;
  --t-small:   15px;
  --t-eyebrow: 13px;

  /* layout */
  --maxw:      1080px;
  --maxw-wide: 1280px;
  --nav-h:     52px;
  --sp-section: clamp(96px, 11vw, 168px);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
          system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Space Grotesk", "Pretendard Variable", "Pretendard", -apple-system, system-ui, sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: color-mix(in oklab, var(--accent) 22%, transparent); }

/* ---------- 3. Layout helpers ---------- */
.wrap   { width: 100%; max-width: var(--maxw);      margin-inline: auto; padding-inline: 24px; }
.wrap-w { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--display);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding-inline: 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
}
.btn--ghost:hover { --btn-bg: color-mix(in oklab, var(--accent) 8%, transparent); transform: translateY(-1px); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #000; }
.btn--sm { height: 36px; padding-inline: 16px; font-size: 14px; }

.textlink {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.textlink::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .2s var(--ease); }
.textlink:hover::after { transform: translateX(3px); }

/* ---------- 5. Header / nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}
.nav__inner {
  height: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand__mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--svc-qr), var(--svc-video));
}
img.brand__mark { background: none; object-fit: contain; }
.nav__links {
  display: flex;
  gap: 30px;
  margin: 0 auto 0 8px;
  list-style: none;
  padding: 0;
}
.nav__links a {
  font-size: var(--t-small);
  color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__user {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 46vw;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav__user::before { content: "👤"; }
.nav__toggle { display: none; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(72px, 9vw, 130px) 0 clamp(60px, 7vw, 96px);
  overflow: hidden;
}
.hero__eyebrow { color: var(--accent); margin-bottom: 20px; }
.hero h1 {
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 16ch;
  margin-inline: auto;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--svc-qr), var(--svc-video) 55%, var(--svc-ai));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  font-size: var(--t-lead);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 24px auto 0;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* floating abstract shapes behind hero */
.hero__orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: .30; }
.orb--1 { width: 380px; height: 380px; left: -90px;  top: -50px;  background: var(--svc-qr); }
.orb--2 { width: 320px; height: 320px; right: -70px; top: 20px;   background: var(--svc-ai); }
.orb--3 { width: 280px; height: 280px; left: 40%;    bottom: -140px; background: var(--svc-video); }

/* ---------- 7. Bento overview ---------- */
.bento { padding-block: clamp(40px, 5vw, 72px); }
.bento__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  padding: 34px 34px 0;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 18px 50px -20px color-mix(in oklab, var(--ink) 30%, transparent); }
.tile__eyebrow { color: var(--tile-accent); margin-bottom: 10px; }
.tile h3 { font-size: 28px; letter-spacing: -0.02em; font-weight: 600; }
.tile p { font-size: var(--t-small); color: var(--ink-soft); margin-top: 8px; max-width: 30ch; }
.tile__viz { margin-top: auto; align-self: center; padding-top: 24px; }

/* ---------- 8. Feature section (alternating rows) ---------- */
.feature { padding-block: var(--sp-section); }
.feature:nth-of-type(even) { background: var(--bg-soft); }
.feature__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.feature--rev .feature__row { direction: rtl; }
.feature--rev .feature__copy { direction: ltr; }
.feature__copy { max-width: 30rem; }
.feature__eyebrow { color: var(--svc); margin-bottom: 16px; }
.feature h2 {
  font-size: var(--t-title);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.feature__lead { font-size: var(--t-lead); color: var(--ink-soft); margin-top: 18px; text-wrap: pretty; }
.feature__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.feature__list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--t-small); color: var(--ink); }
.feature__list .dot {
  flex: none; margin-top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in oklab, var(--svc) 16%, transparent);
  color: var(--svc);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.feature__more { margin-top: 30px; }

/* ---------- 9. Abstract visuals (simple shapes only) ---------- */
.viz {
  --c: var(--svc, var(--accent));
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 80% 0%, color-mix(in oklab, var(--c) 18%, #fff) 0%, var(--bg) 60%);
  border: 1px solid color-mix(in oklab, var(--ink) 7%, transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.viz--card { box-shadow: 0 30px 60px -34px color-mix(in oklab, var(--c) 60%, transparent); }
.viz--mini { aspect-ratio: 1 / 1; width: 150px; border: 0; background: transparent; }

/* QR motif: grid of squares */
.qrgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; width: 56%; }
.qrgrid i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in oklab, var(--c) 86%, #000 0%); opacity: .9; }
.qrgrid i.off { background: color-mix(in oklab, var(--c) 12%, transparent); }
.viz--mini .qrgrid { width: 100%; gap: 4px; }

/* vote motif: stacked bars */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 52%; }
.bars span { width: 34px; border-radius: 8px 8px 0 0; background: linear-gradient(var(--c), color-mix(in oklab, var(--c) 35%, #fff)); }
.viz--mini .bars span { width: 18px; }

/* video motif: overlapping tiles */
.tiles { position: relative; width: 62%; aspect-ratio: 4/3; }
.tiles span { position: absolute; border-radius: 14px; border: 2px solid #fff;
  background: linear-gradient(135deg, var(--c), color-mix(in oklab, var(--c) 40%, #fff)); box-shadow: 0 10px 24px -12px color-mix(in oklab, var(--c) 70%, transparent); }
.tiles span:nth-child(1) { inset: 0 32% 30% 0; }
.tiles span:nth-child(2) { inset: 22% 0 0 38%; opacity: .92; }
.tiles span:nth-child(3) { width: 28%; aspect-ratio: 1; right: 6%; bottom: 8%; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 6px var(--c); }
.viz--mini .tiles { width: 100%; }

/* AI motif: concentric rings + waveform */
.rings { position: relative; width: 60%; aspect-ratio: 1; display: grid; place-items: center; }
.rings .ring { position: absolute; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--c) 50%, transparent); }
.rings .ring:nth-child(1) { inset: 0; }
.rings .ring:nth-child(2) { inset: 16%; }
.rings .ring:nth-child(3) { inset: 32%; }
.rings .core { width: 26%; aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 8px color-mix(in oklab, var(--c) 18%, transparent); }
.wave { position: absolute; bottom: 14%; display: flex; align-items: center; gap: 5px; height: 22%; }
.wave span { width: 5px; border-radius: 4px; background: var(--c); }

/* ---------- 10. CTA band ---------- */
.cta {
  background: linear-gradient(180deg, #fdfaf4 0%, #f6f0e6 100%);
  color: var(--ink);
  text-align: center;
  padding-block: clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.cta h2 { font-size: var(--t-display); letter-spacing: -0.03em; font-weight: 700; max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--ink-soft); font-size: var(--t-lead); margin: 20px auto 0; max-width: 38ch; }
.cta__actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta__glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; left: 50%; top: 100%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 45%, transparent), transparent 60%); filter: blur(30px); }

/* ---------- 11. Footer ---------- */
.footer { background: var(--bg-soft); color: var(--ink-soft); font-size: var(--t-small); padding-block: 56px 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer h4 { font-size: var(--t-small); color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--ink); }
.footer__brand .brand { font-size: 18px; color: var(--ink); }
.footer__brand p { margin-top: 12px; max-width: 28ch; line-height: 1.5; }
.footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-faint); }

/* ---------- 12. Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 13.5 Brand system ---------- */
.brandsys { --bx-light: oklch(0.78 0.10 230); --bx-deep: oklch(0.38 0.15 258); }

.brandsys__board {
  background: var(--bg-dark);
  color: var(--on-dark);
  text-align: center;
  padding-block: clamp(72px, 9vw, 120px) clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.brandsys__eyebrow { color: var(--bx-light); margin-bottom: 18px; }
.brandsys__title { font-size: var(--t-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }

.brandsys__stage { position: relative; width: 220px; aspect-ratio: 1; margin: 56px auto 0; }
.brandsys__grid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.brandsys__grid line {
  stroke: color-mix(in oklab, var(--bx-light) 55%, transparent);
  stroke-width: 1;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.brandsys__stage.in .brandsys__grid line { stroke-dashoffset: 0; }
.brandsys__mark {
  position: absolute; inset: 20%;
  border-radius: var(--r-lg);
  background: linear-gradient(155deg, var(--bx-light), var(--bx-deep));
  box-shadow: 0 30px 70px -30px color-mix(in oklab, var(--bx-deep) 70%, transparent);
  opacity: 0; transform: scale(.7);
  transition: opacity .7s var(--ease) .5s, transform .7s var(--ease) .5s;
}
.brandsys__stage.in .brandsys__mark { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .brandsys__grid line { stroke-dashoffset: 0; transition: none; }
  .brandsys__mark { opacity: 1; transform: none; transition: none; }
}

.brandsys__sheet { background: var(--bg); padding-block: clamp(64px, 7vw, 96px); }
.brandsys__cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.bxcard {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.bxcard .eyebrow { color: var(--bx-deep); }
.bxcard__desc { font-size: var(--t-small); color: var(--ink-soft); }
.bxcard__viz { height: 56px; display: flex; align-items: center; gap: 8px; }

.bx-chip { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--bx-light), var(--bx-deep)); }
.bx-chip--sm { width: 24px; height: 24px; border-radius: 8px; }

.bxcard__viz--motif {
  width: 100%; border-radius: 10px; padding-inline: 10px;
  background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--bx-deep) 14%, transparent) 0 2px, transparent 2px 14px);
}
.bx-word { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.01em; color: var(--ink); }

.bx-icon { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--bx-light), var(--bx-deep)); }
.bx-icon:nth-child(2) { border-radius: 50%; }
.bx-icon:nth-child(3) { transform: rotate(45deg); }
.bx-icon:nth-child(4) { opacity: .45; }

.bx-btn { height: 32px; width: 64px; border-radius: 999px; background: linear-gradient(135deg, var(--bx-light), var(--bx-deep)); }
.bx-pill { height: 32px; width: 64px; border-radius: 999px; border: 1px solid var(--bx-deep); }

@media (max-width: 860px) {
  .brandsys__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .brandsys__cards { grid-template-columns: 1fr; }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-grid; place-items: center; margin-left: auto;
    width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px;
  }
  .nav__toggle:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
  .nav__cta .btn { display: none; }

  .bento__grid { grid-template-columns: 1fr; }
  .feature__row { grid-template-columns: 1fr; gap: 36px; }
  .feature--rev .feature__row { direction: ltr; }
  .feature__visual { order: -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* mobile drawer */
.drawer { position: fixed; inset: var(--nav-h) 0 0; z-index: 90; background: var(--bg);
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.drawer.open { opacity: 1; transform: none; pointer-events: auto; }
.drawer ul { list-style: none; margin: 0; padding: 18px 24px; display: grid; gap: 4px; }
.drawer a { display: block; padding: 16px 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line); }
.drawer .btn { margin: 18px 24px; width: calc(100% - 48px); justify-content: center; }
