/* Noctura marketing site — shared styles
   Mirrors the in-app theme: dark navy bg, amber + lavender accents,
   parchment text. Lora (serif headings) + Manrope (sans body). */

:root {
  --bg:        #1a1438;
  --bg-soft:   #221a44;
  --bg-card:   #2a1f55;
  --line:      rgba(244, 241, 234, 0.10);
  --text:      #f4f1ea;
  --text-mid:  rgba(244, 241, 234, 0.72);
  --text-low:  rgba(244, 241, 234, 0.50);
  --text-dim:  rgba(244, 241, 234, 0.30);
  --amber:     #f4b860;
  --amber-hi:  #ffd089;
  --lavender:  #9b8ec9;
  --rose:      #d96a73;
  --serif:     'Lora', 'Iowan Old Style', Georgia, serif;
  --sans:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse at top left, rgba(155, 142, 201, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at top right, rgba(244, 184, 96, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
header.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(26, 20, 56, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

header .brand .moon {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--amber-hi), var(--amber) 60%, transparent 75%);
  box-shadow: 0 0 16px rgba(244, 184, 96, 0.4);
}

header nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

header nav a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Hero */
section.hero {
  padding: 96px 0 72px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.hero h1 .accent {
  color: var(--amber);
  font-style: italic;
}

.hero .lede {
  font-size: 19px;
  color: var(--text-mid);
  max-width: 580px;
  margin: 0 auto 40px;
}

.hero .cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--amber);
  color: #1a1438;
}

.btn-primary:hover {
  background: var(--amber-hi);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--text-mid);
  background: rgba(244, 241, 234, 0.04);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(244, 184, 96, 0.10);
  border: 1px solid rgba(244, 184, 96, 0.25);
  color: var(--amber);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Lenses grid */
section.lenses {
  padding: 56px 0 96px;
  border-top: 1px solid var(--line);
}

.lenses h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px;
}

.lenses .sub {
  text-align: center;
  color: var(--text-mid);
  margin: 0 auto 56px;
  max-width: 480px;
}

.lenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.lens-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.lens-card .glyph {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--amber);
  margin-bottom: 16px;
  display: block;
}

.lens-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
}

.lens-card p {
  color: var(--text-mid);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Features list */
section.features {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.features h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  text-align: center;
  margin: 0 0 56px;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px 40px;
}

.features-list .feature h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--text);
}

.features-list .feature p {
  color: var(--text-mid);
  font-size: 14px;
  margin: 0;
}

/* Screenshots placeholder */
section.screenshots {
  padding: 72px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.screenshots h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  margin: 0 0 16px;
}

.screenshots .sub {
  color: var(--text-mid);
  margin: 0 auto 40px;
  max-width: 480px;
}

.screenshots-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.screenshots-strip .ss-slot {
  /* Default placeholder appearance (used when .ss-slot is a <div> stand-in). */
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, rgba(244, 184, 96, 0.04) 0%, rgba(155, 142, 201, 0.04) 100%);
  border: 1px dashed var(--line);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-low);
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

/* When .ss-slot is an actual screenshot, drop the placeholder chrome and
   let the image fill the slot at the same aspect ratio. */
.screenshots-strip img.ss-slot {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0;
  display: block;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.screenshots-strip img.ss-slot:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 184, 96, 0.32);
}

/* Footer */
footer.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--text-low);
  font-size: 13px;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.site-footer .footer-brand {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
}

.site-footer ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.site-footer .copyright {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-low);
}

/* Legal page (privacy, terms, support) */
.legal-page {
  padding: 56px 0 96px;
}

.legal-page h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 44px);
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

.legal-page .updated {
  color: var(--text-low);
  font-size: 13px;
  margin-bottom: 40px;
  display: block;
}

.legal-page h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 48px 0 16px;
  color: var(--amber);
  letter-spacing: -0.005em;
}

.legal-page h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  margin: 28px 0 12px;
  color: var(--text);
}

.legal-page p, .legal-page li {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.75;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin: 12px 0 20px;
}

.legal-page li {
  margin-bottom: 8px;
}

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

.legal-page a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 184, 96, 0.3);
  transition: border-color 0.2s ease;
}

.legal-page a:hover {
  border-bottom-color: var(--amber);
}

.legal-page hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

.legal-page .callout {
  padding: 20px 24px;
  background: rgba(244, 184, 96, 0.06);
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  margin: 24px 0;
  font-size: 14px;
}

.legal-page .callout p:first-child {
  margin-top: 0;
}

.legal-page .callout p:last-child {
  margin-bottom: 0;
}

.legal-page table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-page table.data-table th,
.legal-page table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-page table.data-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(244, 241, 234, 0.02);
}

.legal-page table.data-table td {
  color: var(--text-mid);
}

/* Support / contact card */
.contact-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 24px 0;
}

.contact-card h3 {
  margin-top: 0;
}

/* Mobile */
@media (max-width: 640px) {
  header.site-header {
    padding: 16px 0;
  }
  header .nav {
    gap: 12px;
  }
  header nav ul {
    gap: 16px;
    font-size: 13px;
  }
  section.hero {
    padding: 56px 0 48px;
  }
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer ul {
    gap: 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
