/* ===================================================================
   DynaLake — brand stylesheet
   Palette sampled directly from the logo artwork:
     navy   #1a2231 / #1f2b3b   (page + logo background — logos blend in)
     gold   #c0a070             (primary accent)
     blue   #4d9fd6             (secondary "circuit" accent)
=================================================================== */

:root {
  --navy-900: #141b27;
  --navy-800: #1a2231;
  --navy-700: #1f2b3b;   /* matches complex-logo background */
  --navy-600: #26344a;
  --line:     #33425c;

  --gold:     #c0a070;
  --gold-lt:  #d8c08c;
  --blue:     #4d9fd6;
  --blue-lt:  #7fc0ef;

  --ink:      #eef2f8;
  --muted:    #a7b4c8;
  --muted-dim:#7f8da2;

  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.6);

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(var(--maxw), 92vw); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .8rem;
}

.grad {
  background: linear-gradient(100deg, var(--gold-lt), var(--gold) 55%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: .85em 1.5em;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(120deg, var(--gold-lt), var(--gold));
  color: #22190a;
  box-shadow: 0 10px 26px -10px rgba(192,160,112,.7);
}
.btn--gold:hover { box-shadow: 0 16px 34px -10px rgba(192,160,112,.9); }
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,27,39,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51,66,92,.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; }
.brand__mark { border-radius: 9px; }
.brand__text { font-size: 1.12rem; letter-spacing: -.01em; }
.brand__llc { color: var(--gold); font-weight: 600; }

.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .18s; }
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__cta {
  color: var(--gold-lt);
  border: 1px solid var(--line);
  padding: .5em 1.1em; border-radius: 999px;
}
.nav__links .nav__cta:hover { border-color: var(--gold); }

/* Client tools / account — person icon (last control, after CTA) */
.nav__links .nav__account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  flex-shrink: 0;
  transition: color .18s, border-color .18s, background .18s;
}
.nav__links .nav__account:hover,
.nav__links .nav__account[aria-current="page"] {
  color: var(--gold-lt);
  border-color: var(--gold);
  background: rgba(192, 160, 112, .08);
}
.nav__account-icon { display: block; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(77,159,214,.16), transparent 60%),
    radial-gradient(90% 80% at 10% 10%, rgba(192,160,112,.10), transparent 55%),
    var(--navy-700);
  border-bottom: 1px solid rgba(51,66,92,.5);
  overflow: hidden;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
  padding: clamp(3rem, 7vw, 6.5rem) 0;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 44ch; margin: 1.4rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__stats {
  list-style: none; margin: 2.6rem 0 0; padding: 1.6rem 0 0; display: flex; gap: 2.2rem; flex-wrap: wrap;
  border-top: 1px solid rgba(51,66,92,.6);
}
.hero__stats strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--gold-lt); }
.hero__stats span { font-size: .85rem; color: var(--muted); }

.hero__art { position: relative; }
.hero__img {
  width: 100%;
  /* transparent PNG — sits directly on the hero with a soft glow behind it */
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}
.hero__glow {
  position: absolute; inset: 8% 8% auto; height: 60%; z-index: -1;
  background: radial-gradient(closest-side, rgba(77,159,214,.35), transparent);
  filter: blur(30px);
}

/* ---------------- US-based trust bar ---------------- */
.usbar {
  background: linear-gradient(90deg, rgba(192,160,112,.10), rgba(77,159,214,.10));
  border-bottom: 1px solid rgba(51,66,92,.5);
}
.usbar__inner {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  padding: .85rem 0; text-align: center; flex-wrap: wrap;
}
.usbar__flag {
  flex: none; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.usbar p { margin: 0; font-size: .92rem; color: var(--muted); }
.usbar strong { color: var(--ink); font-family: var(--font-head); font-weight: 600; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--navy-900); border-block: 1px solid rgba(51,66,92,.5); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.section__sub { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }

/* ---------------- Service cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: linear-gradient(180deg, rgba(38,52,74,.35), rgba(26,34,49,.35));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 12px; margin-bottom: 1.1rem;
  background: rgba(77,159,214,.12); border: 1px solid rgba(77,159,214,.28);
}
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.card > p { color: var(--muted); font-size: .96rem; margin: 0 0 1rem; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.card ul li { position: relative; padding-left: 1.2rem; font-size: .9rem; color: var(--muted); }
.card ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

/* ---------------- Approach ---------------- */
.approach { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.approach__copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.approach__copy > p { color: var(--muted); max-width: 52ch; }
.checklist { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .85rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; color: #22190a; border-radius: 6px;
  background: linear-gradient(120deg, var(--gold-lt), var(--gold));
}
.approach__panel {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow);
}
.approach__mark { width: 64px; margin-bottom: 1.2rem; border-radius: 12px; }
.approach__panel blockquote { margin: 0; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; line-height: 1.5; }
.approach__sign { color: var(--gold); font-size: .9rem; margin-top: 1rem; }

/* ---------------- Chips ---------------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.chips li {
  font-family: var(--font-head); font-weight: 500; font-size: .9rem;
  padding: .55em 1.05em; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  background: rgba(255,255,255,.02); transition: .2s;
}
.chips li:hover { border-color: var(--blue); color: var(--blue-lt); }

/* ---------------- AI & automation ---------------- */
.section--ai {
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(77,159,214,.18), transparent 60%),
    radial-gradient(60% 80% at 80% 110%, rgba(192,160,112,.10), transparent 55%),
    var(--navy-900);
  border-block: 1px solid rgba(51,66,92,.5);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .section__sub { margin-inline: auto; }

.ai__providers {
  display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center;
  margin: 0 auto 3rem; max-width: 900px;
}
.ai__group {
  flex: 1 1 260px; min-width: 240px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(26,34,49,.4); padding: 1.2rem 1.3rem;
}
.ai__grouplabel {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 1rem;
}
.ai__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.ai__list li {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .55rem .9rem; border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38,52,74,.6), rgba(26,34,49,.6));
}
.ai__list strong { font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--ink); }
.ai__list span { font-size: .72rem; color: var(--muted); }

.ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* ---------------- Open source ---------------- */
.section--oss {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(77,159,214,.14), transparent 55%),
    radial-gradient(80% 120% at 90% 100%, rgba(192,160,112,.12), transparent 55%),
    var(--navy-800);
  border-block: 1px solid rgba(51,66,92,.5);
}
.oss { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.oss__intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1rem; }
.oss__intro > p { color: var(--muted); max-width: 52ch; }
.oss__intro .checklist { margin-top: 1.6rem; }

.oss__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.oss__tile {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.3rem 1.3rem;
  background: linear-gradient(180deg, rgba(38,52,74,.5), rgba(26,34,49,.5));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.oss__tile:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }
.oss__ico { font-size: 1.6rem; line-height: 1; margin-bottom: .5rem; }
.oss__tile strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }
.oss__tile span:last-child { font-size: .82rem; color: var(--muted); }
.oss__tile--more { border-style: dashed; background: transparent; }
.oss__tile--more:hover { border-color: var(--gold); }

/* ---------------- Case studies ---------------- */
.page-hero {
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(77,159,214,.16), transparent 60%),
    radial-gradient(90% 80% at 10% 10%, rgba(192,160,112,.10), transparent 55%),
    var(--navy-700);
  border-bottom: 1px solid rgba(51,66,92,.5);
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 60ch; margin: 1.2rem auto 0; font-size: 1.08rem; }

.cases { display: grid; gap: 2rem; }
.case {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(38,52,74,.28), rgba(26,34,49,.28));
  overflow: hidden;
}
.case__head { padding: 1.8rem 1.9rem 0; }
.case__tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-lt); background: rgba(77,159,214,.12);
  border: 1px solid rgba(77,159,214,.28); border-radius: 999px; padding: .3em .9em;
}
.case__head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 700; margin: 1rem 0 .5rem; }
.case__head p { color: var(--muted); margin: 0; max-width: 75ch; }

.case__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding: 1.6rem 1.9rem; }
.case__col {
  border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.4rem;
  background: rgba(20,27,39,.4);
}
.case__col--before { border-color: rgba(200,90,90,.35); }
.case__col--after  { border-color: rgba(192,160,112,.45); }
.case__col h3 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 600; margin-bottom: 1rem;
}
.case__line { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .92rem; border-bottom: 1px dashed rgba(51,66,92,.6); }
.case__line span:first-child { color: var(--muted); }
.case__line span:last-child { font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.case__total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-family: var(--font-head); }
.case__total span:last-child { font-weight: 700; font-size: 1.15rem; }
.case__col--before .case__total span:last-child { color: #e58b8b; }
.case__col--after  .case__total span:last-child { color: var(--gold-lt); }

.case__savings {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.4rem;
  padding: 1.3rem 1.9rem; margin: 0 1.9rem 1.9rem; border-radius: 12px;
  background: linear-gradient(120deg, rgba(192,160,112,.16), rgba(77,159,214,.14));
  border: 1px solid rgba(192,160,112,.35);
}
.case__savings strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-lt); }
.case__savings b { font-family: var(--font-head); color: var(--ink); }
.case__savings span { color: var(--muted); font-size: .92rem; }
.cases__note { color: var(--muted-dim); font-size: .82rem; text-align: center; margin-top: 2.4rem; }

/* ---------------- Client tools hub ---------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(38,52,74,.4), rgba(26,34,49,.35));
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
  min-height: 100%;
}
.tool-card:hover { transform: translateY(-3px); border-color: rgba(192,160,112,.45); box-shadow: var(--shadow); }
.tool-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(192,160,112,.12);
  border: 1px solid rgba(192,160,112,.28);
  color: var(--gold-lt);
  font-size: 1.35rem;
  line-height: 1;
}
.tool-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.tool-card p {
  color: var(--muted);
  margin: 0;
  flex: 1;
  font-size: .95rem;
}
.tool-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .4rem;
}
.tool-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .28em .75em;
  border: 1px solid var(--line);
  color: var(--muted);
}
.tool-badge--soon {
  color: var(--blue-lt);
  background: rgba(77,159,214,.12);
  border-color: rgba(77,159,214,.28);
}
.tool-badge--live {
  color: var(--gold-lt);
  background: rgba(192,160,112,.14);
  border-color: rgba(192,160,112,.35);
}
.tools-note {
  color: var(--muted-dim);
  font-size: .88rem;
  margin-top: 2.2rem;
  max-width: 62ch;
}

@media (max-width: 680px) {
  .case__compare { grid-template-columns: 1fr; }
}

/* ---------------- Contact CTA ---------------- */
.section--cta {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(192,160,112,.14), transparent 60%),
    var(--navy-900);
  text-align: center;
}
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.contact > p { color: var(--muted); max-width: 48ch; margin: 1rem auto 2rem; }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.contact__note { font-size: .8rem; color: var(--muted-dim); margin-top: 1.6rem; }

/* ---------------- Footer ---------------- */
.footer { padding: 2.6rem 0; border-top: 1px solid rgba(51,66,92,.5); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer__tag { color: var(--muted); font-size: .9rem; margin: 0; }
.footer__copy { color: var(--muted-dim); font-size: .82rem; margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .approach { grid-template-columns: 1fr; }
  .oss { grid-template-columns: 1fr; }
  .ai__grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--line);
    padding: 1rem 6vw 1.6rem; transform: translateY(-140%); transition: transform .3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .8rem 0; width: 100%; }
  .nav__links .nav__cta { text-align: center; margin-top: .6rem; }
  .nav__links .nav__account {
    width: 100%;
    height: auto;
    padding: .7rem 0;
    margin-top: .4rem;
    border-radius: 12px;
  }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
