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

:root {
  --bg:             #0c0c0e;
  --bg-surface:     #111114;
  --bg-card:        #141417;
  --border:         #1d1d22;
  --border-soft:    #252529;
  --text:           #e0ddd8;
  --text-muted:     #76767f;
  --text-dim:       #3e3e47;
  --accent:         #45968a;
  --accent-bright:  #55b0a3;
  --accent-glow:    rgba(69, 150, 138, 0.10);
  --accent-border:  rgba(69, 150, 138, 0.22);
  --warm:           #c2955a;
  --warm-bg:        rgba(194, 149, 90, 0.08);
  --warm-border:    rgba(194, 149, 90, 0.18);
  --radius:         8px;
  --max-w:          1060px;
  --font:           'DM Sans', system-ui, -apple-system, sans-serif;
  --mono:           'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Shared layout ─── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Nav ─── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

@media (max-width: 500px) {
  .nav-links { gap: 18px; }
}

/* ─── Hero ─── */

.hero {
  position: relative;
  padding: 116px 0 104px;
  overflow: hidden;
}

/* Dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--text-dim) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}

/* Redacted decorative element */
.hero-redacted {
  position: absolute;
  bottom: 40px;
  right: 6%;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 2;
  color: var(--text-dim);
  opacity: 0.45;
  pointer-events: none;
  letter-spacing: 0.06em;
  user-select: none;
}

.hero-redacted span {
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(56px, 9vw, 96px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  display: inline-block;
  background: linear-gradient(to right, var(--text) 20%, rgba(224, 221, 216, 0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0c0c0e;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(69, 150, 138, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}

/* ─── Shared section styles ─── */

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.section-heading {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 460px;
}

/* ─── Apps section ─── */

.apps-header {
  margin-bottom: 44px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 800px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .apps-grid { grid-template-columns: 1fr; }
}

/* Card */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.app-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.app-card:not(.card-dim):hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.app-card:not(.card-dim):hover::after {
  opacity: 1;
}

.card-dim { opacity: 0.55; cursor: default; }

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* App icon */
.card-icon {
  width: 38px;
  height: 38px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Status badge */
.badge {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-live {
  background: rgba(69, 150, 138, 0.1);
  color: var(--accent-bright);
  border: 1px solid var(--accent-border);
}

.badge-beta {
  background: var(--warm-bg);
  color: var(--warm);
  border: 1px solid var(--warm-border);
}

.badge-soon {
  background: rgba(62, 62, 71, 0.25);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* Card body */
.card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-bottom: 20px;
}

.card-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Card footer */
.card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.card-url {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  transition: gap 0.15s, color 0.15s;
}

.card-cta:hover { gap: 9px; color: var(--accent-bright); }

.card-cta svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-cta-dim {
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* ─── Mission section ─── */

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

@media (max-width: 700px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

.mission-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.mission-body p + p { margin-top: 16px; }

/* Principles */
.principles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.principle {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.principle-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Footer ─── */

footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  text-decoration: none;
}

.footer-logo span { color: var(--accent); }

.footer-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ─── Responsive tweaks ─── */

@media (max-width: 600px) {
  .hero { padding: 80px 0 72px; }
  .section { padding: 64px 0; }
}
