/* ═══════════════════════════════════════════════════════════
   Preteridea — corporate site
   Deliberately quiet: one accent colour, hairline rules,
   monospaced numerals. The product site can shout; this one
   only has to be true and legible.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101014;
  --panel: #131318;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #e9e9ec;
  --text-soft: #9a9ba3;
  --text-faint: #6a6b74;
  --accent: #7d8cff;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1040px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(125, 140, 255, 0.3); }

/* A hairline of accent at the very top — the only decoration on the page. */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55; z-index: 100;
}

a { color: var(--text); }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(20px, 5vw, 40px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; font-size: 16.5px;
  letter-spacing: 0.01em;
}
.brand-mark { display: block; }
.brand-mark.sm { opacity: 0.75; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 30px); }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.lang-btn {
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 99px;
  padding: 5px 13px; cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-btn:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.24); }
@media (max-width: 620px) { .nav-links a { display: none; } }

/* ── hero ── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(84px, 15vh, 170px) clamp(20px, 5vw, 40px) clamp(60px, 10vh, 110px);
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 15px; margin-bottom: 32px;
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.06;
  margin-bottom: 30px;
}
.hero-sub {
  font-size: clamp(16px, 1.85vw, 18.5px);
  color: var(--text-soft);
  max-width: 34em;
}

/* ── generic section ── */
.section {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--line-soft);
}
.section-title {
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: clamp(30px, 5vh, 48px);
}

/* ── cards ── */
.cards {
  display: grid; gap: clamp(20px, 3vw, 34px);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card-no {
  font-family: var(--mono); font-size: 12px;
  color: var(--text-faint); margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--text-soft); }
.card a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(125, 140, 255, 0.35); }
.card a:hover { border-bottom-color: var(--accent); }

/* ── company ── */
.about-grid {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1.15fr 1fr;
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-text p { font-size: 16.5px; color: var(--text-soft); }
.about-text p + p { margin-top: 18px; }

.facts { border-top: 1px solid var(--line-soft); }
.fact {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.fact dt {
  font-size: 12.5px; color: var(--text-faint);
  letter-spacing: 0.04em; white-space: nowrap;
}
.fact dd { font-size: 14.5px; text-align: right; }
.mono { font-family: var(--mono); font-size: 13.5px !important; letter-spacing: 0.01em; }

/* ── contact ── */
.contact { padding-bottom: clamp(70px, 12vh, 120px); }
.mail {
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 140, 255, 0.4);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-sub { margin-top: 22px; font-size: 15px; color: var(--text-soft); max-width: 34em; }

/* ── footer ── */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(28px, 5vh, 42px) clamp(20px, 5vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px;
}
.footer-copy { font-size: 13px; color: var(--text-faint); }

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