/* ============================================================
   WinGeno Website — main.css
   Mobile-first, no framework dependency
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --accent:       #4A8F92;
  --accent-light: #8ECFD1;
  --accent-dark:  #326063;
  --amber:        #E8A020;
  --female:       #E2CFA4;
  --male:         #9DC4C6;

  --bg:           #fafaf7;
  --bg-alt:       #f0f0eb;
  --surface:      #ffffff;
  --border:       #d8d8d0;

  --text:         #1a1a1a;
  --text-muted:   #6b6b6b;
  --text-on-accent: #ffffff;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.14);

  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --max-w:        1100px;
  --nav-h:        64px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

section { padding-block: 5rem; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background .25s, box-shadow .25s;
}

.site-nav.scrolled {
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo:hover,
.nav-logo:active,
.nav-logo:focus {
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  background: var(--accent);
  color: var(--text-on-accent) !important;
  padding: .45rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.nav-mobile a { font-size: 1rem; font-weight: 500; color: var(--text); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #0f3638 0%, var(--accent-dark) 45%, var(--accent) 100%);
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(142,207,209,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  padding-block: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 100px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  max-width: 650px;
}

.hero h1 span { color: var(--accent-light); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: var(--accent-dark);
}
.btn-primary:hover {
  background: var(--female);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255,255,255,.1);
  text-decoration: none;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Section headers ---------- */
.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: .75rem;
  max-width: 540px;
}

/* ---------- What is a Genogram ---------- */
.intro {
  background: var(--surface);
}

.intro-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.intro-visual {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

/* SVG mini genogram inside intro */
.mini-geno { width: 100%; max-width: 340px; }

@media (min-width: 768px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Features ---------- */
.features { background: var(--bg); }

.features-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p  { font-size: .9rem; color: var(--text-muted); }

@media (min-width: 600px)  { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Screenshot ---------- */
.screenshot-section {
  background: var(--bg-alt);
}

.screenshot-frame {
  margin: 3rem auto 0;
  max-width: var(--max-w);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
}

.screenshot-frame img {
  display: block;
  height: auto;
  border-radius: 8px;
}

/* ---------- Platforms ---------- */
.platforms { background: var(--surface); }

.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: 90px;
  text-decoration: none;
}

.platform-item svg {
  width: 40px;
  height: 40px;
  fill: var(--text-muted);
  transition: fill .2s;
}

.platform-item:hover svg { fill: var(--accent); }

.platform-item--soon {
  position: relative;
  cursor: default;
  opacity: .55;
  pointer-events: none;
}

.platform-item--soon::after {
  content: 'coming soon';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--accent);
  padding: .1rem .35rem;
  border-radius: 4px;
}

.platform-item span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Pricing ---------- */
.pricing { background: var(--bg); }

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.price-card.featured {
  border-color: var(--accent);
  position: relative;
  box-shadow: var(--shadow-md);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.price-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .25rem; }
.price-amount { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; margin: .75rem 0; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.75rem; }
.price-features li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.price-features li.no::before { content: '–'; color: var(--border); }
.price-features li.no { color: var(--text-muted); }

@media (min-width: 640px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .pricing-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* ---------- Download CTA ---------- */
.download-cta {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  text-align: center;
  padding-block: 5rem;
}

.download-cta h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.download-cta p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }
.download-cta .platform-item svg  { fill: rgba(255,255,255,.75); }
.download-cta .platform-item:hover svg { fill: #fff; }
.download-cta .platform-item span { color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
.site-footer {
  background: #111;
  color: rgba(255,255,255,.5);
  padding-block: 2.5rem;
  font-size: .85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer-links a:hover { color: var(--accent-light); text-decoration: none; }

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-center .section-sub { margin-inline: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
