/* ============================================================
   KRAT ROBOTICS — company site
   절제된 다크 (restrained dark). 단일 라임 포인트.
   ============================================================ */

:root {
  --bg:        #0a0a0c;   /* base ink */
  --bg-elev:   #131318;   /* card / alt section */
  --bg-elev-2: #17171d;
  --fg:        #f4f4f6;   /* primary text */
  --fg-dim:    #a9a9b3;   /* secondary text */
  --fg-faint:  #71717a;   /* tertiary / meta */
  --line:      rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --lime:      #c6ff3a;   /* the one accent */
  --lime-dim:  rgba(198, 255, 58, 0.40);

  --font-sans: 'Pretendard', system-ui, -apple-system, 'Segoe UI',
    'Apple SD Gothic Neo', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Pretendard', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'JetBrains Mono', Menlo,
    Consolas, monospace;

  --maxw: 1120px;
}

/* ── reset / base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  border-top: 3px solid var(--lime); /* brand signature */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ── header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-mark {
  height: 20px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 4vw, 36px);
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}

.site-nav a:hover {
  color: var(--lime);
}

/* ── hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 13vw, 150px);
  border-bottom: 1px solid var(--line);
}

.hero-glow {
  position: absolute;
  top: -240px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(
    circle,
    rgba(198, 255, 58, 0.16) 0%,
    rgba(198, 255, 58, 0) 62%
  );
  filter: blur(8px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.hero-title {
  font-size: clamp(44px, 9vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.035em;
}

.hero-korean {
  margin: 16px 0 0;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--fg-dim);
  font-weight: 500;
}

.hero-lead {
  max-width: 660px;
  margin: 34px 0 0;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.62;
  color: var(--fg);
}

.hero-lead-ko {
  max-width: 640px;
  margin: 12px 0 0;
  font-size: clamp(15px, 1.7vw, 16.5px);
  line-height: 1.7;
  color: var(--fg-dim);
}

.entity-note {
  max-width: 680px;
  margin: 32px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--lime-dim);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-faint);
}

.entity-note strong {
  color: var(--fg-dim);
  font-weight: 600;
}

/* ── sections ───────────────────────────────────────────── */
.section {
  padding-block: clamp(64px, 10vw, 116px);
  scroll-margin-top: 80px;
}

.section--alt {
  background: var(--bg-elev);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-title {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.1;
}

/* ── product cards ──────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.section--alt .card {
  background: var(--bg-elev-2);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--lime-dim);
  box-shadow: 0 18px 40px -24px rgba(198, 255, 58, 0.35);
}

.card-dot {
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(198, 255, 58, 0.6);
}

.card-title {
  font-size: 21px;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
}

.card-desc-ko {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg-faint);
}

/* ── product groups (카테고리 소제목) ───────────────────── */
.product-group + .product-group {
  margin-top: clamp(40px, 6vw, 64px);
}

.group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.group-ko {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--fg-faint);
}

/* ── company information ────────────────────────────────── */
.info {
  margin: 0;
  border-top: 1px solid var(--line);
}

.info-row {
  display: flex;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.info-row dt {
  flex: 0 0 260px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
}

.dt-ko {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--fg-faint);
  font-weight: 400;
}

.info-row dd {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
  align-self: center;
}

.info-row dd a:hover {
  color: var(--lime);
}

/* ── contact ────────────────────────────────────────────── */
.contact-band {
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.contact-intro {
  margin: 0 0 28px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: var(--fg);
}

.contact-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

a.contact-item:hover {
  border-color: var(--lime-dim);
}

a.contact-item:hover .contact-val {
  color: var(--lime);
}

.contact-key {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.contact-val {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.45;
  transition: color 0.15s ease;
}

/* ── footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-mark {
  height: 18px;
  width: auto;
  opacity: 0.85;
  margin-bottom: 14px;
}

.footer-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-faint);
}

.footer-links a {
  font-size: 13px;
  color: var(--fg-dim);
}

.footer-links a:hover {
  color: var(--lime);
}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 560px) {
  .site-nav {
    display: none;
  }
  .info-row {
    flex-direction: column;
    gap: 6px;
  }
  .info-row dt {
    flex-basis: auto;
  }
}

/* ── motion preference ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
