/* ============================================================
   1084C (텐에이티포씨) — Corporate site styles
   Brand system carried from the Deltame VI guide.
   ============================================================ */

:root {
  --primary: #6b5b95;
  --primary-light: #9b8db5;
  --primary-dark: #4a3a73;
  --primary-bg: #f9f7fc;

  --warm: #d4a574;
  --cool: #9ba3af;

  --text: #1a1a1a;
  --text-2: #4a4a4a;
  --text-3: #6f6f78;

  --bg: #ffffff;
  --bg-alt: #faf9fd;
  --border: #ebe9f1;

  --font-sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "Inter", "Pretendard", sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;

  --max-width: 1120px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ---- Visible keyboard focus (WCAG 2.4.7) ---- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible {
  outline-color: var(--primary-dark);
}
.site-footer :focus-visible {
  outline-color: #fff;
}

/* ---- Bilingual visibility (toggled via <html data-lang>) ---- */
[data-lang="ko"] [lang="en"] {
  display: none;
}
[data-lang="en"] [lang="ko"] {
  display: none;
}
/* Use the English font when EN is active */
[data-lang="en"] body,
[data-lang="en"] .hero__title,
[data-lang="en"] .section__title {
  font-family: var(--font-en);
}
/* Korean has no case/monospace — relax tracking tuned for Latin small-caps labels */
[data-lang="ko"] .eyebrow,
[data-lang="ko"] .facts dt,
[data-lang="ko"] .contact-table dt,
[data-lang="ko"] .badge {
  letter-spacing: 0.02em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Skip link (a11y) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
}
.skip-link:focus {
  left: 16px;
}

/* ---- Shared bits ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--primary);
}
.section__head--center .eyebrow {
  justify-content: center;
}

.accent {
  color: var(--primary);
}
.muted {
  color: var(--text-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
    color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(107, 91, 149, 0.6);
}
.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(107, 91, 149, 0.7);
}
.btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(107, 91, 149, 0.35);
}
.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(107, 91, 149, 0.1);
}
.site-header__inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease);
}
.brand:hover {
  transform: scale(1.03);
}
.brand__mark {
  display: inline-flex;
}
.brand__word {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand__word--light {
  color: #fff;
}
.brand__c {
  color: var(--primary);
}
.brand__word--light .brand__c {
  color: var(--primary-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s var(--ease);
}
.site-nav a:hover {
  color: var(--primary);
}
.site-nav a:hover::after {
  width: 100%;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: transparent;
  border: 1.5px solid rgba(107, 91, 149, 0.3);
  border-radius: var(--radius-full);
  padding: 7px 14px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  min-width: 56px;
}
.lang-toggle:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 90px;
  background: linear-gradient(180deg, #faf9fd 0%, #ffffff 100%);
  overflow: hidden;
}
.hero__prism {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 16s var(--ease) infinite alternate;
}
.hero__blob--1 {
  width: 460px;
  height: 460px;
  top: -90px;
  right: -60px;
  background: radial-gradient(circle, rgba(232, 180, 245, 0.55), transparent 70%);
}
.hero__blob--2 {
  width: 380px;
  height: 380px;
  top: 180px;
  right: 220px;
  background: radial-gradient(circle, rgba(184, 197, 214, 0.5), transparent 70%);
  animation-delay: -5s;
}
.hero__blob--3 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  right: 40px;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.4), transparent 70%);
  animation-delay: -9s;
}
@keyframes drift {
  to {
    transform: translate(-30px, 28px) scale(1.08);
  }
}
.hero__inner {
  position: relative;
  z-index: 1;
}
.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 20px 0 0;
  word-break: keep-all;
  max-width: 16ch;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-2);
  line-height: 1.65;
  margin: 24px 0 0;
  max-width: 540px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ============ Sections ============ */
.section {
  padding: clamp(72px, 11vw, 130px) 0;
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section__head--center {
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}
.section__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.section__lead {
  color: var(--text-2);
  font-size: 17px;
  max-width: 38ch;
}
.section__head .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.section__body p {
  color: var(--text-2);
  font-size: 16.5px;
  margin-bottom: 18px;
}
.section__body p:last-of-type {
  margin-bottom: 0;
}

/* ---- About facts ---- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}
.facts__item {
  background: var(--bg);
  padding: 20px 22px;
}
.section--alt .facts__item {
  background: var(--bg-alt);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.facts dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ============ Product ============ */
.product {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 24px 60px -34px rgba(74, 58, 115, 0.32);
}
.product__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #f3f0f8 0%, #efeaf7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border: 1px solid var(--border);
}
.product__logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.product__logo .delta {
  color: var(--primary-light);
}
.product__logo .me {
  color: var(--text);
}
.product__chips {
  display: flex;
  gap: 10px;
}
.product__chips span {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.25);
}
.product__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(107, 91, 149, 0.1);
  border-radius: var(--radius-full);
  padding: 5px 12px;
}
.product__name {
  font-family: var(--font-en);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.product__name-ko {
  font-family: var(--font-sans);
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-3);
}
.product__info p {
  color: var(--text-2);
  font-size: 16px;
}
.product__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 8px 0 6px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__num {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}
.stat__unit {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
}
.stat__label {
  font-size: 12.5px;
  color: var(--text-3);
}
.product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.tag {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.rnd-note {
  text-align: center;
  color: var(--text-3);
  font-size: 15px;
  margin-top: 36px;
}

/* ============ Technology cards ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -26px rgba(74, 58, 115, 0.4);
  border-color: rgba(107, 91, 149, 0.3);
}
.card__icon {
  color: var(--primary);
  line-height: 1;
  margin-bottom: 16px;
}
.card__icon svg {
  width: 30px;
  height: 30px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============ Contact table ============ */
.contact-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}
.contact-table__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.contact-table__row:last-child {
  border-bottom: none;
}
.contact-table dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  align-self: center;
}
.contact-table dd {
  font-size: 16px;
  font-weight: 600;
}
.contact-table dd a {
  color: var(--primary);
}
.contact-table dd a:hover {
  text-decoration: underline;
}

/* ============ Footer ============ */
.site-footer {
  background: #14111c;
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 40px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.site-footer__legal {
  font-size: 14px;
  line-height: 1.9;
}
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.85);
}
.site-footer__legal a:hover {
  color: #fff;
  text-decoration: underline;
}
.site-footer__links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.site-footer__links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.25s ease;
}
.site-footer__links a:hover {
  color: var(--primary-light);
}
.site-footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

/* ============ Animations (progressive enhancement: hidden only when JS is on) ============ */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-animate].is-visible {
  opacity: 1;
  transform: none;
}
.js .stagger.is-visible .card {
  animation: card-in 0.7s var(--ease) backwards;
}
.stagger.is-visible .card:nth-child(1) { animation-delay: 0.05s; }
.stagger.is-visible .card:nth-child(2) { animation-delay: 0.15s; }
.stagger.is-visible .card:nth-child(3) { animation-delay: 0.25s; }
.stagger.is-visible .card:nth-child(4) { animation-delay: 0.35s; }
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__grid {
    grid-template-columns: 1fr;
  }
  .product {
    grid-template-columns: 1fr;
  }
  .product__media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .site-header__inner {
    height: 60px;
  }
  .hero {
    padding: 116px 0 72px;
    min-height: auto;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .contact-table__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contact-table dt {
    align-self: start;
  }
  .product__stats {
    gap: 20px;
  }
}
