/* ============================================================
   Simplinox - shared design system
   Colors are taken 1:1 from the Guard Android app's own Compose
   theme (GuardComposeTheme.kt), so the website and the app feel
   like the same product instead of two different brands.
   ============================================================ */

:root {
  --bg: #070b16;
  --surface: #151827;
  --surface-elevated: #1e2235;
  --border: #262b40;
  --gold: #d4af37;
  --gold-soft: #e8c766;
  --green: #4caf50;
  --blue: #2196f3;
  --red: #d32f2f;
  --text: #f4f5f7;
  --text-secondary: #9aa0b4;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: rgba(7, 11, 22, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  height: 51px;
  width: auto;
  display: block;
}

header nav {
  display: flex;
  gap: 4px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

header nav a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

header nav a.active {
  background: var(--gold);
  color: #1a1304;
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 24px 72px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -1px;
}

.hero .lead {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1304;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------- Sections ---------- */

section {
  padding: 64px 24px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Project / feature cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card.linkable:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 14px 0 16px;
}

.status.available {
  color: var(--green);
  background: rgba(76, 175, 80, 0.12);
}

.status.soon {
  color: var(--text-secondary);
  background: rgba(154, 160, 180, 0.12);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--gold);
  text-decoration: none;
}

.card.disabled {
  opacity: 0.6;
}

/* ---------- Guard hero banner ---------- */

.guard-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: center;
  /* Wider than the site's normal content width so the banner can be ~1.5x bigger. */
  max-width: 1320px;
  margin: 0 auto;
  padding: 72px 24px;
}

.guard-hero-art {
  /* contain + the banner's own exact aspect ratio (1024x500) - cover was cropping
     the edges since the box ratio didn't match the image. */
  background: #0d0f17 url("assets/guard_banner.png") center / contain no-repeat;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 1024 / 500;
}

.kyd-hero-art {
  /* contain + the banner's own exact aspect ratio (1794x876), same treatment as Guard's. */
  background: #0d0f17 url("assets/kyd_banner.png") center / contain no-repeat;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 1794 / 876;
}

.guard-hero-copy .eyebrow {
  margin-bottom: 20px;
}

.guard-hero-copy h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 18px;
}

.guard-hero-copy p {
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 28px;
}

.guard-hero-copy .btn-row {
  justify-content: flex-start;
  margin-top: 0;
}

@media (max-width: 860px) {
  .guard-hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
  }
  .guard-hero-copy .btn-row {
    justify-content: center;
  }
  .guard-hero-copy {
    text-align: center;
  }
}

/* ---------- Feature list (icon + text rows) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature {
  padding: 8px;
}

.feature .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
}

.feature p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0;
}

/* ---------- Screenshot gallery ---------- */

.screenshot-gallery {
  display: flex;
  /* "safe" falls back to start-alignment once content overflows, so every
     image stays reachable by scrolling - plain "center" can strand the
     first image unreachable on mobile Safari when the row doesn't fit. */
  justify-content: safe center;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 24px 28px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.screenshot-gallery img {
  flex: 0 0 auto;
  height: 520px;
  width: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  scroll-snap-align: start;
}

@media (max-width: 720px) {
  .screenshot-gallery img {
    height: 420px;
  }
}

/* ---------- Privacy panel ---------- */

.panel {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.panel h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 14px;
}

.panel > .panel-grid > div:first-child p {
  color: var(--text-secondary);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
}

.checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
}

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

/* ---------- Final CTA ---------- */

.cta-final {
  text-align: center;
  padding: 80px 24px;
}

.cta-final h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 16px;
}

.cta-final p {
  color: var(--text-secondary);
  margin: 0 0 8px;
}

/* ---------- Pricing ---------- */

.pricing-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.pricing-col h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.pricing-col .pricing-sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 8px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.pricing-col .price-row:first-of-type {
  border-top: none;
}

.price-row .tier {
  font-weight: 700;
  font-size: 14.5px;
}

.price-row .tier-desc {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
}

.price-row .amount {
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  font-size: 14.5px;
}

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

/* ---------- Legal / privacy content ---------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal h1 {
  font-size: clamp(26px, 4vw, 34px);
  margin: 0 0 8px;
}

.legal .legal-updated {
  color: var(--text-secondary);
  font-size: 13px;
  margin: 0 0 40px;
}

.legal h2 {
  font-size: 19px;
  margin: 40px 0 14px;
  color: var(--gold);
}

.legal p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0 0 14px;
}

.legal ul {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--text);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

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

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

footer .footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
