/* Cross-platform system typography:
   Apple platforms: San Francisco via -apple-system / BlinkMacSystemFont.
   Windows: Segoe UI.
   Linux: Ubuntu, Cantarell, Noto Sans or Liberation Sans.
   No Apple font files are bundled or served by the website. */

:root {
  --navy: #071f39;
  --navy-2: #0b2f56;
  --blue: #0d72c9;
  --blue-light: #4da6ef;
  --steel: #62758a;
  --line: #dbe4ec;
  --paper: #f7f9fb;
  --white: #ffffff;
  --orange: #f49a18;
  --text: #15283c;
  --muted: #65778a;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(6, 31, 56, 0.10);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "SF Pro Display",
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Noto Sans",
    "Liberation Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7,31,57,0.08);
}

.nav-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  width: 300px;
  height: 62px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 650;
}

.main-nav a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  color: var(--navy);
}

.hero {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 86px 28px 78px;
  background:
    radial-gradient(circle at 14% 18%, rgba(13,114,201,0.12), transparent 32%),
    radial-gradient(circle at 86% 70%, rgba(244,154,24,0.11), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -230px;
  top: 40px;
  border-radius: 50%;
  border: 1px solid rgba(13,114,201,0.10);
  box-shadow:
    0 0 0 70px rgba(13,114,201,0.025),
    0 0 0 140px rgba(13,114,201,0.018);
}

.hero-inner {
  width: min(980px, 100%);
  position: relative;
  z-index: 1;
}

.eyebrow, .section-kicker, .card-label {
  letter-spacing: 0.18em;
  font-weight: 750;
  color: var(--blue);
  font-size: 0.78rem;
}

.hero h1 {
  margin: 12px 0 20px;
  max-width: 900px;
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
  color: var(--navy);
}

.lead {
  max-width: 770px;
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--navy);
  color: white;
}

.button.primary:hover { background: var(--blue); }

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: var(--navy);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 76px 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading h2,
.about h2 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-heading p,
.about p {
  color: var(--muted);
  font-size: 1rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.pillar-card .icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eef6fc;
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 28px;
}

.pillar-card .icon.strata {
  background: #fff5e5;
  color: var(--orange);
}

.pillar-card h3 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 7px 0 10px;
  color: var(--navy);
}

.pillar-card p:not(.card-label) {
  color: var(--muted);
  flex: 1;
}

.pillar-card > a,
.subprojects a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 750;
}

.subprojects {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.dark-section {
  max-width: none;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white;
  padding-left: max(28px, calc((100vw - 1164px)/2));
  padding-right: max(28px, calc((100vw - 1164px)/2));
}

.section-heading.light h2 { color: white; }
.section-heading.light .section-kicker { color: #71bdf7; }

.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.featured-card {
  min-height: 290px;
  border-radius: var(--radius);
  padding: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-card h3 {
  font-size: 2rem;
  margin: 12px 0 8px;
}

.featured-card p {
  color: #c3d2df;
  max-width: 620px;
}

.featured-card a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.status {
  font-size: 0.72rem;
  letter-spacing: .15em;
  font-weight: 800;
  color: #71bdf7;
}

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 80px;
}

.kernel-mark {
  position: relative;
  height: 310px;
}

.layer {
  position: absolute;
  width: 250px;
  height: 66px;
  left: 50%;
  transform: translateX(-50%) skewY(-9deg);
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(7,31,57,.13);
}

.l1 { top: 20px; background: linear-gradient(90deg, #092a4b, #1678c7); }
.l2 { top: 92px; background: linear-gradient(90deg, #0a777e, #57b0aa); }
.l3 { top: 164px; background: linear-gradient(90deg, #744124, #bd7139); }

.core {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  left: 50%;
  top: 115px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 42% 42%, white 0 6%, #ffd76c 12%, #f49a18 37%, #e26e00 70%);
  box-shadow: 0 0 40px rgba(244,154,24,.55);
}

footer {
  background: #06182b;
  color: #dbe6ef;
  min-height: 130px;
  padding: 32px max(28px, calc((100vw - 1164px)/2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

footer strong { display: block; }
footer span { color: #8fa4b7; font-size: .9rem; }

.footer-right { color: #8fa4b7; font-size: .9rem; }

@media (max-width: 900px) {
  .brand { width: 245px; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .pillars, .featured-grid, .about { grid-template-columns: 1fr; }
  .about { gap: 28px; }
  .kernel-mark { height: 270px; }
}

@media (max-width: 560px) {
  .nav-wrap { padding: 10px 18px; }
  .brand { width: 205px; height: 54px; }
  .hero { padding: 84px 20px 78px; min-height: 590px; }
  .section { padding: 76px 20px; }
  .dark-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pillar-card, .featured-card { padding: 24px; }
  footer {
    padding: 28px 20px;
    align-items: flex-start;
    flex-direction: column;
  }
}


.doc-group {
  margin: 0 0 54px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.doc-group h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.doc-group > p:not(.card-label) {
  color: var(--muted);
  max-width: 800px;
}

.doc-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.doc-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  background: var(--paper);
  transition: transform .15s ease, border-color .15s ease;
}

.doc-item:hover {
  transform: translateY(-1px);
  border-color: var(--blue-light);
}

.doc-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.doc-item span {
  color: var(--muted);
  font-size: .95rem;
}


/* Cuckoo Clock page */
.cuckoo-page {
  background: linear-gradient(180deg, #fffaf2 0%, #fffdf9 24%, #fff 100%);
}

.cuckoo-hero {
  padding: 66px 28px 58px;
  background:
    radial-gradient(circle at 10% 15%, rgba(244,154,24,0.16), transparent 26%),
    radial-gradient(circle at 92% 8%, rgba(77,166,239,0.16), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #fffdf9 100%);
}

.cuckoo-hero-inner,
.showcase-row,
.cta-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 34px;
  align-items: center;
}

.cuckoo-copy h1 {
  margin: 10px 0 20px;
  font-size: clamp(2.45rem, 4.7vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #3b2413;
}

.cuckoo-copy .lead {
  color: #665546;
}

.cuckoo-highlights {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.cuckoo-highlights li {
  padding-left: 28px;
  position: relative;
  color: #5b4b3f;
  font-weight: 600;
}

.cuckoo-highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: #b56a1a;
}

.cuckoo-hero-card img,
.showcase-image img,
.store-graphics img {
  width: 100%;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(59,36,19,0.08);
  box-shadow: 0 22px 60px rgba(72, 47, 25, 0.16);
}

.story-grid,
.feature-grid {
  display: grid;
  gap: 22px;
}

.story-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.story-card,
.feature-tile {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(181,106,26,0.12);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(76, 55, 35, 0.08);
}

.story-card {
  padding: 28px;
}

.story-card h3,
.feature-tile h3,
.showcase-copy h2,
.cta-copy h2 {
  color: #3b2413;
}

.story-card p,
.feature-tile p,
.showcase-copy p,
.cta-copy p {
  color: #6b5a4d;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-tile {
  padding: 26px;
}

.showcase-row {
  margin-bottom: 34px;
}

.showcase-row.reverse {
  grid-template-columns: 0.98fr 1.02fr;
}

.showcase-row.reverse .showcase-image {
  order: 2;
}

.showcase-row.reverse .showcase-copy {
  order: 1;
}

.showcase-copy h2,
.cta-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.cuckoo-cta {
  margin-top: 20px;
  padding: 68px 28px 76px;
  background: linear-gradient(180deg, #fff4e6 0%, #fff9f2 100%);
  border-top: 1px solid rgba(181,106,26,0.12);
}

.store-graphics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 1000px) {
  .story-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cuckoo-hero-inner,
  .showcase-row,
  .showcase-row.reverse,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .showcase-row.reverse .showcase-image,
  .showcase-row.reverse .showcase-copy {
    order: initial;
  }
}

@media (max-width: 640px) {
  .cuckoo-hero {
    padding: 66px 20px 54px;
  }

  .story-grid,
  .feature-grid,
  .store-graphics {
    grid-template-columns: 1fr;
  }

  .cuckoo-cta {
    padding: 70px 20px 82px;
  }
}


.app-store-badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
}

.app-store-badge {
  width: min(420px, 100%);
  height: auto;
  display: block;
}


/* v24: size-only refinements. No layout or visual redesign. */
.cuckoo-hero-card img {
  max-height: 690px;
  object-fit: contain;
}

.showcase-image img {
  width: min(100%, 570px);
  max-height: 730px;
  object-fit: contain;
}

.app-store-badge {
  width: min(340px, 100%);
}


/* v25 — modern product-site presentation inspired by Resolve Healthware's
   airy SaaS layout, while retaining StrataKernel's own navy/blue/orange identity. */

:root {
  --navy: #0a2340;
  --navy-2: #12395f;
  --blue: #1676c2;
  --blue-light: #72b9ed;
  --paper: #f5f8fb;
  --warm-paper: #fbfaf7;
  --line: #e1e8ef;
  --text: #17304a;
  --muted: #6d7e90;
  --orange: #ed9418;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(24, 56, 88, 0.08);
}

body {
  background: #ffffff;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #eef2f5;
  box-shadow: 0 3px 18px rgba(15, 42, 68, .04);
}

.nav-wrap {
  max-width: 1180px;
  padding: 10px 26px;
}

.brand {
  width: 245px;
  height: 54px;
}

.main-nav {
  gap: 25px;
}

.main-nav a {
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: .01em;
  color: #344c63;
}

.main-nav a:hover {
  color: var(--blue);
}

/* Homepage hero */
.hero {
  min-height: auto;
  padding: 82px 28px 88px;
  place-items: initial;
  background:
    radial-gradient(circle at 82% 20%, rgba(22,118,194,.10), transparent 27%),
    radial-gradient(circle at 8% 78%, rgba(237,148,24,.07), transparent 24%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

.hero::after {
  display: none;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .76fr);
  gap: 74px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.card-label {
  font-size: .69rem;
  letter-spacing: .19em;
  font-weight: 760;
}

.hero h1 {
  max-width: 690px;
  margin: 13px 0 20px;
  font-size: clamp(2.85rem, 5vw, 4.9rem);
  line-height: .99;
  letter-spacing: -.052em;
}

.lead {
  max-width: 660px;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 29px;
}

.button {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
}

.button.primary {
  background: var(--blue);
  box-shadow: 0 9px 22px rgba(22,118,194,.18);
}

.button.primary:hover {
  background: #0d67ad;
}

.button.secondary {
  background: #fff;
  border-color: #dbe4ec;
}

.hero-product-panel {
  position: relative;
  min-height: 400px;
  padding: 34px 34px 28px;
  overflow: hidden;
  border: 1px solid rgba(22,118,194,.10);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(236,246,253,.92));
  box-shadow: 0 26px 70px rgba(26,69,105,.12);
}

.hero-product-panel::before,
.hero-product-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-product-panel::before {
  width: 270px;
  height: 270px;
  right: -95px;
  top: -90px;
  background: rgba(22,118,194,.08);
}

.hero-product-panel::after {
  width: 190px;
  height: 190px;
  left: -80px;
  bottom: -85px;
  background: rgba(237,148,24,.08);
}

.hero-panel-label {
  position: relative;
  z-index: 2;
  color: var(--blue);
  font-size: .66rem;
  letter-spacing: .20em;
  font-weight: 800;
}

.hero-panel-title {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: var(--navy);
  font-size: 2.55rem;
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 780;
}

.hero-panel-kernel {
  position: relative;
  z-index: 2;
  height: 180px;
  margin: 24px 0 15px;
}

.hk-layer {
  position: absolute;
  left: 50%;
  width: 220px;
  height: 48px;
  transform: translateX(-50%) skewY(-8deg);
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(25,58,88,.13);
}

.hk1 {
  top: 8px;
  background: linear-gradient(90deg, #0b3155, #1879bd);
}
.hk2 {
  top: 59px;
  background: linear-gradient(90deg, #147c87, #70bdb4);
}
.hk3 {
  top: 110px;
  background: linear-gradient(90deg, #84502c, #c97d43);
}

.hk-core {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 60px;
  width: 57px;
  height: 57px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff8dc 0 7%, #ffd36b 13%, #f2a21f 42%, #dd7807 75%);
  box-shadow: 0 0 30px rgba(237,148,24,.48);
}

.hero-panel-tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-panel-tags span {
  padding: 6px 9px;
  border: 1px solid #d9e6ef;
  border-radius: 6px;
  background: rgba(255,255,255,.75);
  color: #587084;
  font-size: .68rem;
  font-weight: 650;
}

/* General section rhythm */
.section {
  max-width: 1140px;
  padding: 78px 26px;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 36px;
}

.section-heading h2,
.about h2 {
  margin: 8px 0 13px;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.038em;
}

.section-heading p,
.about p {
  font-size: .98rem;
  line-height: 1.75;
}

/* Product-family cards: flatter, cleaner, more SaaS-like */
.pillars {
  gap: 18px;
}

.pillar-card {
  min-height: 300px;
  padding: 25px;
  border: 1px solid #e6ebf0;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(28,59,85,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: #cfdde8;
  box-shadow: 0 15px 34px rgba(28,59,85,.09);
}

.pillar-card .icon {
  width: 43px;
  height: 43px;
  margin-bottom: 22px;
  border-radius: 10px;
  font-size: 1.4rem;
}

.pillar-card h3 {
  font-size: 1.32rem;
}

.pillar-card p:not(.card-label) {
  font-size: .91rem;
  line-height: 1.65;
}

.pillar-card > a,
.subprojects a {
  font-size: .84rem;
}

.about {
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  border-top: 1px solid #eef2f5;
}

.kernel-mark {
  transform: scale(.84);
}

/* Inner pages */
body:not(.cuckoo-page) > main.section {
  min-height: calc(100vh - 210px);
}

/* Cuckoo page: retain character but use cleaner product-site spacing */
.cuckoo-page {
  background: #fff;
}

.cuckoo-hero {
  padding: 68px 28px 62px;
  background:
    radial-gradient(circle at 88% 10%, rgba(22,118,194,.09), transparent 27%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.cuckoo-hero-inner,
.showcase-row,
.cta-inner {
  max-width: 1120px;
  gap: 44px;
}

.cuckoo-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.35rem, 4.1vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--navy);
}

.cuckoo-copy .lead,
.cuckoo-highlights li {
  color: #617183;
}

.cuckoo-hero-card img,
.showcase-image img,
.store-graphics img {
  border-radius: 18px;
  box-shadow: 0 15px 42px rgba(34,61,84,.10);
  border-color: #e5ebf0;
}

.cuckoo-hero-card img {
  max-height: 590px;
}

.story-grid,
.feature-grid {
  gap: 16px;
}

.story-card,
.feature-tile {
  border-radius: 14px;
  border-color: #e5eaf0;
  box-shadow: 0 7px 22px rgba(29,60,86,.05);
  background: #fff;
}

.story-card,
.feature-tile {
  padding: 21px;
}

.story-card h3,
.feature-tile h3,
.showcase-copy h2,
.cta-copy h2 {
  color: var(--navy);
}

.story-card p,
.feature-tile p,
.showcase-copy p,
.cta-copy p {
  color: #6b7c8d;
  font-size: .92rem;
}

.showcase-row {
  margin-bottom: 46px;
  padding: 26px;
  border: 1px solid #e7edf2;
  border-radius: 18px;
  background: #fbfcfd;
}

.showcase-image img {
  width: min(100%, 500px);
  max-height: 640px;
}

.showcase-copy h2,
.cta-copy h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
}

.cuckoo-cta {
  margin-top: 15px;
  padding: 64px 28px 70px;
  border-top: 1px solid #e7edf2;
  background: linear-gradient(180deg, #f4f8fb 0%, #eef5fa 100%);
}

.app-store-badge {
  width: min(320px, 100%);
}

/* Documentation */
.doc-group {
  padding: 27px;
  border-radius: 15px;
  border-color: #e4ebf0;
  box-shadow: 0 8px 24px rgba(28,59,85,.05);
}

.doc-item {
  border-radius: 10px;
  background: #f8fafc;
}

/* Footer */
footer {
  min-height: 105px;
  padding-top: 26px;
  padding-bottom: 26px;
  background: #0a2340;
}

footer strong {
  font-size: .88rem;
}

footer span,
.footer-right {
  font-size: .77rem;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-product-panel {
    min-height: 350px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 64px 20px 65px;
  }

  .hero-product-panel {
    padding: 27px;
  }

  .section {
    padding: 62px 20px;
  }

  .pillars,
  .story-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .showcase-row {
    padding: 18px;
  }
}


/* ============================================================
   v26 — Simplified StrataKernel architecture + editorial redesign
   Primary product groups: Apps + DG only.
   ============================================================ */

.home-v26 {
  background: #fff;
}

.home-v26 .site-header {
  background: rgba(255,255,255,.97);
}

.home-hero-v26 {
  max-width: 1180px;
  margin: 0 auto;
  padding: 94px 28px 86px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 78px;
  align-items: center;
}

.home-hero-copy h1 {
  margin: 12px 0 22px;
  font-size: clamp(3.25rem, 6vw, 5.65rem);
  line-height: .92;
  letter-spacing: -.065em;
  color: var(--navy);
}

.home-hero-copy > p {
  max-width: 640px;
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--muted);
}

.home-hero-copy .hero-actions {
  align-items: center;
}

.text-link {
  margin-left: 8px;
  color: var(--navy);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.home-hero-visual {
  min-height: 460px;
}

.visual-shell {
  position: relative;
  height: 460px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dfe7ee;
  border-radius: 26px;
  background:
    radial-gradient(circle at 75% 22%, rgba(21,118,194,.13), transparent 31%),
    linear-gradient(145deg, #f6fafc, #edf4f8);
  box-shadow: 0 28px 75px rgba(18,53,83,.11);
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  color: #71869a;
  font-size: .63rem;
  font-weight: 760;
  letter-spacing: .18em;
}

.visual-grid {
  position: absolute;
  inset: 100px 26px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.visual-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 21px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.visual-card span {
  margin-bottom: 8px;
  font-size: .63rem;
  letter-spacing: .18em;
  font-weight: 800;
}

.visual-card strong {
  font-size: 1.25rem;
  line-height: 1.15;
}

.vc-apps {
  background: rgba(255,255,255,.72);
  color: var(--navy);
}

.vc-dg {
  background: rgba(10,35,64,.91);
  color: white;
}

.visual-kernel {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 135px;
  height: 135px;
  transform: translate(-50%,-50%);
  z-index: 4;
}

.vk-layer {
  position: absolute;
  left: 50%;
  width: 128px;
  height: 31px;
  transform: translateX(-50%) skewY(-8deg);
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(5,29,49,.16);
}

.vkl1 { top: 15px; background: linear-gradient(90deg,#0a3157,#1978bd); }
.vkl2 { top: 49px; background: linear-gradient(90deg,#0d747d,#62b4ad); }
.vkl3 { top: 83px; background: linear-gradient(90deg,#744426,#bb7340); }

.vk-core {
  position: absolute;
  left: 50%;
  top: 48px;
  width: 39px;
  height: 39px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%,#fff 0 6%,#ffd66c 13%,#f1a01e 44%,#dd7504 76%);
  box-shadow: 0 0 24px rgba(237,148,24,.55);
}

.home-work {
  padding: 90px 28px 96px;
  background: #f6f8fa;
  border-top: 1px solid #edf1f4;
  border-bottom: 1px solid #edf1f4;
}

.home-section-intro {
  max-width: 1120px;
  margin: 0 auto 42px;
}

.home-section-intro h2,
.home-principles h2 {
  margin: 9px 0 12px;
  color: var(--navy);
  font-size: clamp(2rem,3.4vw,3rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.home-section-intro p {
  max-width: 720px;
  color: var(--muted);
  font-size: .98rem;
}

.domain-feature {
  max-width: 1120px;
  min-height: 410px;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  overflow: hidden;
  text-decoration: none;
  border-radius: 21px;
  background: white;
  border: 1px solid #e1e7ec;
  box-shadow: 0 14px 38px rgba(22,52,78,.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.domain-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(22,52,78,.10);
}

.domain-copy {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.domain-index {
  color: var(--blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.domain-copy h3 {
  margin: 12px 0 16px;
  color: var(--navy);
  font-size: clamp(2.2rem,4vw,3.55rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.domain-copy p {
  max-width: 470px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.75;
}

.domain-link {
  color: var(--blue);
  font-size: .86rem;
  font-weight: 750;
}

.domain-media {
  min-height: 410px;
  background: #eef4f7;
  overflow: hidden;
}

.domain-media img {
  width: 100%;
  height: 100%;
  max-height: 510px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.domain-dg {
  grid-template-columns: .86fr 1.14fr;
  background: #0a2340;
  border-color: #0a2340;
}

.domain-dg .domain-copy h3,
.domain-dg .domain-copy p {
  color: white;
}

.domain-dg .domain-copy p {
  color: #bfd0df;
}

.domain-dg .domain-index,
.domain-dg .domain-link {
  color: #75c4f4;
}

.dg-visual {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0/44px 100%,
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0/100% 32px,
    linear-gradient(135deg,#143d63,#0d2d4b);
}

.dg-track {
  position: absolute;
  inset: 42px 50px 42px 84px;
  display: grid;
  grid-template-columns: repeat(6,1fr);
  border-left: 1px solid rgba(255,255,255,.15);
  border-right: 1px solid rgba(255,255,255,.15);
}

.dg-track i {
  border-right: 1px solid rgba(255,255,255,.10);
}

.dg-curve {
  position: absolute;
  top: 54px;
  bottom: 54px;
  width: 3px;
  border-radius: 3px;
  transform-origin: top;
}

.dg-curve.c1 {
  left: 51%;
  background: #76d3ff;
  box-shadow: 0 0 12px rgba(118,211,255,.5);
  clip-path: polygon(45% 0,100% 9%,35% 20%,76% 32%,12% 43%,85% 55%,28% 70%,68% 82%,38% 100%,0 100%,0 0);
  width: 85px;
}

.dg-curve.c2 {
  left: 70%;
  background: #f2a11e;
  clip-path: polygon(40% 0,85% 12%,25% 25%,65% 38%,10% 49%,78% 61%,35% 74%,90% 87%,48% 100%,0 100%,0 0);
  width: 68px;
  opacity: .85;
}

.dg-depth {
  position: absolute;
  left: 20px;
  top: 54px;
  color: #9eb5c7;
  font: 600 .63rem/4.95 "SF Mono", Menlo, Consolas, monospace;
}

.home-principles {
  max-width: 1120px;
  margin: 0 auto;
  padding: 92px 28px 100px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;
}

.principle-copy {
  padding-top: 5px;
  columns: 2;
  column-gap: 36px;
}

.principle-copy p {
  margin-top: 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.78;
  break-inside: avoid;
}

/* Apps index — no dashboard/card grid */
.product-index-hero {
  padding: 80px 28px 48px;
  border-bottom: 1px solid #edf1f4;
}

.product-index-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.product-index-inner h1 {
  max-width: 760px;
  margin: 9px 0 17px;
  color: var(--navy);
  font-size: clamp(2.7rem,5vw,4.7rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.product-index-inner p {
  max-width: 680px;
  color: var(--muted);
}

.app-list {
  padding-top: 45px;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr 330px;
  min-height: 210px;
  margin-bottom: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #e3e8ed;
  border-radius: 17px;
  background: white;
  transition: border-color .16s ease, transform .16s ease;
}

.app-row:hover {
  transform: translateY(-2px);
  border-color: #cbd8e2;
}

.app-row-copy {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 33px;
  align-items: start;
}

.app-number {
  padding-top: 3px;
  color: #9badbc;
  font-size: .71rem;
  font-weight: 750;
}

.app-row h2 {
  margin: 7px 0 10px;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.05;
}

.app-row p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.app-row-media {
  overflow: hidden;
  background: #eef3f6;
}

.app-row-media img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
  object-position: center 32%;
}

.app-row-mark {
  display: grid;
  place-items: center;
  min-height: 210px;
  color: #1777bd;
  background: #f0f6fa;
  font-size: 4rem;
  font-weight: 300;
}

@media (max-width: 900px) {
  .home-hero-v26,
  .home-principles {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .domain-feature,
  .domain-dg {
    grid-template-columns: 1fr;
  }

  .domain-media,
  .dg-visual {
    min-height: 310px;
  }

  .app-row {
    grid-template-columns: 1fr;
  }

  .app-row-media,
  .app-row-mark {
    min-height: 190px;
  }

  .principle-copy {
    columns: 1;
  }
}

@media (max-width: 620px) {
  .home-hero-v26 {
    padding: 66px 20px 62px;
  }

  .home-hero-copy h1 {
    font-size: 3.1rem;
  }

  .home-work,
  .home-principles {
    padding-left: 20px;
    padding-right: 20px;
  }

  .domain-copy {
    padding: 34px 28px;
  }

  .visual-shell {
    height: 390px;
  }

  .home-hero-visual {
    min-height: 390px;
  }

  .app-row-copy {
    grid-template-columns: 1fr;
    padding: 27px;
  }
}


/* v27 — real Sphere Viewer artwork on the Digital Geology homepage banner */
.dg-sphere-banner {
  min-height: 410px;
  background: #03070b;
  overflow: hidden;
}

.dg-sphere-banner img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  max-height: 510px;
  object-fit: cover;
  object-position: center center;
  display: block;
}


/* v28 — Cuckoo Clock graphics: show the COMPLETE artwork, with no padded white frame. */
.cuckoo-page .showcase-row {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.cuckoo-page .showcase-image {
  display: block;
  padding: 0;
  margin: 0;
  background: transparent;
  overflow: visible;
}

.cuckoo-page .showcase-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: initial;
  object-position: initial;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(34,61,84,.10);
}

.cuckoo-page .showcase-copy {
  padding: 22px 10px 22px 34px;
}

.cuckoo-page .showcase-row.reverse .showcase-copy {
  padding: 22px 34px 22px 10px;
}

.cuckoo-page .cuckoo-hero-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
}

/* Mobile: keep the full artwork visible edge-to-edge within the content width. */
@media (max-width: 1000px) {
  .cuckoo-page .showcase-copy,
  .cuckoo-page .showcase-row.reverse .showcase-copy {
    padding: 24px 0 0;
  }

  .cuckoo-page .showcase-image img {
    width: 100%;
  }
}


/* v29 — Cuckoo Clock page: promotional images reduced by 30%, no cropping. */
.cuckoo-page .cuckoo-hero-card {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuckoo-page .cuckoo-hero-card img {
  width: 70%;
  max-width: 520px;
  height: auto;
  margin: 0 auto;
}

.cuckoo-page .showcase-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cuckoo-page .showcase-image img {
  width: 70%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
}

.cuckoo-page .app-store-badge {
  width: min(280px, 70%);
}

@media (max-width: 800px) {
  .cuckoo-page .cuckoo-hero-card img,
  .cuckoo-page .showcase-image img {
    width: min(88%, 500px);
  }

  .cuckoo-page .app-store-badge {
    width: min(280px, 80%);
  }
}


/* v31 — Correct Analogue Clock artwork on Apps overview */
.analogue-clock-media {
  background: #071626;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.analogue-clock-media img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain;
  object-position: center center;
  display: block;
}


/* ============================================================
   v32 — Typography refinement
   More restrained, architectural, editorial and consistent.
   ============================================================ */

:root {
  --title-ink: #102840;
  --title-muted: #466077;
}

/* Shared editorial treatment for major headings */
.home-hero-copy h1,
.product-index-inner h1,
.cuckoo-copy h1,
.section-heading h1,
.section-heading h2,
.about h2,
.home-section-intro h2,
.home-principles h2,
.domain-copy h3,
.app-row h2,
.showcase-copy h2,
.cta-copy h2,
.doc-group h2 {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Noto Sans",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--title-ink);
  font-weight: 650;
  letter-spacing: -0.022em;
}

/* Homepage hero: smaller, calmer, more sophisticated */
.home-hero-copy h1 {
  max-width: 650px;
  margin: 16px 0 20px;
  font-size: clamp(2.35rem, 4.1vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 620;
}

.home-hero-copy > p {
  max-width: 610px;
  font-size: 1rem;
  line-height: 1.72;
}

/* Section labels become a strong visual system across the site */
.eyebrow,
.section-kicker,
.card-label,
.domain-index,
.app-number {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    Roboto,
    Ubuntu,
    Cantarell,
    "Noto Sans",
    Arial,
    sans-serif;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Section headings: deliberately compact */
.home-section-intro h2,
.home-principles h2,
.section-heading h2,
.about h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 2.45vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.product-index-inner h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(2.05rem, 3.6vw, 3.25rem);
  line-height: 1.04;
  font-weight: 630;
}

/* Domain titles: less billboard-like */
.domain-copy h3 {
  margin: 12px 0 14px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.03;
  font-weight: 640;
}

/* Apps list titles */
.app-row h2 {
  margin: 7px 0 9px;
  font-size: 1.42rem;
  line-height: 1.12;
  font-weight: 650;
}

/* Cuckoo Clock page hero */
.cuckoo-copy h1 {
  margin: 11px 0 18px;
  font-size: clamp(2.1rem, 3.5vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-weight: 630;
}

.showcase-copy h2,
.cta-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.55rem, 2.3vw, 2.1rem);
  line-height: 1.12;
}

.story-card h3,
.feature-tile h3,
.pillar-card h3 {
  font-weight: 650;
  letter-spacing: -0.012em;
}

/* Documentation and inner-page headings */
.doc-group h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

body:not(.home-v26) main.section > h1 {
  margin: 12px 0 18px;
  color: var(--title-ink);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  font-weight: 630;
  letter-spacing: -0.022em;
}

/* Softer body hierarchy */
p,
li {
  color: var(--muted);
}

.home-hero-copy .eyebrow,
.home-section-intro .section-kicker,
.home-principles .section-kicker,
.product-index-inner .section-kicker,
.cuckoo-copy .section-kicker {
  color: var(--blue);
  font-size: .69rem;
}

/* Improve overall rhythm: less vertical theatricality */
.home-hero-v26 {
  padding-top: 76px;
  padding-bottom: 72px;
}

.home-work {
  padding-top: 74px;
  padding-bottom: 82px;
}

.home-principles {
  padding-top: 76px;
  padding-bottom: 82px;
}

.product-index-hero {
  padding-top: 66px;
  padding-bottom: 40px;
}

.cuckoo-hero {
  padding-top: 58px;
  padding-bottom: 52px;
}


/* ============================================================
   v33 — Compact, fluid, imaginative layout refinement
   Less empty space, fewer "boxes", stronger visual continuity.
   ============================================================ */

:root {
  --page-max: 1240px;
  --content-max: 1160px;
  --section-gap: 52px;
}

/* tighter navigation */
.nav-wrap {
  max-width: var(--page-max);
  padding: 8px 22px;
}

.brand {
  width: 228px;
  height: 48px;
}

.main-nav {
  gap: 19px;
}

.main-nav a {
  font-size: .81rem;
}

/* remove excessive top/bottom air across all pages */
.section {
  max-width: var(--content-max);
  padding: 52px 22px;
}

.section-heading {
  margin-bottom: 26px;
}

.home-hero-v26 {
  max-width: var(--page-max);
  padding: 52px 22px 48px;
  gap: 48px;
}

.home-hero-copy h1 {
  margin-top: 10px;
  margin-bottom: 14px;
}

.home-hero-copy > p {
  line-height: 1.58;
}

.hero-actions {
  margin-top: 20px;
}

/* make the hero visual feel integrated, not like a floating card */
.home-hero-visual {
  min-height: 360px;
}

.visual-shell {
  height: 360px;
  border-radius: 18px;
  box-shadow: 0 16px 46px rgba(18,53,83,.10);
}

.visual-grid {
  inset: 82px 20px 22px;
}

.hero-panel-title,
.visual-card strong {
  letter-spacing: -0.02em;
}

/* work section: shorter and more continuous */
.home-work {
  padding: 56px 22px 60px;
}

.home-section-intro {
  max-width: var(--content-max);
  margin-bottom: 26px;
}

.home-section-intro p {
  margin-bottom: 0;
}

/* domain sections become editorial bands rather than big cards */
.domain-feature {
  max-width: var(--content-max);
  min-height: 310px;
  margin-bottom: 16px;
  border-radius: 14px;
  box-shadow: none;
}

.domain-feature:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(22,52,78,.06);
}

.domain-copy {
  padding: 34px 34px;
}

.domain-copy h3 {
  margin: 8px 0 10px;
}

.domain-copy p {
  margin-bottom: 18px;
  line-height: 1.58;
}

.domain-media,
.domain-media img,
.dg-sphere-banner,
.dg-sphere-banner img {
  min-height: 310px;
  max-height: 370px;
}

/* let imagery dominate naturally without giant empty frames */
.domain-media img,
.dg-sphere-banner img {
  object-fit: cover;
}

/* compact approach section */
.home-principles {
  max-width: var(--content-max);
  padding: 54px 22px 58px;
  gap: 54px;
}

.principle-copy {
  column-gap: 24px;
}

.principle-copy p {
  line-height: 1.62;
}

/* Apps page: compact list, tighter rows, stronger image integration */
.product-index-hero {
  padding: 50px 22px 30px;
}

.product-index-inner {
  max-width: var(--content-max);
}

.app-list {
  padding-top: 28px;
}

.app-row {
  min-height: 170px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.app-row-copy {
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 24px 26px;
}

.app-row h2 {
  margin: 4px 0 7px;
}

.app-row p {
  line-height: 1.5;
}

.app-row-media,
.app-row-mark {
  min-height: 170px;
}

.app-row-media img {
  max-height: 210px;
}

/* Cuckoo page — reduce boxed feel and tighten rhythm */
.cuckoo-hero {
  padding: 46px 22px 42px;
}

.cuckoo-hero-inner,
.showcase-row,
.cta-inner {
  max-width: var(--content-max);
  gap: 28px;
}

.cuckoo-copy h1 {
  margin-bottom: 12px;
}

.cuckoo-highlights {
  margin-top: 16px;
  gap: 6px;
}

.story-grid,
.feature-grid {
  gap: 12px;
}

.story-card,
.feature-tile {
  padding: 17px 18px;
  border-radius: 11px;
  box-shadow: none;
}

.showcase-row {
  margin-bottom: 24px;
}

.cuckoo-page .showcase-copy,
.cuckoo-page .showcase-row.reverse .showcase-copy {
  padding-top: 12px;
  padding-bottom: 12px;
}

.cuckoo-page .showcase-image img {
  width: 62%;
  max-width: 390px;
}

.cuckoo-page .cuckoo-hero-card img {
  width: 62%;
  max-width: 460px;
}

.cuckoo-cta {
  padding: 44px 22px 50px;
}

/* documentation — compact and clean */
.doc-group {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: 12px;
  box-shadow: none;
}

.doc-list {
  gap: 9px;
  margin-top: 16px;
}

.doc-item {
  padding: 13px 15px;
}

/* footer */
footer {
  min-height: 84px;
  padding: 20px max(22px, calc((100vw - 1160px)/2));
}

/* visual sophistication: subtle separators instead of huge whitespace */
.home-work,
.home-principles,
.product-index-hero,
.cuckoo-cta {
  border-color: #e8edf1;
}

/* slightly denser body text */
body {
  font-size: 14.5px;
}

/* responsive */
@media (max-width: 900px) {
  .home-hero-v26 {
    gap: 28px;
  }

  .domain-feature {
    grid-template-columns: 1fr;
  }

  .domain-media,
  .domain-media img,
  .dg-sphere-banner,
  .dg-sphere-banner img {
    min-height: 250px;
  }

  .home-principles {
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    padding: 8px 16px;
  }

  .section,
  .home-work,
  .home-principles,
  .home-hero-v26,
  .cuckoo-hero,
  .cuckoo-cta {
    padding-left: 16px;
    padding-right: 16px;
  }

  .domain-copy {
    padding: 26px 22px;
  }

  .visual-shell {
    height: 330px;
  }

  .cuckoo-page .showcase-image img,
  .cuckoo-page .cuckoo-hero-card img {
    width: 82%;
  }
}


/* ============================================================
   v34 — Contact page
   ============================================================ */

.contact-page {
  background: #fff;
}

.contact-hero {
  border-bottom: 1px solid #e8edf1;
  background:
    radial-gradient(circle at 78% 18%, rgba(22,118,194,.07), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.contact-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 22px 38px;
}

.contact-inner h1 {
  margin: 10px 0 12px;
  color: var(--title-ink);
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.04;
  font-weight: 630;
  letter-spacing: -0.022em;
}

.contact-inner p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.62;
}

.contact-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 22px 56px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.contact-details {
  padding: 4px 8px 0 0;
}

.contact-details h2,
.contact-form-panel h2 {
  margin: 8px 0 18px;
  color: var(--title-ink);
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 650;
}

.contact-address {
  margin: 0 0 26px;
}

.contact-address p {
  margin: 0 0 2px;
  color: var(--text);
  font-size: .94rem;
}

.contact-email-block {
  margin: 0 0 26px;
}

.contact-email-block span {
  display: block;
  margin-bottom: 5px;
  color: #8798a8;
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-email-block a {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 680;
  text-decoration: none;
}

.contact-email-block a:hover {
  text-decoration: underline;
}

.contact-note {
  max-width: 340px;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.contact-form-panel {
  padding: 26px;
  border: 1px solid #e2e8ed;
  border-radius: 13px;
  background: #fbfcfd;
}

.contact-form {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label > span {
  color: #50677d;
  font-size: .74rem;
  font-weight: 680;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-form input {
  height: 42px;
  padding: 0 12px;
}

.contact-form textarea {
  padding: 11px 12px;
  resize: vertical;
  min-height: 145px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #80bce6;
  box-shadow: 0 0 0 3px rgba(22,118,194,.08);
}

.contact-submit {
  justify-self: start;
  margin-top: 3px;
  border: 0;
  cursor: pointer;
}

.form-help {
  margin: -2px 0 0;
  color: #8a9aa8;
  font-size: .74rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: 20px;
  }
}


/* v35 — Key StrataKernel themes */
.theme-strip {
  border-top: 1px solid #e8edf1;
  border-bottom: 1px solid #e8edf1;
  background: #fbfcfd;
}

.theme-strip-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 13px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.theme-strip-inner span {
  color: #526a80;
  font-size: .68rem;
  font-weight: 720;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dg-theme-copy {
  max-width: 1160px;
}

.dg-theme-copy > h2 {
  margin: 8px 0 12px;
  color: var(--title-ink);
  font-size: clamp(1.65rem, 2.45vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.018em;
}

.dg-theme-copy > p {
  max-width: 820px;
  line-height: 1.65;
}

.dg-link-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dg-environment-action {
  margin-top: 22px;
}

.dg-link-grid a {
  padding: 16px 18px;
  border: 1px solid #e2e8ed;
  border-radius: 10px;
  background: #fbfcfd;
  text-decoration: none;
}

.dg-link-grid strong {
  display: block;
  color: var(--title-ink);
  font-size: .93rem;
}

.dg-link-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
}

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


/* ============================================================
   v36 — Dark theme
   ============================================================ */
:root {
  --navy: #eaf2fb;
  --navy-2: #cfe0f3;
  --blue: #56a9ff;
  --blue-light: #8ec6ff;
  --paper: #0f1720;
  --warm-paper: #0f1720;
  --line: #223241;
  --text: #e6eef7;
  --muted: #9eb1c3;
  --orange: #f0a53a;
  --white: #121c26;
  --title-ink: #f2f7fc;
  --title-muted: #a4b7c8;
}

html {
  color-scheme: dark;
}

body,
.home-v26,
.cuckoo-page,
.contact-page {
  background: #0a1118;
  color: var(--text);
}

p, li {
  color: var(--muted);
}

a {
  color: var(--blue);
}

.site-header,
.home-v26 .site-header {
  background: rgba(9, 16, 24, 0.94);
  border-bottom: 1px solid #1a2632;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.main-nav a {
  color: #c4d4e3;
}

.main-nav a:hover,
.text-link,
.contact-email-block a,
.domain-link {
  color: #7fc0ff;
}

.hero,
.home-hero-v26,
.cuckoo-hero,
.contact-hero,
.product-index-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(86,169,255,.10), transparent 24%),
    radial-gradient(circle at 10% 78%, rgba(240,165,58,.08), transparent 22%),
    linear-gradient(180deg, #0d1620 0%, #0a1118 100%);
  border-bottom-color: #1a2632;
}

.theme-strip {
  background: #0d1620;
  border-top: 1px solid #192531;
  border-bottom: 1px solid #192531;
}

.theme-strip-inner span {
  color: #b5c5d4;
}

.section,
.home-work,
.home-principles,
.cuckoo-cta {
  border-color: #1a2632;
}

.home-work {
  background: #0d1620;
}

.home-principles {
  background: transparent;
}

.section-heading h1,
.section-heading h2,
.about h2,
.home-section-intro h2,
.home-principles h2,
.home-hero-copy h1,
.product-index-inner h1,
.cuckoo-copy h1,
.domain-copy h3,
.app-row h2,
.showcase-copy h2,
.cta-copy h2,
.doc-group h2,
.contact-inner h1,
.contact-details h2,
.contact-form-panel h2,
.dg-theme-copy > h2,
body:not(.home-v26) main.section > h1 {
  color: var(--title-ink);
}

.eyebrow,
.section-kicker,
.card-label,
.domain-index,
.app-number,
.hero-panel-label,
.visual-topline {
  color: #83c2ff;
}

.button.primary {
  background: linear-gradient(180deg, #1e86dc 0%, #1468b5 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(22,118,194,.28);
}

.button.primary:hover {
  background: linear-gradient(180deg, #2892eb 0%, #1972c3 100%);
}

.button.secondary {
  background: #101b25;
  color: #d7e4ef;
  border-color: #243544;
}

.visual-shell,
.hero-product-panel,
.contact-form-panel,
.domain-feature,
.app-row,
.doc-group,
.doc-item,
.dg-link-grid a,
.story-card,
.feature-tile {
  background: #111b25;
  border-color: #243544;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.visual-card {
  border-color: rgba(255,255,255,.08);
}

.vc-apps {
  background: rgba(255,255,255,.06);
  color: #eff5fb;
}

.vc-dg {
  background: rgba(5,14,22,.74);
  color: white;
}

.app-row-media,
.app-row-mark,
.domain-media,
.dg-banner-media,
.dg-sphere-banner,
.analogue-clock-media {
  background: #0b141d;
}

.domain-dg {
  background: #0d1823;
  border-color: #203243;
}

.domain-dg .domain-copy h3,
.domain-dg .domain-copy p,
.domain-dg .domain-index,
.domain-dg .domain-link {
  color: #e8f0f8;
}

.story-card p,
.feature-tile p,
.showcase-copy p,
.cta-copy p,
.app-row p,
.domain-copy p,
.product-index-inner p,
.home-hero-copy > p,
.contact-inner p,
.contact-note,
.form-help,
.doc-item span,
.dg-theme-copy > p,
.dg-link-grid span {
  color: var(--muted);
}

.showcase-row {
  background: #0f1821;
  border-color: #223241;
}

.doc-item,
.dg-link-grid a {
  background: #0d1620;
}

.doc-item strong,
.dg-link-grid strong,
.contact-address p,
.app-row h2,
.domain-copy h3 {
  color: var(--title-ink);
}

.contact-form input,
.contact-form textarea {
  background: #0b141d;
  border-color: #233342;
  color: #edf4fb;
}

.contact-form label > span,
.contact-email-block span {
  color: #9eb2c5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #5cadf9;
  box-shadow: 0 0 0 3px rgba(86,169,255,.12);
}

footer {
  background: #071019;
  border-top: 1px solid #1a2632;
}

footer strong,
footer span,
.footer-right {
  color: #c0d0de;
}

/* preserve image richness on dark backgrounds */
.cuckoo-hero-card img,
.showcase-image img,
.store-graphics img,
.domain-media img,
.dg-sphere-banner img,
.app-row-media img,
.analogue-clock-media img {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

/* reduce bright white backgrounds in legacy sections */
.pillar-card,
.pillar-card.geology,
.doc-group,
.story-card,
.feature-tile {
  background: #111b25;
}

@media (max-width: 760px) {
  .site-header {
    background: rgba(9, 16, 24, 0.97);
  }
}

/* v40 - Match DG start background and enlarge StrataKernel logo by 10%. */
body,
.home-v26,
.cuckoo-page,
.contact-page {
  background:
    radial-gradient(circle at 48% 12%, rgba(21, 80, 145, .20), transparent 34%),
    radial-gradient(circle at 78% 64%, rgba(5, 55, 105, .14), transparent 38%),
    linear-gradient(115deg, #020914 0%, #041226 52%, #010711 100%);
}

.brand {
  width: 251px;
  height: 53px;
}

@media (max-width: 760px) {
  .brand {
    width: 226px;
    height: 59px;
  }
}


/* v39 — Cleaner homepage: retain WHAT WE BUILD intro, remove Apps/DG example blocks */
.home-work {
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-section-intro {
  margin-bottom: 0;
}

/* v41 - Final shared header: larger StrataKernel logo and breathing room. */
.site-header .nav-wrap {
  padding-top: 18px;
  padding-bottom: 14px;
}

.site-header .brand {
  width: 276px;
  height: 58px;
}

@media (max-width: 760px) {
  .site-header .nav-wrap {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .site-header .brand {
    width: 249px;
    height: 65px;
  }
}

/* v42 - Shared header: logo above the menu for better tablet/phone use. */
.site-header {
  position: sticky;
}

.site-header .nav-wrap {
  max-width: 1220px;
  min-height: 150px;
  padding: 22px 28px 18px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}

.site-header .brand {
  width: 276px;
  height: 58px;
  flex: 0 0 auto;
}

.site-header .main-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(22px, 3vw, 34px);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-header .main-nav::-webkit-scrollbar {
  display: none;
}

.site-header .main-nav a {
  flex: 0 0 auto;
  color: #c9d4df;
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.site-header .main-nav a:hover {
  color: #7fc0ff;
}

@media (max-width: 760px) {
  .site-header .nav-wrap {
    min-height: 138px;
    padding: 18px 20px 14px;
    gap: 18px;
  }

  .site-header .brand {
    width: min(249px, calc(100vw - 40px));
    height: auto;
  }

  .site-header .main-nav {
    gap: 22px;
    padding-bottom: 4px;
  }

  .site-header .main-nav a {
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .site-header .nav-wrap {
    min-height: 132px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header .brand {
    width: min(226px, calc(100vw - 32px));
  }

  .site-header .main-nav {
    gap: 18px;
  }
}
