@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* === DESIGN TOKENS === */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-2: #252838;
  --border: rgba(255,255,255,0.08);
  --text: #e8eaf0;
  --text-muted: #8b90a0;
  --accent: #00c9a7;
  --accent-hover: #00e5be;
  --accent-dim: rgba(0,201,167,0.12);
  --nav-h: 64px;
  --max-w: 1120px;
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* === NAV === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(15,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}
.nav-logo:hover { color: var(--text); }
.nav-logo img { height: 32px; width: auto; }
.nav-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #0f1117;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links li > a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links li > a:hover,
.nav-links li > a.active { color: var(--text); }
.nav-links li:last-child > a {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}
.nav-links li:last-child > a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0f1117;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0f1117;
}
.btn-ghost {
  color: var(--text-muted);
  background: transparent;
  padding-left: 0;
}
.btn-ghost:hover { color: var(--text); }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === HERO === */
.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 20ch;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === TWO-PATH CARDS === */
.paths {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.path-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
}
.path-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}
.path-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.path-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}
.path-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  flex: 1;
}
.path-link {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

/* === TRUST STRIP === */
.trust {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.trust-item { text-align: center; }
.trust-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 55ch;
  line-height: 1.7;
}

/* === CONTENT SECTIONS === */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.section-intro {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 58ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* === SERVICE CARDS === */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.service-grid .service-card:nth-child(4) {
  grid-column: 2;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}
.service-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}
.service-card ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.service-card ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 0.9rem;
  position: relative;
}
.service-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* === PRODUCT CARDS === */
.product-grid {
  display: grid;
  gap: 1.25rem;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: start;
}
.product-card-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.product-card-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.product-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}
.product-card.product-concept {
  background: transparent;
  border-style: dashed;
  border-color: rgba(255,255,255,0.06);
}

/* === STATUS TAGS === */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag--prod {
  background: rgba(0,201,167,0.15);
  color: var(--accent);
}
.tag--dev {
  background: rgba(255,186,0,0.12);
  color: #ffba00;
}
.tag--concept {
  background: rgba(139,144,160,0.1);
  color: var(--text-muted);
}

/* === BIO / ABOUT === */
.bio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.bio-body p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.bio-body p:last-child { margin-bottom: 0; }
.bio-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.bio-meta-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.bio-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
.bio-meta-item:first-child { padding-top: 0; }
.bio-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.bio-meta-value {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.925rem;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-note {
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--accent);
  background: rgba(0,201,167,0.08);
  border: 1px solid rgba(0,201,167,0.2);
  margin-bottom: 1.25rem;
}
.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-status.success {
  background: rgba(0,201,167,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,201,167,0.2);
  display: block;
}
.form-status.error {
  background: rgba(255,100,100,0.08);
  color: #ff7070;
  border: 1px solid rgba(255,100,100,0.15);
  display: block;
}
.contact-info { display: flex; flex-direction: column; gap: 0; }
.contact-info-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.contact-info-value {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-info-value a { color: var(--text); }
.contact-info-value a:hover { color: var(--accent); }

/* === CTA BAND === */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.footer-left,
.footer-right {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-right a { color: var(--text-muted); }
.footer-right a:hover { color: var(--accent); }

/* === PROBLEM SECTION === */
.problem-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.problem-body {
  max-width: 60ch;
}
.problem-body p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.problem-body p:last-child { margin-bottom: 0; }
.problem-body strong { color: var(--text); font-weight: 500; }

/* === PRODUCT SHOWCASE === */
.product-showcase {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--border);
}
.showcase-header {
  margin-bottom: 2.5rem;
  max-width: 58ch;
}
.showcase-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
}
.showcase-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === LAYERS === */
.layers-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.layer-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.layer-item:last-child { border-bottom: none; }
.layer-item:hover { background: var(--surface-2); }
.layer-num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  border-right: 1px solid var(--border);
  margin-top: 0.05rem;
}
.layer-body {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.layer-body-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.layer-body h3 {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
}
.layer-body p {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.layer-badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(0,201,167,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,201,167,0.2);
}

/* === FOUNDING BLOCK === */
.founding-block {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid rgba(0,201,167,0.3);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.founding-block-copy h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.founding-block-copy p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 54ch;
}

/* === ALSO BUILDING === */
.also-building {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.also-building-header {
  margin-bottom: 1.5rem;
}
.also-building-header h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mini-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mini-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}
.mini-card p {
  font-size: 0.825rem;
  color: var(--text-muted);
  opacity: 0.65;
  line-height: 1.55;
  flex: 1;
}

/* === HOMEPAGE ABOUT === */
.home-about {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}
.home-about p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 54ch;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.home-about p:last-child { margin-bottom: 0; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1rem, 4vw, 2rem);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links li > a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child > a {
    border: none;
    border-bottom: none;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    color: var(--accent);
  }

  .paths-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-card { grid-template-columns: 1fr; }
  .product-card-meta { align-items: flex-start; }
  .founding-block { flex-direction: column; align-items: flex-start; }
  .layer-item { grid-template-columns: 44px 1fr; }
  .layer-body { padding: 1.25rem 1.25rem; }
}

@media (max-width: 480px) {
  .trust-grid { gap: 1.25rem; }
  .trust-number { font-size: 1.8rem; }
}
