/* ==========================================================================
   LTBL — Design Tokens
   ========================================================================== */
:root {
  /* Color */
  --forest-900: #12291f;
  --forest-800: #16362a;
  --forest-700: #1b4332;
  --forest-600: #275c46;
  --forest-500: #3d7a5d;
  --forest-200: #cfe1d7;
  --forest-100: #e9f0ec;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --ink: #16201b;
  --mist: #62716b;
  --line: #dde5df;

  /* Type */
  --font-display: "Poppins", "Pretendard", sans-serif;
  --font-body: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "EB Garamond", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 9rem;

  --radius: 3px;
  --max-width: 1180px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--forest-500);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ==========================================================================
   Type roles
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-500);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: "";
  width: 1.1em;
  height: 1px;
  background: var(--forest-500);
}

h1,
.display-1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.14;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  color: var(--forest-900);
}

h2,
.display-2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  color: var(--forest-900);
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--forest-900);
}

.lede {
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  color: var(--mist);
  max-width: 34em;
}

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--forest-600);
  font-size: 1.15em;
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.28em;
}

.wordmark .en {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--forest-700);
}

.wordmark .kr {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--forest-500);
}

nav.main-nav ul {
  display: flex;
  gap: var(--space-4);
}

nav.main-nav a {
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 0.2em 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--forest-700);
  transition: right 0.25s var(--ease);
}

nav.main-nav a:hover::after,
nav.main-nav a[aria-current="page"]::after {
  right: 0;
}

nav.main-nav a[aria-current="page"] {
  color: var(--forest-700);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--forest-700);
  background: var(--forest-700);
  color: #fff;
  padding: 0.7em 1.3em;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color .2s var(--ease);
}

.btn:hover {
  background: var(--forest-800);
  border-color: var(--forest-800);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--forest-700);
}

.btn.ghost:hover {
  background: var(--forest-100);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest-900);
  margin: 5px 0;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* ==========================================================================
   Sections / layout helpers
   ========================================================================== */
section {
  padding: var(--space-6) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 46em;
}

.section-tight .section-head {
  margin-bottom: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
}

.card h3 {
  margin-bottom: 0.6em;
}

.card p {
  color: var(--mist);
  font-size: 0.95rem;
}

.band {
  background: var(--forest-700);
  color: #f4f7f5;
}

.band .lede {
  color: rgba(244, 247, 245, 0.78);
}

.band h2 {
  color: #fff;
}

/* ==========================================================================
   Home — Hero
   ========================================================================== */
.hero {
  padding-top: var(--space-5);
}

.hero .grid-2 {
  align-items: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-2);
}

.hero-copy .cta-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

/* Signature element: light-recipe mixer */
.mixer {
  background: var(--forest-900);
  border-radius: 6px;
  padding: var(--space-3) var(--space-3) var(--space-2);
  color: #eef3f0;
}

.mixer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.mixer-head .eyebrow {
  color: var(--forest-200);
}

.mixer-head .eyebrow::before {
  background: var(--forest-200);
}

.mixer select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eef3f0;
  padding: 0.4em 0.6em;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.channels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-1);
  align-items: end;
  height: 190px;
}

.channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 0.55em;
}

.channel .bar-track {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.channel .bar-fill {
  width: 60%;
  min-width: 14px;
  border-radius: 3px 3px 0 0;
  background: var(--forest-500);
  transition: height 0.18s var(--ease);
}

.channel[data-core="true"] .bar-fill {
  background: #a9dcc0;
}

.channel input[type="range"] {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.channel .bar-track {
  position: relative;
}

.channel .value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--forest-200);
}

.channel .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(238, 243, 240, 0.6);
  text-align: center;
  line-height: 1.3;
}

.mixer-foot {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: rgba(238, 243, 240, 0.55);
}

/* ==========================================================================
   Value props / audience
   ========================================================================== */
.audience-list li {
  display: flex;
  gap: 0.8em;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.audience-list li:first-child {
  border-top: 1px solid var(--line);
}

.audience-list .mark {
  color: var(--forest-500);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ==========================================================================
   Product — spec sheet
   ========================================================================== */
.spec-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-raised);
}

.spec-row {
  display: grid;
  grid-template-columns: 5em 1fr 2.4fr;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row.head {
  background: var(--forest-100);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-700);
}

.spec-row .ch {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--forest-700);
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--forest-500);
  flex-shrink: 0;
}

.spec-row[data-core="true"] .swatch {
  background: var(--forest-900);
}

.spec-row .wave {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
}

.spec-row .role {
  font-size: 0.88rem;
  color: var(--mist);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.feature-grid .card .eyebrow {
  margin-bottom: 0.8em;
}

/* ==========================================================================
   Company — timeline
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 6em 1.4em 1fr;
  gap: var(--space-2);
}

.timeline-item .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--forest-500);
  padding-top: 0.15em;
}

.timeline-item .rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-item .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--paper);
  outline: 2px solid var(--line);
  margin-top: 0.3em;
}

.timeline-item[data-done="true"] .dot {
  background: var(--forest-700);
  outline-color: var(--forest-700);
}

.timeline-item .bar {
  flex: 1;
  width: 1px;
  background: var(--line);
  margin: 0.3em 0;
}

.timeline-item:last-child .bar {
  display: none;
}

.timeline-item .content {
  padding-bottom: var(--space-4);
}

.timeline-item .content h3 {
  margin-bottom: 0.3em;
}

.timeline-item .content p {
  color: var(--mist);
  font-size: 0.92rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.credential-grid .num-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--forest-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6em;
}

.mission-block {
  border-left: 2px solid var(--forest-700);
  padding-left: var(--space-3);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-5);
}

.contact-info dl {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-500);
  margin-bottom: 0.35em;
}

.contact-info dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--forest-900);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  color: var(--forest-800);
  font-weight: 600;
}

.field input,
.field textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75em 0.9em;
  background: var(--paper-raised);
  transition: border-color 0.2s var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--forest-500);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--mist);
  margin-top: var(--space-2);
}

.form-status {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  display: none;
}

.form-status.show {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--mist);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .grid-3,
  .feature-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero .grid-2 {
    display: flex;
    flex-direction: column-reverse;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  nav.main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--paper);
    padding: var(--space-3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  nav.main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: var(--space-3);
  }

  nav.main-nav a {
    font-size: 1.1rem;
  }

  .nav-right .btn.ghost {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.4em;
  }

  .timeline-item {
    grid-template-columns: 4.4em 1.4em 1fr;
  }
}

@media (max-width: 560px) {
  .channels {
    height: 150px;
  }

  .channel .label {
    font-size: 0.58rem;
  }
}
