/* DEEPSTONE — deepstone.ai
 * Source of truth: deepstone_wbsite.zip design export (DEEPSTONE-Website.html).
 * Tokens per brand-spec.md; values frozen from the rendered export. */

/* ── Fonts (self-hosted, subset) ─────────────────────────────── */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  --bg: #060607;
  --surface: #0c0c0e;
  --fg: #f2f1ed;
  --fg-85: rgba(242, 241, 237, 0.85);
  --fg-75: rgba(242, 241, 237, 0.75);
  --fg-70: rgba(242, 241, 237, 0.7);
  --fg-62: rgba(242, 241, 237, 0.62);
  --fg-60: rgba(242, 241, 237, 0.6);
  --fg-55: rgba(242, 241, 237, 0.55);
  --fg-50: rgba(242, 241, 237, 0.5);
  --fg-45: rgba(242, 241, 237, 0.45);
  --fg-35: rgba(242, 241, 237, 0.35);
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #d9a441;
  --accent-bright: #e8b854;
  --accent-border: rgba(217, 164, 65, 0.35);
  --accent-border-soft: rgba(217, 164, 65, 0.25);
  --on-accent: #0a0a0b;
  --font-sans: 'Space Grotesk', 'Pretendard', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', monospace;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section-gap: clamp(88px, 10vw, 140px);
  --radius-card: 20px;
  --radius-tile: 16px;
  --radius-panel: 18px;
  --radius-cta: 24px;
  --radius-pill: 999px;
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: rgba(217, 164, 65, 0.3); }
@keyframes ds-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

:is(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

section, header[id] { scroll-margin-top: 76px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn { display: inline-block; border-radius: var(--radius-pill); white-space: nowrap; }
.btn-accent { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn-accent:hover { background: var(--accent-bright); color: var(--on-accent); }
.btn-solid { background: var(--fg); color: var(--on-accent); font-weight: 600; }
.btn-solid:hover { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--fg-85); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(6, 6, 7, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 34px; height: 30px; object-fit: contain; }
.nav-brand span { font-size: 15px; font-weight: 600; letter-spacing: 0.22em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 36px);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}
.nav-links a { color: var(--fg-70); }
.nav-links a:hover { color: var(--accent); }
.nav-cta { padding: 9px 22px; font-size: 13px; letter-spacing: 0.03em; }

/* ── Hero ────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

.hero {
  position: relative;
  padding-top: clamp(118px, 14vw, 170px);
  overflow: visible;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ds-pulse 2.4s ease-in-out infinite;
}
.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-copy {
  margin: 0 0 36px;
  max-width: 460px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--fg-62);
  font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 30px; font-size: 14px; }
.hero-visual { position: relative; height: 420px; }
.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  background: var(--on-accent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: rgba(217, 164, 65, 0.08) 0 0 0 1px inset, rgba(0, 0, 0, 0.34) 0 24px 70px;
}

/* stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-tile);
  overflow: hidden;
  margin-top: 72px;
}
.stat { background: var(--surface); padding: 28px 32px; }
.stat .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-45);
  margin-bottom: 10px;
}
.stat .value { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.stat .desc { font-size: 13px; color: var(--fg-50); margin-top: 6px; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding-top: var(--section-gap); }
.section:last-of-type { padding-bottom: clamp(80px, 9vw, 120px); }

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Products */
.products-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.products-head h2 {
  margin: 0;
  font-size: clamp(31px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.products-head p {
  margin: 0;
  max-width: 380px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-55);
  font-weight: 300;
}
.product-list { display: flex; flex-direction: column; gap: 24px; }
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
}
.product-body { padding: clamp(32px, 4vw, 52px) clamp(24px, 3.6vw, 48px); display: flex; flex-direction: column; }
.product-body h3 { margin: 0 0 18px; font-size: clamp(25px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.01em; }
.product-body > p { margin: 0 0 30px; font-size: 15px; line-height: 1.65; color: var(--fg-60); font-weight: 300; }
.product-points { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.product-points div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--fg-75);
}
.product-points span { color: var(--accent); font-family: var(--font-mono); font-size: 12px; }
.product-body .btn { margin-top: auto; align-self: flex-start; padding: 11px 26px; font-size: 13.5px; }
.product-media { position: relative; min-height: 420px; }
.product-card:first-child .product-media { border-left: 1px solid var(--border); }
.product-card:last-child .product-media { border-right: 1px solid var(--border); }
.product-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--surface);
}

/* Technology */
.tech h2 {
  margin: 0 auto 64px;
  max-width: 640px;
  text-align: center;
  font-size: clamp(31px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 40px 32px;
}
.tech-card:hover { border-color: rgba(217, 164, 65, 0.4); }
.tech-card .index {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 26px;
}
.tech-card h3 { margin: 0 0 14px; font-size: 19px; font-weight: 500; }
.tech-card p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--fg-55); font-weight: 300; }

/* Company */
.company-inner { max-width: 560px; }
.company-inner h2 {
  margin: 0 0 24px;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.company-inner p { margin: 0 0 18px; font-size: 15px; line-height: 1.7; color: var(--fg-60); font-weight: 300; }
.company-inner p:last-child { margin-bottom: 0; }

/* Contact CTA */
.cta-box {
  position: relative;
  border: 1px solid var(--accent-border-soft);
  border-radius: var(--radius-cta);
  background: radial-gradient(70% 120% at 50% 0%, rgba(217, 164, 65, 0.08), transparent), var(--surface);
  padding: clamp(56px, 7vw, 88px) clamp(24px, 4vw, 48px);
  text-align: center;
  overflow: hidden;
}
.cta-box img { width: 56px; height: 50px; object-fit: contain; margin-bottom: 28px; }
.cta-box h2 {
  margin: 0 auto 20px;
  max-width: 560px;
  font-size: clamp(30px, 3.1vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.cta-box p {
  margin: 0 auto 40px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-55);
  font-weight: 300;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn { padding: 14px 34px; font-size: 14.5px; }
.cta-actions .btn-ghost { overflow-wrap: anywhere; white-space: normal; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 48px var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 26px; height: 23px; object-fit: contain; }
.footer-brand span { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; }
.footer-links { display: flex; gap: 28px; font-size: 12.5px; }
.footer-links a { color: var(--fg-50); }
.footer-links a:hover { color: var(--accent); }
.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-35);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: auto; aspect-ratio: 5 / 4; max-height: 420px; }
  .hero-visual img { position: static; height: 100%; }
  .product-card { grid-template-columns: 1fr; }
  .product-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; max-height: 420px; }
  .product-card:first-child .product-media,
  .product-card:last-child .product-media {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
@media (max-width: 899px) {
  .nav-links { display: none; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
