/* ===========================================================
   MemClone.com — shared design system
   White/blue clinical-tech theme, matching the DeepCog.ai
   portfolio's visual language (Roboto type, navy/blue palette,
   domain-card grid, soft shadows).
   =========================================================== */

:root{
  --bg:      #ffffff;
  --bg2:     #f7f9fc;
  --surface: #ffffff;
  --text:    #0f172a;
  --text2:   #475569;
  --text3:   #94a3b8;
  --border:  #e1e8f5;
  --blue:    #2563eb;
  --blue-dark:#1d4ed8;
  --green:   #16a34a;
  --ff:      'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, monospace;
  --ff-slab: 'Roboto Slab', Georgia, serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff);
  color:var(--text);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--blue-dark); text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }
h1,h2,h3,h4{ font-family:var(--ff-slab); color:var(--text); line-height:1.2; margin:0; }
p{ margin:0 0 1em; }
.wrap{ max-width:1200px; margin:0 auto; padding:0 5%; }

/* ── Reveal-on-scroll ── */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.fade-up{ opacity:0; transform:translateY(14px); animation:fadeUp .6s ease forwards; }
@keyframes fadeUp{ to{ opacity:1; transform:translateY(0); } }

/* ── Section basics ── */
.section-label{
  display:flex; align-items:center; gap:10px;
  font-family:var(--ff-mono); font-size:.72rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--green); margin-bottom:20px;
}
.section-label span{ display:inline-block; width:28px; height:2px; background:var(--green); border-radius:1px; }
.gradient-text{
  background:linear-gradient(90deg, var(--blue), #7c3aed);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.divider{ height:1px; background:var(--border); margin:0; }

/* ── Buttons & tags ── */
.btn-primary, .btn-ghost{
  display:inline-block; padding:13px 28px; border-radius:8px;
  font-weight:700; font-size:.98rem; transition:all .15s ease;
}
.btn-primary{ background:var(--blue); color:#fff; }
.btn-primary:hover{ background:var(--blue-dark); text-decoration:none; }
.btn-ghost{ background:transparent; color:var(--text); border:1px solid var(--border); }
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue); text-decoration:none; }
.tag{ display:inline-block; padding:4px 12px; border-radius:999px; font-size:.75rem; font-weight:700; letter-spacing:.02em; }
.tag-cyan{ background:#ecfeff; color:#0e7490; }
.tag-green{ background:#f0fdf4; color:#15803d; }
.tag-pink{ background:#fdf2f8; color:#be185d; }
.tag-amber{ background:#fffbeb; color:#b45309; }
.tag-purple{ background:#f5f3ff; color:#6d28d9; }

/* ── Nav ── */
nav{
  position:sticky; top:0; z-index:300;
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 5%; background:rgba(255,255,255,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.nav-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo:hover{ text-decoration:none; }
.nav-logo-mark{
  width:36px; height:36px; border-radius:50%; flex-shrink:0;
  background:radial-gradient(circle at 32% 28%, #3b82f6, #1e3a8a 70%);
  display:flex; align-items:center; justify-content:center;
}
.brand-logo-img{ height:40px; width:auto; display:block; flex-shrink:0; }
.brand-logo-img--sm{ height:32px; }
@media (max-width:480px){ .brand-logo-img{ height:34px; } }
.nav-links{ list-style:none; display:flex; align-items:center; gap:26px; margin:0; padding:0; }
.nav-links a{ color:var(--text); font-size:.92rem; font-weight:500; }
.nav-links a.active{ color:var(--blue); }
.nav-links a:hover{ color:var(--blue); text-decoration:none; }
.nav-links .nav-cta{
  background:var(--blue); color:#fff !important; padding:10px 20px;
  border-radius:8px; font-weight:700;
}
.nav-links .nav-cta:hover{ background:var(--blue-dark); }

.hamburger{
  display:none; flex-direction:column; justify-content:center; align-items:center;
  gap:5px; width:40px; height:40px; background:none; border:none; cursor:pointer;
  padding:6px; border-radius:6px; z-index:200; flex-shrink:0;
}
.hamburger:hover{ background:#f1f5f9; }
.hamburger span{ display:block; width:22px; height:2px; background:#111827; border-radius:2px; transition:transform .28s ease, opacity .2s ease, width .2s ease; }
.hamburger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2){ opacity:0; width:0; }
.hamburger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:860px){
  .hamburger{ display:flex; }
  .nav-links{
    display:none; position:fixed; top:64px; left:0; right:0;
    background:#fff; border-bottom:2px solid var(--border);
    box-shadow:0 8px 28px rgba(0,0,0,.10);
    flex-direction:column; align-items:stretch; padding:8px 0 16px; gap:0; z-index:150;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; padding:14px 6%; border-bottom:1px solid #f0f4f8; }
  .nav-links .nav-cta{ margin:12px 6% 0 !important; text-align:center; border-radius:8px; }
}

/* ── Hero ── */
.page-hero{
  padding:88px 5% 56px;
  background:linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  border-bottom:1px solid var(--border);
}
.page-hero h1{ max-width:840px; font-size:clamp(1.9rem, 4vw, 3rem); margin-bottom:20px; }
.page-hero p{ max-width:720px; font-size:1.1rem; color:var(--text2); }

.hero{
  min-height:calc(100vh - 65px);
  display:flex; align-items:center; gap:48px;
  padding:56px 5%; position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(37,99,235,.10), transparent 45%),
    radial-gradient(circle at 15% 82%, rgba(124,58,237,.08), transparent 45%),
    #ffffff;
}
.hero-content{ flex:1 1 480px; max-width:600px; position:relative; z-index:1; }
.hero h1{ font-size:clamp(2rem, 4.4vw, 3.4rem); margin-bottom:22px; }
.hero h1 em{ font-style:normal; color:var(--blue); }
.hero-sub{ font-size:1.12rem; color:var(--text2); max-width:560px; margin-bottom:34px; }
.hero-btns{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-visual{ flex:1 1 380px; max-width:460px; position:relative; z-index:1; }
@media (max-width:900px){
  .hero{ flex-direction:column; padding-top:40px; }
  .hero-visual{ order:-1; max-width:320px; margin:0 auto; }
}

/* ── Domain-card grid ── */
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:900px){ .grid-2,.grid-3{ grid-template-columns:1fr; } }

.domain-card{
  background:var(--surface); border:1px solid var(--border);
  border-radius:14px; overflow:hidden; transition:all .22s;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
}
.domain-card:hover{ border-color:#93c5fd; box-shadow:0 10px 36px rgba(37,99,235,.13); transform:translateY(-4px); text-decoration:none; }
.domain-thumb{
  width:100%; aspect-ratio:16/7; display:flex; align-items:center; justify-content:center;
}
.domain-thumb svg{ width:56px; height:56px; }
.domain-thumb.c1{ background:linear-gradient(135deg,#eff4ff,#dbeafe); }
.domain-thumb.c2{ background:linear-gradient(135deg,#f0fdf4,#dcfce7); }
.domain-thumb.c3{ background:linear-gradient(135deg,#fdf2f8,#fce7f3); }
.domain-thumb.c4{ background:linear-gradient(135deg,#fffbeb,#fef3c7); }
.domain-thumb.c5{ background:linear-gradient(135deg,#ecfdf5,#d1fae5); }
.domain-thumb.c6{ background:linear-gradient(135deg,#f0fdfa,#ccfbf1); }
.domain-body{ padding:22px 24px 24px; flex:1; display:flex; flex-direction:column; }
.domain-card h3{ margin-bottom:8px; font-size:1.02rem; font-weight:700; font-family:var(--ff); }
.domain-card p{ color:var(--text2); font-size:.875rem; line-height:1.65; flex:1; margin-bottom:0; }

/* ── Content sections (research-style pages) ── */
.content-section{ padding:56px 0; max-width:820px; margin:0 auto; }
.content-section + .content-section{ border-top:1px solid var(--border); }
.content-section h2{ font-size:1.6rem; margin-bottom:16px; }
.content-section h3{ font-size:1.1rem; margin-bottom:10px; }
.content-section p{ color:var(--text2); font-size:1rem; line-height:1.75; }
.content-section ul{ color:var(--text2); font-size:1rem; line-height:1.75; padding-left:22px; margin:0 0 20px; }
.content-section table{ width:100%; border-collapse:collapse; font-size:.9rem; }
.content-section table th, .content-section table td{ text-align:left; padding:14px 16px; border-bottom:1px solid var(--border); }
.content-section table th{ background:var(--bg2); color:var(--text); font-weight:700; }
.content-section table td{ color:var(--text2); }
.content-section table td:first-child{ font-weight:600; color:var(--text); }
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:12px; }
.formula-box{
  background:var(--bg2); border:1px solid var(--border); border-radius:12px;
  padding:20px 24px; font-family:var(--ff-mono); font-size:1.05rem; text-align:center; margin:20px 0;
}
.refs{ font-size:.88rem; color:var(--text3); }
.refs li{ margin-bottom:6px; }

/* ── Values / feature cards ── */
.value-card{
  border:1px solid var(--border); border-radius:14px; padding:26px 24px;
  background:var(--surface); box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.value-icon{
  width:52px; height:52px; border-radius:12px; margin-bottom:16px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#eff4ff,#dbeafe);
}
.value-icon svg{ width:26px; height:26px; }
.value-card h3{ font-size:1rem; margin-bottom:8px; }
.value-card p{ color:var(--text2); font-size:.9rem; margin:0; }

/* ── CTA ── */
.cta-section{ text-align:center; padding:100px 5%; background:linear-gradient(135deg,#eff4ff 0%,#f5f0ff 100%); }
.cta-section h2{ margin-bottom:18px; font-size:1.9rem; }
.cta-section p{ color:var(--text2); max-width:560px; margin:0 auto 36px; }

/* ── Contact form ── */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .full{ grid-column:1/-1; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field label{ display:block; font-size:.85rem; font-weight:600; color:var(--text); margin-bottom:6px; }
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border:1px solid var(--border); border-radius:8px;
  font-family:var(--ff); font-size:.95rem; color:var(--text); background:#fff;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(37,99,235,.12); }
.field textarea{ resize:vertical; min-height:130px; }

/* ── Footer ── */
footer{ background:var(--bg2); border-top:1px solid var(--border); padding:56px 5% 24px; }
.footer-grid{ display:flex; flex-wrap:wrap; gap:48px; justify-content:space-between; margin-bottom:36px; }
.footer-brand{ max-width:300px; }
.footer-brand p{ color:var(--text2); font-size:.9rem; }
.footer-col h4{ font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text); margin-bottom:14px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:9px; font-size:.9rem; }
.footer-col a{ color:var(--text2); }
.footer-col a:hover{ color:var(--blue); }
.footer-legal-links{ display:flex; flex-wrap:wrap; gap:18px; font-size:.82rem; padding:18px 0; border-top:1px solid var(--border); }
.footer-legal-links a{ color:var(--text3); }
.footer-bottom{ display:flex; flex-wrap:wrap; gap:8px 20px; justify-content:space-between; font-size:.8rem; color:var(--text3); padding-top:4px; }
