/* Probiscope landing — Wing Spectrum palette from AppColors.swift */

:root {
  --bg-deep: #1a2038;
  --bg-mid: #242b45;
  --bg-elevated: #2e3654;
  --bg-highlight: #383f5e;
  --border: #4a5578;
  --shadow: #12182a;

  --orange: #ff8c42;
  --gold: #ffd166;
  --violet: #c77dff;
  --cyan: #4cc9d9;
  --fuchsia: #f72585;
  --bloom: #e07be0;
  --meadow: #80ed99;

  --text-primary: #f4f0e8;
  --text-secondary: #9ba3c0;

  --radius: 18px;
  --radius-sm: 14px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.4rem;
}

/* ── Atmosphere ── */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      #322850 0%,
      #283560 28%,
      #243050 55%,
      #1e2840 78%,
      var(--bg-deep) 100%
    );
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  animation: drift 20s ease-in-out infinite alternate;
}

.orb--orange {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  top: -80px;
  right: 8%;
}

.orb--violet {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
  bottom: 18%;
  left: -50px;
  animation-delay: -6s;
}

.orb--cyan {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: 42%;
  right: -40px;
  animation-delay: -11s;
}

.orb--gold {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -40px;
  left: 35%;
  animation-delay: -3s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(24px, -30px) scale(1.08);
  }
}

.page {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* ── Nav ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  backdrop-filter: blur(16px);
  background: rgba(26, 32, 56, 0.78);
  border-bottom: 1px solid rgba(74, 85, 120, 0.45);
}

.nav-inner {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.wordmark span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── Hero ── */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 66, 0.45);
  background: rgba(255, 140, 66, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 .accent {
  display: block;
  margin-top: 0.35rem;
  background: linear-gradient(115deg, var(--orange), var(--gold), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #1a2038;
  background: linear-gradient(135deg, var(--orange), #ff6b2c);
  box-shadow: 0 0 28px rgba(255, 140, 66, 0.35);
}

.btn-primary:hover {
  color: #1a2038;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(255, 140, 66, 0.5);
}

.btn-ghost {
  color: var(--text-primary);
  border: 1px solid var(--border);
  background: rgba(46, 54, 84, 0.55);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stat-pill {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 85, 120, 0.7);
  background: rgba(46, 54, 84, 0.55);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.stat-pill strong {
  color: var(--meadow);
}

/* Phone mock */

.hero-device {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 280px);
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(160deg, #3a4468, #1e243c);
  border: 1px solid rgba(196, 125, 255, 0.35);
  box-shadow:
    0 30px 60px rgba(18, 24, 42, 0.55),
    0 0 40px rgba(76, 201, 217, 0.12);
}

.phone-notch {
  width: 42%;
  height: 18px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #12182a;
}

.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(
      160deg,
      rgba(255, 140, 66, 0.22),
      rgba(46, 54, 84, 0.95) 40%,
      rgba(36, 43, 69, 1)
    );
  min-height: 420px;
  padding: 1.1rem;
}

.mini-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.mini-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.mini-chips span {
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 140, 66, 0.18);
  border: 1px solid rgba(255, 140, 66, 0.35);
  color: var(--text-primary);
}

.mini-card {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  background: rgba(255, 209, 102, 0.1);
  margin-bottom: 0.65rem;
}

.mini-card strong,
.mini-row b {
  display: block;
  font-size: 0.92rem;
}

.mini-card span,
.mini-row i {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.mini-card--cyan {
  border-color: rgba(128, 237, 153, 0.35);
  background: rgba(128, 237, 153, 0.1);
}

.mini-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(74, 85, 120, 0.45);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.dot--orange {
  background: var(--orange);
  color: var(--orange);
}

.dot--violet {
  background: var(--violet);
  color: var(--violet);
}

/* ── Sections ── */

section {
  padding: 4.25rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.2;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

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

.feature-card {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 85, 120, 0.75);
  background:
    linear-gradient(
      160deg,
      rgba(255, 140, 66, 0.12),
      rgba(46, 54, 84, 0.85) 45%,
      rgba(36, 43, 69, 0.95)
    );
  box-shadow: 0 12px 32px rgba(18, 24, 42, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 125, 255, 0.55);
  box-shadow: 0 16px 40px rgba(18, 24, 42, 0.4), 0 0 24px rgba(199, 125, 255, 0.12);
}

.feature-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.55rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About */

.about-block {
  background: rgba(36, 43, 69, 0.35);
  border-block: 1px solid rgba(74, 85, 120, 0.4);
}

.about-text {
  max-width: 42rem;
  display: grid;
  gap: 1rem;
  color: var(--text-secondary);
}

.about-text em {
  color: var(--meadow);
  font-style: normal;
  font-weight: 500;
}

/* Privacy */

.privacy-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 85, 120, 0.7);
  background: rgba(46, 54, 84, 0.55);
  box-shadow: 0 0 40px rgba(76, 201, 217, 0.06);
}

.privacy-effective {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.privacy-card h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  margin: 1.6rem 0 0.65rem;
  color: var(--text-primary);
}

.privacy-card p,
.privacy-card li {
  color: var(--text-secondary);
}

.privacy-card p + p {
  margin-top: 0.75rem;
}

.privacy-card ul {
  margin: 0.75rem 0 0.25rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-card {
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 85, 120, 0.7);
  background: linear-gradient(150deg, rgba(76, 201, 217, 0.1), rgba(46, 54, 84, 0.8));
}

.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.contact-card a,
.contact-card span {
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.45;
}

.contact-card a:hover {
  color: var(--cyan);
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(74, 85, 120, 0.45);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

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

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

/* ── Responsive ── */

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

  .hero-device {
    order: -1;
  }

  .phone {
    width: min(100%, 250px);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(26, 32, 56, 0.96);
    border-bottom: 1px solid rgba(74, 85, 120, 0.5);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(74, 85, 120, 0.35);
  }

  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orb,
  .feature-card,
  .btn {
    animation: none;
    transition: none;
  }
}
