/* DNAlyse — bright/white redesign
   Aesthetic: clean medical/biotech, light surfaces with the brand cyan→teal gradient
   from the original DNAlyse logo (#0FCFE9 → #0BDCCC). */

:root {
  --bg: #ffffff;
  --bg-2: #f4f9fb;
  --surface: #ffffff;
  --surface-2: #f1f7f9;
  --line: #e3ecf1;
  --line-strong: #cfdde5;
  --text: #0a2233;
  --text-dim: #4a6478;
  --muted: #7a8fa1;
  --cyan: #0fcfe9;       /* logo cyan */
  --cyan-deep: #0aa9c2;
  --teal: #0bdccc;       /* logo teal-green */
  --teal-deep: #07a89c;
  --ink: #062836;        /* dark accent (used sparingly) */
  --grad: linear-gradient(135deg, #0fcfe9 0%, #0bdccc 100%);
  --grad-soft: linear-gradient(135deg, rgba(15,207,233,0.12), rgba(11,220,204,0.10));
  --grad-strong: linear-gradient(135deg, #0aa9c2 0%, #07a89c 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 60px -25px rgba(11, 80, 95, 0.25);
  --shadow-card: 0 10px 30px -15px rgba(11, 80, 95, 0.18);
  --shadow-soft: 0 4px 16px -8px rgba(11, 80, 95, 0.15);
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--text-dim); }
a  { color: var(--cyan-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-deep); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--cyan-deep);
  padding: 8px 14px;
  border: 1px solid rgba(15,207,233,0.3);
  border-radius: 999px;
  background: rgba(15,207,233,0.08);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px rgba(15,207,233,0.6);
}

/* ===== Background mesh (very subtle on white) ===== */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(15,207,233,0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 5%, rgba(11,220,204,0.08), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(15,207,233,0.06), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(rgba(11,80,95,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,80,95,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; display: block; }
.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-dim); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 18px; border-radius: 999px;
  background: var(--grad); color: #ffffff !important;
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 6px 18px -8px rgba(15,207,233,0.6);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(15,207,233,0.7); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 80px 0 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.hero h1 .grad-text { display: inline-block; }
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim); max-width: 560px; margin: 24px 0 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  cursor: pointer; transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad); color: #ffffff;
  box-shadow: 0 12px 28px -10px rgba(15,207,233,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(15,207,233,0.7); color: #ffffff; }
.btn-ghost {
  background: #ffffff; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--cyan); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Hero visual: animated DNA helix */
.hero-visual {
  position: relative; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.helix-wrap {
  position: relative; width: 100%; height: 100%;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(135deg, #ecfbfd 0%, #d9f5f4 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.helix-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(15,207,233,0.35), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(11,220,204,0.30), transparent 55%);
  filter: blur(40px);
}
.helix-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.helix-svg .strand { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.helix-svg .s1 { stroke: var(--cyan); filter: drop-shadow(0 0 5px rgba(15,207,233,0.55)); }
.helix-svg .s2 { stroke: var(--teal); filter: drop-shadow(0 0 5px rgba(11,220,204,0.55)); }
.helix-svg .rung { stroke: rgba(6,40,54,0.35); stroke-width: 1.5; }
.helix-svg g.rotate { transform-origin: 50% 50%; animation: spin 20s linear infinite; }
@keyframes spin { from { transform: rotate(0deg);} to { transform: rotate(360deg);} }

.floating-tag {
  position: absolute; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  border: 1px solid var(--line); font-size: 0.82rem; font-weight: 500;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-card);
}
.floating-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(15,207,233,0.7); }
.tag-1 { top: 12%; left: -8%; animation: float 6s ease-in-out infinite; }
.tag-2 { top: 50%; right: -10%; animation: float 7s ease-in-out infinite reverse; }
.tag-3 { bottom: 10%; left: 5%; animation: float 8s ease-in-out infinite; }
.tag-2 .dot { background: var(--teal); box-shadow: 0 0 10px rgba(11,220,204,0.7); }
.tag-3 .dot { background: var(--cyan-deep); box-shadow: 0 0 10px rgba(10,169,194,0.7); }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* ===== Sections ===== */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { font-size: 1.05rem; }

/* ===== Who We Are ===== */
.who-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.who-image {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  position: relative;
}
.who-image img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/5; }
.who-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,40,54,0.35));
}
.who-text p { font-size: 1rem; }
.lang-block {
  margin-top: 28px; padding: 24px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
}
.lang-block .et-flag { font-size: 0.78rem; color: var(--cyan-deep); font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.lang-block p { font-size: 0.92rem; color: var(--text-dim); }
.lang-block p:last-child { margin-bottom: 0; }

/* ===== Methodology ===== */
.method-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.method-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .3s ease;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.method-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.method-card:hover { transform: translateY(-4px); border-color: rgba(15,207,233,0.4); box-shadow: var(--shadow-card); }
.method-card:hover::before { transform: scaleX(1); }
.method-num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.85rem;
  color: var(--cyan-deep); margin-bottom: 12px; letter-spacing: 0.1em;
}
.method-card h3 { color: var(--text); }
.method-card p { font-size: 0.95rem; }

.method-long {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start;
}
.method-long p { font-size: 0.98rem; }
.cert-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.cert-list li {
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.cert-tag {
  flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.78rem;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(15,207,233,0.12); color: var(--cyan-deep);
  letter-spacing: 0.05em;
}
.cert-list span:last-child { font-size: 0.9rem; color: var(--text-dim); }

/* ===== Test sections ===== */
.test-section { padding: 60px 0; }
#test { padding-top: 100px; }
.test-card {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
  padding: 50px; margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
}
.test-card.reverse { grid-template-columns: 1fr 1.2fr; }
.test-card.reverse .test-img-wrap { order: -1; }
.test-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); display: block; }
.test-badge {
  display: inline-block; padding: 6px 14px; border-radius: 6px;
  background: var(--grad); color: #ffffff;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 16px;
}
.test-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.test-card p { font-size: 0.96rem; }
.test-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; font-weight: 600; font-size: 0.9rem;
  color: var(--cyan-deep);
}
.test-link::after { content: "→"; transition: transform .2s; }
.test-link:hover::after { transform: translateX(4px); }

/* ===== Features ===== */
.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feat-card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .3s ease;
  box-shadow: var(--shadow-soft);
}
.feat-card:hover { transform: translateY(-3px); border-color: rgba(15,207,233,0.35); box-shadow: var(--shadow-card); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid rgba(15,207,233,0.25);
  color: var(--cyan-deep);
  font-size: 1.4rem; margin-bottom: 16px;
}
.feat-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat-card p { font-size: 0.88rem; margin: 0; color: var(--text-dim); }

/* ===== Testimonial ===== */
.testimonial {
  margin: 80px auto 0; max-width: 900px;
  padding: 50px;
  background: linear-gradient(135deg, rgba(15,207,233,0.08), rgba(11,220,204,0.06));
  border: 1px solid rgba(15,207,233,0.25);
  border-radius: 28px;
  text-align: center;
  position: relative;
}
.testimonial::before {
  content: "\201C"; position: absolute; top: -10px; left: 30px;
  font-size: 8rem; line-height: 1; color: var(--cyan); opacity: 0.4;
  font-family: serif;
}
.testimonial blockquote {
  margin: 0 0 24px; font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem; font-weight: 500; line-height: 1.5;
  color: var(--text); font-style: italic;
}
.testimonial cite { font-style: normal; color: var(--text-dim); font-size: 0.95rem; }
.testimonial cite strong { color: var(--cyan-deep); font-weight: 600; }

/* ===== CTA strip ===== */
.cta-strip {
  margin: 120px auto 0; max-width: 1100px; padding: 0 24px;
}
.cta-inner {
  padding: 70px 60px;
  background: var(--grad);
  border-radius: 32px;
  display: grid; grid-template-columns: 1.5fr auto; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15,207,233,0.5);
}
.cta-inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.25), transparent 55%);
}
.cta-inner h2 { color: #ffffff; margin: 0; font-size: 2.2rem; position: relative; }
.cta-inner p { color: rgba(255,255,255,0.9); margin: 10px 0 0; position: relative; }
.cta-inner .btn {
  background: #ffffff; color: var(--cyan-deep); position: relative;
}
.cta-inner .btn:hover { background: var(--ink); color: #ffffff; }

/* ===== Footer ===== */
.site-footer {
  margin-top: 120px;
  padding: 70px 0 30px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; margin-top: 16px; color: var(--text-dim); }
.footer-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted); margin-bottom: 18px; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cyan-deep); }
.footer-bottom {
  padding-top: 30px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; gap: 16px;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 100;
  max-width: 700px; margin: 0 auto;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 20px 50px -10px rgba(11,80,95,0.25);
}
.cookie-banner p { font-size: 0.85rem; color: var(--text-dim); margin: 0; flex: 1; min-width: 240px; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  padding: 8px 18px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; border: 0; transition: all .2s;
}
.cookie-accept { background: var(--grad); color: #ffffff; }
.cookie-decline { background: transparent; color: var(--text-dim); border: 1px solid var(--line-strong) !important; }
.cookie-accept:hover { transform: translateY(-1px); }
.cookie-decline:hover { color: var(--text); }
.cookie-banner.hidden { display: none; }

/* ===== Product / detail page tweaks (all-in-one-dna-test.html) ===== */
.feature-pill, .feature-tag, .pill {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.detail-section, .detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .who-grid, .method-long, .test-card, .test-card.reverse { grid-template-columns: 1fr; gap: 30px; }
  .test-card.reverse .test-img-wrap { order: 0; }
  .method-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; padding: 50px 32px; text-align: center; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98); flex-direction: column; gap: 0; padding: 20px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .menu-toggle { display: block; }
  .test-card, .testimonial, .cta-inner { padding: 36px 24px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .feat-grid, .footer-grid { grid-template-columns: 1fr; }
  .testimonial blockquote { font-size: 1.1rem; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
}
