:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text: #f7fbf8;
  --muted: rgba(247, 251, 248, 0.68);
  --mint: #7ae7c7;
  --cyan: #74d4ff;
  --violet: #9d7bff;
  --gold: #e8c15a;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(122, 231, 199, 0.14), transparent 34rem),
    radial-gradient(circle at 78% 24%, rgba(157, 123, 255, 0.18), transparent 30rem),
    linear-gradient(140deg, #07110f 0%, #101827 50%, #18121f 100%);
}

a { color: inherit; }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(to bottom, rgba(7, 17, 15, 0.86), rgba(7, 17, 15, 0));
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(116, 212, 255, 0.28);
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(20px, 6vw, 90px) 72px;
  background:
    linear-gradient(90deg, rgba(7, 17, 15, 0.95), rgba(7, 17, 15, 0.72) 42%, rgba(7, 17, 15, 0.1)),
    url("/assets/hero-portica.png") center right / cover no-repeat;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 12px;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 11vw, 142px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  font-size: clamp(23px, 3.2vw, 42px);
  line-height: 1.05;
  font-weight: 720;
}

.privacy-line {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  color: #07110f;
  background: linear-gradient(135deg, var(--mint), var(--cyan), var(--violet));
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 44px clamp(20px, 6vw, 90px);
}

.feature-band article,
.privacy-section,
.api-section,
.legal-content,
.support-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.feature-band article {
  border-radius: 24px;
  padding: 26px;
}

.feature-icon {
  display: inline-flex;
  color: var(--mint);
  font-weight: 850;
  margin-bottom: 22px;
}

.feature-band h2,
.privacy-section h2,
.api-section h2,
.legal-content h1,
.legal-content h2 {
  letter-spacing: 0;
}

.feature-band p,
.privacy-section p,
.legal-content p,
footer {
  color: var(--muted);
  line-height: 1.65;
}

.privacy-section {
  margin: 24px clamp(20px, 6vw, 90px);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 54px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 5vw, 80px);
}

.privacy-section h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

code {
  color: var(--mint);
  background: rgba(122, 231, 199, 0.12);
  border: 1px solid rgba(122, 231, 199, 0.22);
  padding: 2px 6px;
  border-radius: 8px;
}

.api-section {
  margin: 24px clamp(20px, 6vw, 90px) 60px;
  border-radius: 28px;
  padding: clamp(26px, 5vw, 44px);
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.endpoint-grid a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-wrap: anywhere;
}

footer {
  padding: 28px clamp(20px, 6vw, 90px) 44px;
  font-size: 14px;
}

.legal .site-header { position: sticky; }
.legal-content {
  max-width: 880px;
  margin: 80px auto;
  border-radius: 28px;
  padding: clamp(28px, 6vw, 64px);
}

.legal-content h1 {
  font-size: clamp(44px, 8vw, 82px);
  margin-bottom: 24px;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 22px;
}

.support-box {
  border-radius: 20px;
  padding: 20px;
  margin: 28px 0;
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    padding: 16px 18px;
  }

  nav { gap: 12px; font-size: 13px; }

  .hero {
    min-height: 90svh;
    padding: 110px 20px 42px;
    background:
      linear-gradient(180deg, rgba(7, 17, 15, 0.65), rgba(7, 17, 15, 0.94)),
      url("/assets/hero-portica.png") center / cover no-repeat;
  }

  .feature-band,
  .privacy-section,
  .endpoint-grid {
    grid-template-columns: 1fr;
  }

  .feature-band { padding-top: 22px; }
}
