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

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

:root {
  /* Page structure */
  --bg: #f0f2f5; /* page background — clear gray, separates cards */
  --bg-2: #e8eaed; /* table headers, badges */
  --surface: #ffffff; /* all cards, cells, boxes */

  /* Text — explicit hex, not opacity, for reliable contrast */
  --text: #111827; /* headings & primary — 16.7:1 on white */
  --text-muted: #374151; /* body copy — 10.7:1 on white, very readable */
  --text-dim: #6b7280; /* labels, captions — 4.6:1 on white, passes AA */

  /* Borders */
  --border: #e5e7eb; /* subtle grid lines */
  --border-strong: #d1d5db; /* card outlines */

  /* Accent */
  --accent: #dc2626; /* slightly deeper red — better on white */
  --green: #15803d; /* darker green for legibility */
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;

  --sans: "Inter", -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

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

/* ── NAV ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5rem;
  height: 56px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

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

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

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--surface);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── SHARED ── */
.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-label::after {
  content: "";
  flex: 0 0 24px;
  height: 1px;
  background: var(--border-strong);
}

.tag-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ── HERO ── */
.hero {
  padding: 5rem 5rem 4.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.entity-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 5px 12px;
  margin-bottom: 1.8rem;
  background: var(--bg);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

h1.hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  max-width: 680px;
  background: var(--bg);
}

.hero-meta-item {
  flex: 1;
  min-width: 130px;
  padding: 1rem 1.4rem;
  border-right: 1px solid var(--border);
}

.hero-meta-item:last-child {
  border-right: none;
}

.hero-meta-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.hero-meta-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

/* ── LEGAL IDENTITY ── */
.legal-section {
  padding: 4rem 5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.6rem;
}

.section-note {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-dim);
  max-width: 300px;
  text-align: right;
  line-height: 1.6;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}

.legal-cell {
  background: var(--surface);
  padding: 1.4rem 1.6rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.legal-cell:hover {
  background: #fafafa;
}
.legal-cell.span2 {
  grid-column: span 2;
}

/* remove right border on last column, bottom border on last row */
.legal-cell:nth-child(3n) {
  border-right: none;
}
.legal-cell:nth-last-child(-n + 3) {
  border-bottom: none;
}

.legal-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.legal-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.legal-value a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.ph {
  color: var(--text-dim);
  font-style: italic;
  font-size: 13px;
}

/* ── BRAND ── */
.brand-section {
  padding: 4rem 5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand-intro {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.brand-cards {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  gap: 0;
  align-items: center;
}

.entity-card {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 2rem;
  background: var(--bg);
}

.entity-card.parent {
  border-color: #9ca3af;
  background: var(--surface);
}

.card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 1rem;
  background: var(--surface);
}

.card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.card-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.card-rows {
  display: flex;
  flex-direction: column;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  gap: 1rem;
}

.card-row:last-child {
  border-bottom: none;
}
.card-key {
  color: var(--text-dim);
  white-space: nowrap;
}
.card-val {
  color: var(--text-muted);
  text-align: right;
}

.arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arrow-line {
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

.arrow-label {
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ── DOMAINS ── */
.domains-section {
  padding: 4rem 5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.domains-table {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.6rem;
}

.domain-header,
.domain-row {
  display: grid;
  grid-template-columns: 220px 1fr 110px;
  align-items: center;
  padding: 0.9rem 1.6rem;
}

.domain-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-strong);
}

.domain-header span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.domain-row {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.domain-row:last-child {
  border-bottom: none;
}
.domain-row:hover {
  background: #fafafa;
}

.domain-name {
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.domain-purpose {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  padding-right: 1rem;
}

.domain-status {
  display: flex;
  justify-content: flex-end;
}

/* ── CONTACT ── */
.contact-section {
  padding: 4rem 5rem 5rem;
  background: var(--surface);
}

.contact-box {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 2.8rem 3rem;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.contact-body {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.use-cases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.use-pill {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 3px 10px;
  background: var(--surface);
}

.contact-email-block {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.email-address {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.email-address a {
  color: var(--text);
  transition: color 0.2s;
}

.email-address a:hover {
  color: var(--accent);
}

.email-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.5s ease forwards; }
.fade-up-1 { animation-delay: 0.06s; }
.fade-up-2 { animation-delay: 0.16s; }
.fade-up-3 { animation-delay: 0.26s; }
.fade-up-4 { animation-delay: 0.36s; }

/* ── RESPONSIVE ── */

/* Tablet: stack brand cards vertically, flip arrow horizontal */
@media (max-width: 900px) {
  .brand-cards { grid-template-columns: 1fr; }

  .arrow-col {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.8rem 0;
    gap: 8px;
  }
  .arrow-line { width: 28px; height: 1px; }
  .arrow-label { writing-mode: horizontal-tb; font-size: 9px; }
}

/* Mobile */
@media (max-width: 768px) {

  /* Nav — hide links, company name stays */
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .nav-logo-text { font-size: 13px; }

  /* Sections */
  .hero { padding: 2.5rem 1.2rem 2rem; }
  .legal-section,
  .brand-section,
  .domains-section,
  .contact-section { padding: 2.2rem 1.2rem; }

  /* Hero */
  h1.hero-title { font-size: 1.75rem; line-height: 1.2; }
  .hero-sub { font-size: 13px; margin-bottom: 1.8rem; }

  /* Hero meta — 2×2 grid */
  .hero-meta {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
  }
  .hero-meta-item {
    flex: unset;
    min-width: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .hero-meta-item:nth-child(2n)   { border-right: none; }
  .hero-meta-item:nth-last-child(-n+2) { border-bottom: none; }

  /* Section header */
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .section-note { text-align: left; max-width: 100%; }

  /* Legal grid — single column, reset all border rules */
  .legal-grid { grid-template-columns: 1fr; }
  .legal-cell,
  .legal-cell.span2 {
    grid-column: span 1;
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .legal-cell:last-child { border-bottom: none !important; }
  /* reset desktop nth-child border rules */
  .legal-cell:nth-child(3n)        { border-right: none; }
  .legal-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--border) !important; }

  /* Brand cards */
  .entity-card { padding: 1.2rem; }
  .card-desc { margin-bottom: 1rem; }

  /* Domain table — hide header, domain + status only */
  .domain-header { display: none; }
  .domain-row { grid-template-columns: 1fr auto; padding: 0.75rem 1rem; }
  .domain-purpose { display: none; }
  .domain-name { font-size: 12px; }

  /* Contact — flatten on mobile, remove box-within-box */
  .contact-section { background: var(--bg); }
  .contact-box {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 0;
  }
  .contact-title { font-size: 1rem; }
  .contact-body { margin-bottom: 0; }
  .use-cases { display: none; }
  .contact-email-block { background: var(--surface); }
  .email-address { font-size: 14px; }

  /* Footer */
  footer { padding: 1.2rem; }
  .footer-copy { flex-direction: column; gap: 0.2rem; }
}
