/* Nestria.io — shared styles */

:root {
  --color-bg: #0f1419;
  --color-surface: #1a2332;
  --color-surface-hover: #243044;
  --color-border: #2d3a4f;
  --color-text: #e8edf4;
  --color-text-muted: #94a3b8;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-accent-soft: rgba(59, 130, 246, 0.12);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1100px;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(15, 20, 25, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.site-logo:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* Main content */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero--home {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.18), transparent),
    var(--color-bg);
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero__tagline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero__tagline strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero__actions {
  justify-content: center;
  margin-bottom: 2rem;
}

.hero__highlights {
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
}

/* Shared checkmark list — vertical bullets with consistent alignment */
.list-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list-checks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.list-checks li:last-child {
  margin-bottom: 0;
}

.list-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
  line-height: 1.5;
}

/* Section */
.section {
  padding: 3rem 0;
}

.section--values {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section--spotlight {
  padding-bottom: 4rem;
}

.section--how {
  background: var(--color-surface);
  border-block: 1px solid var(--color-border);
}

.section--about {
  padding-bottom: 4rem;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section__subtitle {
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

/* App cards grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-card:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.app-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.app-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.app-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

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

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* App detail page */
.app-hero {
  padding: 3rem 0 2rem;
}

.app-hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.app-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.app-hero__lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.feature-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.feature-card li {
  margin-bottom: 0.35rem;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.value-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.value-card__icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.value-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* Featured app spotlight */
.spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
}

.spotlight h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.spotlight__lead {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.spotlight__features {
  margin: 0 0 1.5rem;
}

.spotlight__features li {
  margin-bottom: 0.65rem;
}

.spotlight__mock {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  min-height: 280px;
}

.spotlight__mock-bar {
  height: 8px;
  width: 40%;
  background: var(--color-border);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.spotlight__mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.spotlight__mock-grid span {
  aspect-ratio: 1;
  background: var(--color-accent-soft);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.spotlight__mock-caption {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* How it works steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.step__number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 800;
  border-radius: 50%;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* About section */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about p {
  color: var(--color-text-muted);
}

.about__facts {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about__facts h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.about__facts dl {
  margin: 0 0 1.25rem;
}

.about__facts dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

.about__facts dt:first-child {
  margin-top: 0;
}

.about__facts dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.about__link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.cta-banner--compact {
  border-top: none;
  margin-top: 1rem;
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.cta-banner p {
  margin: 0;
  color: var(--color-text-muted);
}

.app-hero__note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Privacy / legal pages */
.legal {
  padding: 3rem 0 4rem;
}

.legal h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.legal .updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--color-text-muted);
}

.legal ul {
  padding-left: 1.25rem;
}

.legal-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-summary h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.legal-summary ul {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.legal-table th {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

.legal-table td {
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

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

  .spotlight__visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero--home {
    padding: 2.5rem 0 2rem;
  }

  .spotlight {
    padding: 1.5rem;
  }

  .legal-table {
    font-size: 0.85rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.5rem;
  }
}
