:root {
  --primary: #2f8ff0;
  --primary-deep: #0a66c2;
  --bg: #070d12;
  --surface: #101820;
  --surface-variant: #182430;
  --text: #e4ecf4;
  --muted: #a8b8c8;
  --border: rgba(47, 143, 240, 0.22);
  --radius: 14px;
  --max: 920px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(47, 143, 240, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(10, 102, 194, 0.12), transparent);
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #5cadff;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0 0.5rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-row img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.hero-logo {
  width: min(200px, 55vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(47, 143, 240, 0.25));
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero .lead {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--muted);
  max-width: 38em;
  margin: 0 auto 1.25rem;
}

.hero-pills {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 42em;
}

.hero-pills li {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 143, 240, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.35);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(10, 102, 194, 0.45);
}

.btn-ghost {
  border: 1px solid var(--border);
  background: rgba(24, 36, 48, 0.6);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-variant);
  color: var(--text);
}

/* Sections */
section {
  padding: 2.5rem 0;
}

.section-card {
  background: rgba(16, 24, 32, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(12px);
}

section h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 1rem;
  font-weight: 700;
}

section h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

section p strong {
  color: var(--text);
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  background: var(--surface-variant);
  border: 1px solid rgba(47, 143, 240, 0.12);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(47, 143, 240, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Lists */
.bullet-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.bullet-list li {
  margin-bottom: 0.5rem;
}

.bullet-list ul {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

/* Founder */
.founder-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 720px) {
  .founder-layout {
    grid-template-columns: 200px 1fr;
  }
}

.founder-photo {
  position: relative;
  width: 100%;
  max-width: 200px;
  margin-inline: auto;
}

.founder-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  display: block;
}

.founder-placeholder {
  display: none;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--surface-variant);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.founder-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.founder-photo.no-image .founder-placeholder {
  display: flex;
}

.founder-photo.no-image img {
  display: none;
}

.founder-bio p {
  font-size: 0.95rem;
}

.highlight-strip {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: rgba(47, 143, 240, 0.1);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

/* Beta CTA */
.beta-cta {
  text-align: center;
  padding: 2rem 1.5rem;
}

.beta-cta h2 {
  margin-bottom: 0.75rem;
}

.beta-cta p {
  max-width: 32em;
  margin-inline: auto 1rem;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.site-footer a {
  font-weight: 600;
}

.tm {
  font-size: 0.75em;
  vertical-align: super;
}

/* Team */
.team-intro {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface-variant);
  border: 1px solid var(--border);
  text-align: center;
}

.team-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: block;
  box-shadow: 0 4px 16px rgba(47, 143, 240, 0.2);
}

.team-avatar-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed var(--border);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.65rem;
  text-align: center;
  padding: 0.5rem;
}

.team-avatar-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.45;
}

.team-avatar-placeholder code {
  font-size: 0.6rem;
  word-break: break-all;
}

.team-avatar.no-image .team-avatar-placeholder {
  display: flex;
}

.team-avatar.no-image img {
  display: none;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.team-card p,
.team-card .profile-link {
  text-align: left;
}

.team-role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-card p {
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.team-card p:last-child {
  margin-bottom: 0;
}

.team-card a.profile-link {
  font-size: 0.88rem;
  font-weight: 600;
}

.team-network {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 640px) {
  .team-network {
    grid-template-columns: minmax(140px, 200px) 1fr;
  }
}

.team-network-visual svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin-inline: auto;
}

.team-network-copy p {
  margin: 0;
  text-align: left;
}

.team-network-copy p + p {
  margin-top: 0.75rem;
}

.associations {
  margin-top: 1.75rem;
}

.associations h3 {
  font-size: 1rem;
  margin-bottom: 0.85rem;
}

.association-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.association-list a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Skip link (a11y + SEO nav) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* SVG inline icons */
.icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Legal pages (privacy, terms) */
.legal-hero {
  padding: 1.75rem 0 1rem;
}

.legal-hero h1 {
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.legal-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.legal-nav a {
  font-weight: 600;
}

.legal-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
  pointer-events: none;
}

.legal-doc {
  padding: 2rem 0 2.5rem;
}

.legal-doc .section-card {
  padding: 1.75rem 1.35rem;
}

@media (min-width: 640px) {
  .legal-doc .section-card {
    padding: 2rem 2rem;
  }
}

.legal-doc h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  font-size: 1.02rem;
  color: var(--text);
  margin: 1.35rem 0 0.5rem;
  font-weight: 600;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-doc p {
  margin: 0 0 0.85rem;
}

.legal-doc p strong,
.legal-doc li strong {
  color: var(--text);
}

.legal-doc ul,
.legal-doc ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.45rem;
}

.legal-doc li ul {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 520px;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(47, 143, 240, 0.12);
}

.legal-table th {
  background: var(--surface-variant);
  color: var(--text);
  font-weight: 600;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-callout {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(47, 143, 240, 0.1);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-callout strong {
  color: var(--text);
}

.legal-form label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

.legal-form input,
.legal-form select,
.legal-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-variant);
  color: var(--text);
  font: inherit;
  box-sizing: border-box;
}

.legal-form textarea {
  min-height: 140px;
  resize: vertical;
}

.legal-form button[type="submit"] {
  margin-top: 1.25rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.legal-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-notice {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.form-notice.ok {
  background: rgba(47, 143, 240, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-notice.err {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #ffb4b4;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
}

.site-footer .footer-links a {
  font-size: 0.88rem;
}

.tm {
  font-size: 0.75em;
  vertical-align: super;
  line-height: 0;
}
