/* GemSnap website — shared styles */

:root {
  --bg:          #0a0a0f;
  --surface:     #1a1a24;
  --surface2:    #22223a;
  --accent:      #7b5ea7;
  --accent-light:#9b7ec7;
  --text:        #ffffff;
  --text-muted:  rgba(255,255,255,0.55);
  --text-dim:    rgba(255,255,255,0.35);
  --radius:      14px;
  --max-width:   860px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
}

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

/* ── Containers ─────────────────────────────────────── */

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

section { padding: 80px 0; }

/* ── Hero ───────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,94,167,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-gem-group {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  height: 120px;
  margin-bottom: 36px;
  position: relative;
}

.gem {
  display: inline-block;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  background: linear-gradient(135deg, #9b7ec7, #5a3d82);
}

.gem-sm  { width: 58px;  height: 58px;  opacity: 0.75; align-self: flex-start; margin-right: -8px; }
.gem-md  { width: 74px;  height: 74px;  opacity: 0.85; align-self: flex-start; margin-left: 12px; }
.gem-lg  { width: 90px;  height: 90px;  opacity: 1;    align-self: flex-end;   position: relative; top: 10px; margin: 0 -4px; }

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

.hero h1 span { color: var(--accent-light); }

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}

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

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Features grid ──────────────────────────────────── */

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(123,94,167,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

/* ── Section headings ───────────────────────────────── */

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}

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

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
}

/* ── How it works ───────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
}

.step { counter-increment: step; }

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--text-muted); }

/* ── Pricing ─────────────────────────────────────────── */

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

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
  max-width: 640px;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
}

.pricing-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pricing-card .trial { font-size: 13px; color: #5cd98e; margin-bottom: 16px; }
.pricing-card .price { font-size: 28px; font-weight: 800; }
.pricing-card .price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-card .saving { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── Footer ─────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

footer .footer-links a { color: var(--text-dim); }
footer .footer-links a:hover { color: var(--text-muted); text-decoration: none; }

/* ── Legal pages ─────────────────────────────────────── */

.legal-hero {
  padding: 60px 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}

.legal-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.legal-hero p  { color: var(--text-muted); font-size: 14px; }

.legal-body {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-body h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 10px;
  color: var(--text);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

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

.legal-body a { color: var(--accent-light); }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 600px) {
  .nav-links { display: none; }
  section { padding: 56px 0; }
  .hero { padding: 72px 24px 56px; }
}
