@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
  --bg: #FAFAFA;
  --bg-warm: #F5F4F2;
  --black: #111;
  --grey-900: #1A1A1A;
  --grey-700: #444;
  --grey-500: #777;
  --grey-400: #999;
  --grey-300: #BBB;
  --grey-200: #D4D4D4;
  --grey-100: #E8E8E8;
  --border: #E0E0E0;
  --border-light: #ECECEC;
  --font-sans: 'Space Grotesk', -apple-system, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

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

::selection { background: var(--black); color: var(--bg); }

/* ─── TYPOGRAPHY ─────────────────────────────────── */

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--black);
  line-height: 1.05;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
}

p {
  color: var(--grey-700);
  max-width: 58ch;
  line-height: 1.75;
  font-weight: 400;
}

p.large {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--grey-500);
  max-width: 52ch;
}

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

.mono {
  font-family: var(--font-mono);
}

.label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.label-dark {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-700);
}

/* ─── LAYOUT ─────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 480px) { .container { padding: 0 2.5rem; } }
@media (min-width: 768px) { .container { padding: 0 4rem; } }
@media (min-width: 1024px) { .container { padding: 0 5rem; } }

.rule {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ─── HEADER ─────────────────────────────────── */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 480px) { .header-inner { padding: 1.5rem 2.5rem; } }
@media (min-width: 768px) { .header-inner { padding: 1.75rem 4rem; } }
@media (min-width: 1024px) { .header-inner { padding: 1.75rem 5rem; } }

.site-logo {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--black);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--black);
}

@media (max-width: 767px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 2rem 2.5rem;
    gap: 1.5rem;
  }
}

/* ─── HERO ─────────────────────────────────── */

.hero {
  padding-top: 10rem;
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 14rem;
    padding-bottom: 10rem;
  }
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hero h1 { margin-bottom: 3.5rem; }
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--grey-500);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero-sub { margin-bottom: 6rem; }
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-meta .label {
  color: var(--grey-300);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--grey-300);
}

/* ─── SECTIONS ─────────────────────────────────── */

.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}

@media (min-width: 1024px) {
  .section { padding: 10rem 0; }
}

.section-header {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 6rem; }
}

/* ─── PRODUCT INDEX ─────────────────────────────────── */

.product-list {
  display: flex;
  flex-direction: column;
}

.product-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}

@media (min-width: 768px) {
  .product-item {
    grid-template-columns: 1fr 2fr 1fr;
    align-items: baseline;
    padding: 3rem 0;
    gap: 3rem;
  }
}

.product-item:last-child {
  border-bottom: 1px solid var(--border);
}

.product-item:hover {
  background: var(--bg-warm);
}

.product-item .product-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--black);
}

.product-item .product-desc {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.6;
  max-width: 48ch;
}

.product-item .product-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  text-align: right;
}

.product-item .product-status.live {
  color: var(--black);
}

/* ─── PRODUCT GRID (home page) ─────────────────────────────────── */

.product-grid-home {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .product-grid-home {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .product-card {
    padding: 3rem 2.5rem 3rem 0;
  }
  .product-card:nth-child(even) {
    padding: 3rem 0 3rem 2.5rem;
    border-left: 1px solid var(--border);
  }
  .product-card:nth-child(n+3) {
    /* no extra top border */
  }
}

.product-card h3 {
  margin-bottom: 0.75rem;
}

.product-card .card-desc {
  font-size: 0.9rem;
  color: var(--grey-500);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 40ch;
}

.product-card .card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-card .card-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.product-card .card-status.live { color: var(--black); }

.card-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-400);
  transition: color 0.2s;
}

.card-link:hover { color: var(--black); }

/* ─── ABOUT TEASER ─────────────────────────────────── */

.about-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-teaser {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.about-teaser p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--grey-700);
  margin-bottom: 1.5rem;
}

/* ─── PILLARS ─────────────────────────────────── */

.pillar-list {
  list-style: none;
}

.pillar-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

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

.pillar-list li strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.pillar-list li span {
  font-size: 0.85rem;
  color: var(--grey-500);
  line-height: 1.6;
}

/* ─── TEXT LINK ─────────────────────────────────── */

.text-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.15rem;
}

.text-link:hover {
  color: var(--black);
  border-color: var(--black);
}

/* ─── SPEC LIST ─────────────────────────────────── */

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

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

.spec-key {
  font-family: var(--font-mono);
  color: var(--grey-400);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec-val {
  color: var(--grey-700);
  text-align: right;
  font-size: 0.85rem;
}

/* ─── PRODUCT PAGE HERO ─────────────────────────────────── */

.product-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .product-hero {
    padding-top: 14rem;
    padding-bottom: 6rem;
  }
}

.product-hero .back-link {
  display: inline-block;
  margin-bottom: 3rem;
}

.product-hero .back-link .label {
  transition: color 0.2s;
}

.product-hero .back-link:hover .label {
  color: var(--black);
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-400);
  display: inline-block;
  margin-bottom: 1.5rem;
}

.badge.live { color: var(--black); }

.product-hero h1 {
  margin-bottom: 2rem;
}

.product-hero .hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--grey-500);
  max-width: 48ch;
  line-height: 1.7;
}

/* ─── PRODUCT BODY ─────────────────────────────────── */

.product-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .product-body {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
  }
}

.product-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--grey-700);
  margin-bottom: 1.25rem;
}

.section-label {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-label { margin-bottom: 2.5rem; }
}

/* ─── ABOUT PAGE ─────────────────────────────────── */

.about-hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .about-hero {
    padding-top: 14rem;
    padding-bottom: 6rem;
  }
}

.about-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .about-body {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 6rem;
  }
}

.about-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--grey-700);
  margin-bottom: 1.5rem;
  max-width: 54ch;
}

.about-sidebar {
  padding-top: 0.5rem;
}

.about-sidebar .sidebar-block {
  margin-bottom: 3rem;
}

.about-sidebar .sidebar-label {
  margin-bottom: 0.75rem;
}

.about-sidebar .sidebar-value {
  font-size: 0.9rem;
  color: var(--grey-700);
  line-height: 1.6;
}

/* ─── VISION BLOCK ─────────────────────────────────── */

.vision-block {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .vision-block { padding: 8rem 0; }
}

.vision-block h2 {
  max-width: 20ch;
  margin-bottom: 3rem;
}

.vision-block p {
  max-width: 48ch;
}

/* ─── FOOTER ─────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  footer { margin-top: 6rem; }
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer .label {
  font-size: 0.6rem;
  color: var(--grey-300);
}

/* ─── ANIMATIONS ─────────────────────────────────── */

@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadein 0.5s ease forwards; }
.fade-in-1 { animation: fadein 0.5s ease 0.05s both; }
.fade-in-2 { animation: fadein 0.5s ease 0.15s both; }
.fade-in-3 { animation: fadein 0.5s ease 0.25s both; }
.fade-in-4 { animation: fadein 0.5s ease 0.35s both; }

/* ─── UTILITIES ─────────────────────────────────── */

.mt-section { margin-top: 4rem; }
@media (min-width: 768px) { .mt-section { margin-top: 6rem; } }

.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
