/* ============================================
   TrendMatch Landing Page — Glass / Modern SaaS
   No external dependencies. System font stack.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;

  /* Palette */
  --bg:        #0a0a0f;
  --bg-subtle: #111118;
  --surface:   rgba(255, 255, 255, 0.04);
  --glass:     rgba(255, 255, 255, 0.06);
  --glass-hi:  rgba(255, 255, 255, 0.10);
  --border:    rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.15);
  --text:      #e8e8ed;
  --text-dim:  #8e8e9a;
  --text-muted:#5a5a6a;
  --accent:    #6366f1;
  --accent-hi: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --green:     #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --red:       #ef4444;
  --red-dim:   rgba(239, 68, 68, 0.10);
  --orange:    #f59e0b;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-w:     1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background gradient mesh */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99, 102, 241, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(139, 92, 246, 0.06), transparent 50%),
    radial-gradient(ellipse 70% 40% at 50% 90%, rgba(34, 197, 94, 0.04), transparent 50%);
}

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

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

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

/* --- Glass Card --- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass:hover {
  border-color: var(--border-hi);
  background: var(--glass-hi);
}

/* --- Section --- */
section { padding: 80px 0; }

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 640px;
  line-height: 1.7;
}

/* --- Nav --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent-hi); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff !important;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 20px var(--accent-glow);
  text-decoration: none;
}

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; }

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-hi);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-hi) 0%, #a78bfa 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow), 0 1px 2px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: var(--accent-hi);
  box-shadow: 0 0 40px var(--accent-glow), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: var(--glass-hi);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* --- Price Badge --- */
.price-strip {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.price-item {
  text-align: center;
}
.price-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.price-item .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.price-item .note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.feature-card {
  padding: 28px;
  transition: all 0.2s;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- Included / Not Included --- */
.included-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.included-col { padding: 32px; }

.included-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.included-col.yes h3 { color: var(--green); }
.included-col.no h3 { color: var(--red); }

.included-col ul { list-style: none; }
.included-col ul li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.included-col ul li:last-child { border-bottom: none; }

.check { color: var(--green); flex-shrink: 0; font-weight: 700; }
.cross { color: var(--red); flex-shrink: 0; font-weight: 700; opacity: 0.7; }

/* --- Proof --- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.proof-card {
  padding: 24px;
  text-align: center;
}

.proof-card .proof-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.proof-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.proof-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.proof-cmd {
  margin-top: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  overflow-x: auto;
}
.proof-cmd span { color: var(--green); }

/* --- Screenshots --- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.screenshot-card {
  display: block;
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  text-decoration: none;
}
.screenshot-card:hover { text-decoration: none; }

.screenshot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

/* Desktop-only hover zoom */
@media (hover: hover) {
  .screenshot-card:hover img {
    transform: scale(1.03);
  }
}

.screenshot-label {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* --- Lightbox (CSS-only) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox:target {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: default;
}

.lightbox-wrap {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
}

.lightbox-wrap img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-hi);
  border: 1px solid var(--border-hi);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

/* --- Handoff --- */
.handoff-box {
  padding: 40px;
  margin-top: 40px;
  max-width: 700px;
}

.handoff-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.handoff-list { list-style: none; }
.handoff-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.handoff-list li:last-child { border-bottom: none; }

.handoff-note {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  font-size: 0.85rem;
  color: var(--orange);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-list {
  max-width: 740px;
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--accent-hi); }

.faq-q .arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* --- Footer --- */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-disclaimer {
  max-width: 680px;
  margin: 0 auto 24px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--red-dim);
  border: 1px solid rgba(239, 68, 68, 0.15);
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.footer-disclaimer strong { color: var(--red); }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 0.85rem; color: var(--text-dim); }
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .hero { padding: 120px 0 64px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .included-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }

  .price-strip { gap: 20px; }
  .handoff-box { padding: 24px; }
}

@media (max-width: 480px) {
  .proof-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
