/* GraceVerse — GitHub Pages site */

:root {
  --accent: #d4b56a;
  --accent-dark: #b89545;
  --accent-glow: rgba(212, 181, 106, 0.28);
  --teal: #7eb8a2;
  --text: #f3efe6;
  --text-muted: rgba(243, 239, 230, 0.68);
  --bg: #0e1a24;
  --surface: #12202c;
  --surface-elevated: #162838;
  --border: rgba(243, 239, 230, 0.1);
  --gradient-start: #0e1a24;
  --gradient-mid: #12202c;
  --gradient-end: #1a2f3d;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-ui: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 26, 36, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

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

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(126, 184, 162, 0.12), transparent 45%),
    linear-gradient(145deg, var(--gradient-start) 0%, var(--gradient-mid) 45%, var(--gradient-end) 100%);
}

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

.hero-copy h1 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

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

.hero-copy .lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 38ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(243, 239, 230, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
}

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

.btn-primary {
  background: var(--accent);
  color: #0e1a24;
  box-shadow: 0 4px 16px var(--accent-glow);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(212, 181, 106, 0.45);
}

.btn-ghost:hover {
  background: rgba(212, 181, 106, 0.1);
  color: var(--text);
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  width: 260px;
  background: #081018;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(243, 239, 230, 0.08) inset;
}

/* Full-bleed screenshot well — matches iPhone 17 Pro Max capture ratio (1320×2868) */
.phone-screen {
  position: relative;
  background: #0e1a24;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 1320 / 2868;
  display: block;
  padding: 0;
  line-height: 0;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

section {
  padding: 4.5rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

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

.features-detail {
  display: grid;
  gap: 3rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

.feature-copy h3 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.feature-copy p {
  color: var(--text-muted);
  margin: 0;
}

.feature-phone .phone {
  width: 220px;
  margin: 0 auto;
}

.feature-watch {
  display: flex;
  justify-content: center;
}

.watch {
  width: 240px;
  padding: 12px;
  background: #050a0e;
  border: 1px solid rgba(243, 239, 230, 0.12);
  border-radius: 58px;
  box-shadow: var(--shadow-lg);
}

.watch-screen {
  overflow: hidden;
  aspect-ratio: 416 / 496;
  border-radius: 47px;
  background: #0e1a24;
  line-height: 0;
}

.watch-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.feature-card h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

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

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

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #0e1a24;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

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

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

.privacy-band {
  background: linear-gradient(135deg, #162838 0%, #0e1a24 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.privacy-band h2 {
  font-family: var(--font);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.privacy-band p {
  color: rgba(243, 239, 230, 0.72);
  margin: 0 0 1.25rem;
  max-width: 48ch;
}

.privacy-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.privacy-pillar {
  background: rgba(243, 239, 230, 0.08);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--surface);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font);
  font-weight: 700;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-hero {
  padding: 3rem 0 2rem;
  background: linear-gradient(145deg, var(--gradient-start), var(--gradient-mid));
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.page-hero .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

.legal-content h2 {
  font-family: var(--font);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.5rem;
  color: var(--text);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

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

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
  color: var(--text-muted);
}

.legal-content th {
  background: rgba(212, 181, 106, 0.12);
  font-weight: 600;
  color: var(--text);
}

.legal-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

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

.legal-content code {
  font-size: 0.85em;
  color: var(--teal);
}

.summary-box {
  background: rgba(212, 181, 106, 0.1);
  border: 1px solid rgba(212, 181, 106, 0.28);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.summary-box p {
  margin: 0;
  color: var(--text);
}

.surface-section {
  background: var(--surface);
}

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .feature-row,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .hero-copy .lead {
    max-width: none;
  }

  .phone-wrap {
    order: -1;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }
}
