/* TimeAttack Labs — site styles. System fonts only, no external requests. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --panel: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --link: #0066cc;
  --btn-bg: #1d1d1f;
  --btn-text: #ffffff;
  --header: rgba(255, 255, 255, 0.78);
  --shot-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.28);
  --radius-shot: 22px;
  --container: 1120px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111113;
    --panel: #161618;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #2997ff;
    --link: #2997ff;
    --btn-bg: #f5f5f7;
    --btn-text: #1d1d1f;
    --header: rgba(0, 0, 0, 0.72);
    --shot-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.53;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html[data-lang="ko"] .en-only { display: none !important; }
html:not([data-lang="ko"]) .ko-only { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0; }
ul, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: 8px;
  background: var(--btn-bg); color: var(--btn-text);
  font-size: 14px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: var(--header);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 28px;
  max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
  height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 26px; height: 26px; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-btn {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--text-2); font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px;
}
.lang-btn:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-dark { background: var(--btn-bg); color: var(--btn-text); }
.btn-dark:hover { opacity: 0.86; }
.btn-plain { color: var(--text); }
.btn-plain:hover { background: var(--line); }

/* ---------- Type ---------- */
h1 {
  font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
html[data-lang="ko"] h1 { line-height: 1.18; letter-spacing: -0.03em; }
h2 {
  font-size: clamp(2rem, 1.4rem + 2.1vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
html[data-lang="ko"] h2 { line-height: 1.22; letter-spacing: -0.025em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--text-2); letter-spacing: -0.015em; }
.overline { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 10vw, 150px) 0; }
.band-alt { background: var(--bg-alt); }

.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(80px, 9vw, 130px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 34em; }
.status { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 20px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; flex: none; }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 36px; }
/* Apple badge: clear space of at least 1/4 of the badge height on every side */
.badge-link { display: inline-block; padding: 11px; margin: -11px; line-height: 0; }
.badge-link img { height: 44px; width: auto; }
.text-link { font-size: 17px; }

.hero-meta { margin-top: 32px; display: grid; gap: 6px; font-size: 14px; color: var(--text-3); max-width: 36em; }

/* ---------- Media ---------- */
.shot img { width: 100%; border-radius: var(--radius-shot); box-shadow: var(--shot-shadow); background: var(--bg-alt); }
figure { margin: 0; }
figcaption { margin-top: 16px; font-size: 13px; line-height: 1.45; color: var(--text-3); text-align: center; }
.design-note { display: block; margin-top: 4px; }
.hero-media { max-width: 470px; justify-self: end; width: 100%; }
.split-media { display: flex; justify-content: center; }
.split-media > figure { max-width: 440px; width: 100%; }
.how-media { margin-top: 48px; max-width: 420px; }
.how-media figcaption { text-align: left; }

/* ---------- Split rows ---------- */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.split-row.reverse > :first-child { order: 2; }
.split-row h2 { margin-bottom: 20px; }

.points { margin-top: 40px; border-bottom: 1px solid var(--line); }
.points li { padding: 20px 0; border-top: 1px solid var(--line); }
.points strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.points p { margin-top: 4px; color: var(--text-2); font-size: 16px; line-height: 1.55; }
.fine { margin-top: 20px; font-size: 14px; color: var(--text-3); }

/* ---------- AI data ---------- */
.data-panel {
  margin-top: clamp(72px, 8vw, 112px);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 28px;
  background: var(--panel);
}
.band-alt .data-panel { background: var(--bg); }
.data-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 64px; align-items: end; margin-bottom: 36px; }
.data-head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.025em; }
.data-head p { color: var(--text-2); }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.data-grid > div { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.data-grid dt { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.data-grid dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.data-notes { margin-top: 28px; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 62em; }
.data-notes .strong { color: var(--text); font-weight: 600; }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.how-intro h2 { margin-bottom: 20px; }
.spec-group + .spec-group { margin-top: 44px; }
.spec-group h3 { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: -0.01em; }
.spec li { display: flex; justify-content: space-between; gap: 24px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.spec li:last-child { border-bottom: 1px solid var(--line); }
.spec .k { flex: 1 1 auto; }
.spec .v { flex: 0 1 42%; text-align: right; color: var(--text-2); font-size: 15px; }
.spec-group.planned .k, .spec-group.planned .v { color: var(--text-3); }

/* ---------- Coming next ---------- */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 18px; }
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.next-grid li { padding-top: 22px; border-top: 1px solid var(--line); }
.next-grid .label { font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
.next-grid strong { display: block; font-size: 19px; line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 8px; }
.next-grid p { color: var(--text-2); font-size: 16px; }

/* ---------- Company ---------- */
.company-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.company-grid h2 { margin-bottom: 20px; }
.company-text p + p { margin-top: 10px; }
.company-text p { color: var(--text-2); }
.facts { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.facts dt { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.5; }
.facts .wide { grid-column: 1 / -1; }
.legal li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 17px; }
.legal li:last-child a { border-bottom: 1px solid var(--line); }
.legal li a:hover { color: var(--link); text-decoration: none; }
.legal .arrow { color: var(--text-3); }
.legal-note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 12px; line-height: 1.6; color: var(--text-3); }
footer p { max-width: 70em; }
footer p + p { margin-top: 10px; }
.foot-row { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- 404 ---------- */
.notfound { padding: 120px var(--gutter); }
.notfound h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .data-head { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-grid, .split-row, .how-grid, .company-grid { grid-template-columns: 1fr; }
  .split-row.reverse > :first-child { order: 0; }
  .hero-media { justify-self: center; max-width: 440px; }
  .split-media > figure { max-width: 420px; }
  .next-grid { grid-template-columns: 1fr; gap: 28px; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav { gap: 12px; }
  .nav-actions { gap: 4px; }
  .btn { padding: 0 12px; }
  .facts { grid-template-columns: 1fr; }
  .spec li { flex-direction: column; gap: 4px; }
  .spec .v { text-align: left; flex-basis: auto; }
}

@media (max-width: 400px) {
  .brand-name { display: none; }
}
