/* Syncomics AI LLC — Minimalist biotech + AI aesthetic */
:root{
  --bg: #ffffff;
  --text: #0b1020;
  --muted: #5a657a;
  --purple-900: #3a0f6e; /* deep */
  --purple-800: #45117f;
  --purple-700: #4c1d95; /* main headings */
  --navy-800: #142239;
  --navy-700: #1b2a4a; /* accent */
  --silver-200: #e8edf3;
  --silver-300: #dbe3ee;
  --silver-400: #c7d0dc; /* borders */
  --card-bg: #ffffff;
  --shadow: 0 6px 24px rgba(17, 23, 39, 0.08), 0 2px 8px rgba(17, 23, 39, 0.06);
  --radius: 14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow{ width: min(860px, 92%); }

h1,h2,h3{ color: var(--purple-700); line-height: 1.2; margin: 0 0 .5rem 0; }
.display{ font-size: clamp(2.2rem, 4.5vw + 1rem, 4rem); font-weight: 800; letter-spacing: -0.02em; }
.tagline{ font-size: clamp(1.15rem, 1.6vw + .6rem, 1.5rem); color: var(--navy-700); font-weight: 600; margin: .4rem 0 .8rem; }
.subheading{ color: var(--muted); max-width: 62ch; }
.lead{ color: var(--navy-700); font-weight: 500; }
.muted{ color: var(--muted); }

.section{ position: relative; }
.section-padded{ padding: 5rem 0; }
.section-muted{ padding: 5rem 0; background: linear-gradient(180deg, #f9fbff 0%, #f6f9ff 100%); border-top: 1px solid var(--silver-300); border-bottom: 1px solid var(--silver-300); }

/* Header */
.site-header{ position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.86); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid rgba(199, 208, 220, 0.6); }
.header-inner{ display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand{ display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-logo{ display:block; height: 42px; width: auto; }
.brand-embed{ position: relative; display: inline-flex; align-items: center; }
.logo-embed{ display:block; border:0; background: transparent; }
.logo-embed.header{ height: 42px; width: auto; aspect-ratio: auto; }
.logo-embed.hero{ width: auto; max-width: min(100%, 780px); height: clamp(110px, 10vw + 70px, 170px); border: 0; display: block; margin: 0; box-sizing: border-box; }
/* Hide fallback images only when the corresponding embed is confirmed loaded */
.header-embed-loaded .brand-logo{ display:none; }
.hero-embed-loaded .logo-heading .logo-img{ display:none; }
.logo-embed.hidden{ display:none !important; }
.site-nav{ display: flex; align-items: center; gap: 1rem; }
.site-nav a{ color: var(--navy-700); text-decoration: none; font-weight: 600; padding: .5rem .7rem; border-radius: 10px; }
.site-nav a:hover{ color: var(--purple-700); background: #f1f4fb; }
/* Ensure header CTA text stays white */
.site-nav .btn-primary, .site-nav .btn-primary:hover, .site-nav .btn-primary:focus{ color: #ffffff; background: linear-gradient(180deg, var(--purple-700), var(--purple-800)); }

/* Hero */
.hero{ padding: 1.6rem 0 4.5rem; overflow: hidden; }
.hero-inner{ display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.hero-copy .cta-group{ display: flex; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; }
.hero-visual{ display:none; }
.hero-svg{ display:none; }
.hero-glow{ position: absolute; inset: -20% -10% auto -10%; height: 460px; background: radial-gradient(70% 60% at 25% 25%, rgba(76,29,149,.18), rgba(27,42,74,.10) 42%, rgba(255,255,255,0) 72%); pointer-events: none; }

/* Cards & grids */
.card-grid{ display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; }
.card{ background: var(--card-bg); border: 1px solid var(--silver-300); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.2rem; position: relative; }
.card::before{ content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--purple-700), var(--navy-700)); border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.features .feature{ display: grid; grid-template-columns: 40px 1fr; align-items: start; gap: .9rem; }
.features .icon{ width: 40px; height: 40px; color: var(--purple-700); background: #f3f0fb; border-radius: 10px; display: grid; place-items: center; }
.features h3{ margin: 0; font-size: 1rem; color: var(--navy-700); }
.services{ grid-template-columns: repeat(3, 1fr); }
.service h3{ margin-bottom: .4rem; }
.service-visual{ width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--silver-300); margin-bottom: .6rem; box-shadow: var(--shadow); background: #fff; }

/* Hero logo sized to match heading text */
.logo-heading{ line-height: 1.05; margin: 0 0 0.000005in 0; }
.logo-heading .logo-img{ width: min(100%, 520px); height: auto; display: block; }
.tagline{ margin-top: 0; }
.hero-figure{ margin-top: 1rem; }
/* Embedded omics integration visual */
.integration-object{ display:block; width:100%; height: clamp(320px, 40vw, 520px); border:0; background: transparent; overflow: hidden; }
/* No iframe embed for integration image after revert */
.point{ display: flex; align-items: center; min-height: 88px; }
.point h3{ margin: 0; color: var(--navy-700); font-weight: 700; }

/* Buttons */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font-weight: 700; border-radius: 12px; padding: .8rem 1rem; transition: transform .06s ease, background .2s ease, color .2s ease, box-shadow .2s ease; border: 1px solid transparent; }
.btn-sm{ padding: .5rem .75rem; font-weight: 700; }
.btn-primary{ background: linear-gradient(180deg, var(--purple-700), var(--purple-800)); color: #fff; box-shadow: 0 8px 20px rgba(76,29,149,.22); }
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(76,29,149,.3); }
.btn-ghost{ background: #ffffff; color: var(--purple-700); border-color: var(--silver-400); }
.btn-ghost:hover{ background: #f7f9ff; color: var(--purple-800); border-color: var(--purple-700); }

/* CTA */
.cta{ background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%); padding: 4rem 0 5rem; border-top: 1px solid var(--silver-300); }
.cta-inner{ display: grid; place-items: center; text-align: center; gap: .8rem; }

/* Media frame for overview figure */
.media-frame{ border: 1px solid var(--silver-300); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.media-frame img{ display: block; width: 100%; height: auto; }

/* Note */
.note{ background: #ffffff; border-left: 4px solid var(--purple-700); border-radius: 10px; padding: 1rem 1rem; box-shadow: var(--shadow); border: 1px solid var(--silver-300); margin: 1rem 0; color: var(--navy-700); }

/* Footer */
.site-footer{ border-top: 1px solid var(--silver-300); background: #f9fbff; padding: 2rem 0; }
.footer-inner{ display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand{ display: grid; gap: .25rem; color: var(--navy-700); }
.footline{ color: var(--purple-700); font-weight: 700; }
.footnote{ color: var(--muted); }
.footer-nav a{ color: var(--navy-700); text-decoration: none; font-weight: 600; margin-right: 1rem; }
.footer-nav a:hover{ color: var(--purple-700); }

/* Accessibility helpers */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1000px){
  .hero-inner{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; min-height: 260px; }
  .card-grid{ grid-template-columns: repeat(2, 1fr); }
  .services{ grid-template-columns: repeat(2, 1fr); }
}

  .service-embed{ display:block; width: 100%; height: 220px; border: 1px solid var(--silver-300); border-radius: 10px; box-shadow: var(--shadow); background: #fff; margin-bottom: .6rem; }
  .service-embed{ will-change: transform; animation: svc-float 9s ease-in-out infinite alternate; transform-origin: center; }
  .service-embed:hover{ animation-duration: 6s; }
  @keyframes svc-float{ 0%{ transform: translateY(0) } 100%{ transform: translateY(-6px) } }
  @media (prefers-reduced-motion: reduce){ .service-embed{ animation: none } }
@media (max-width: 640px){
  .site-nav a:not(.btn){ display: none; }
  .card-grid{ grid-template-columns: 1fr; }
  .services{ grid-template-columns: 1fr; }
  .section-padded, .section-muted{ padding: 3.5rem 0; }
}
