:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --panel: #fffdf7;
  --ink: #101213;
  --muted: #60645f;
  --line: #ded8ca;
  --dark: #101213;
  --dark-2: #1b211f;
  --mint: #62c7a4;
  --coral: #f07058;
  --gold: #d6aa3f;
  --blue: #4b82c4;
  --shadow: 0 24px 80px rgba(16, 18, 19, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid rgba(16, 18, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.top-actions,
.language-switch {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 17px;
  font-weight: 900;
}

.brand-mark {
  width: 36px;
  height: 36px;
  overflow: hidden;
  background: var(--dark);
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-links a:hover {
  color: var(--ink);
}

.top-actions {
  gap: 10px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--panel);
  background: var(--dark);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 850;
}

.language-switch {
  padding: 3px;
  background: #ebe5d9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lang-button {
  min-width: 44px;
  height: 44px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.lang-button.is-active {
  color: var(--panel);
  background: var(--dark);
}

.section {
  scroll-margin-top: 92px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 106px) clamp(18px, 4vw, 58px);
}

#top {
  scroll-margin-top: 92px;
}

.section.compact {
  padding-top: clamp(42px, 5vw, 78px);
  padding-bottom: clamp(42px, 5vw, 78px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding-top: clamp(34px, 5vw, 68px);
  padding-bottom: clamp(34px, 5vw, 68px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.08;
}

p {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.hero-text {
  max-width: 780px;
  font-size: clamp(17px, 1.35vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--panel);
  background: var(--dark);
  box-shadow: 0 18px 50px rgba(16, 18, 19, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.mint {
  color: var(--ink);
  background: var(--mint);
  box-shadow: none;
}

.button.full {
  width: 100%;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.proof-strip span,
.case-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.hero-system,
.reputation,
.course {
  background: var(--dark);
  color: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-system {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  min-height: 560px;
}

.hero-system::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(98, 199, 164, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 199, 164, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(98, 199, 164, 0.22), transparent 34%),
    radial-gradient(circle at 75% 18%, rgba(75, 130, 196, 0.22), transparent 34%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  opacity: 0.85;
}

.system-top,
.system-stage,
.metric-grid {
  position: relative;
  z-index: 1;
}

.system-top {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 253, 247, 0.72);
  font-weight: 850;
}

.live {
  color: var(--mint);
}

.system-stage {
  height: 300px;
  margin-top: 24px;
  isolation: isolate;
}

.system-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64%, 340px);
  aspect-ratio: 1.35;
  transform: translate(-50%, -48%);
  background:
    radial-gradient(circle at center, rgba(98, 199, 164, 0.2), transparent 48%),
    linear-gradient(90deg, transparent 0 18%, rgba(98, 199, 164, 0.32) 49%, transparent 82%),
    linear-gradient(180deg, transparent 0 18%, rgba(214, 170, 63, 0.22) 49%, transparent 82%);
  border: 1px solid rgba(98, 199, 164, 0.16);
  border-radius: 999px;
  opacity: 0.72;
  animation: systemBreath 4.2s ease-in-out infinite;
  z-index: 0;
}

.signal,
.node,
.core {
  position: absolute;
}

.signal,
.node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 46px;
  padding: 8px 14px;
  color: rgba(255, 253, 247, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 900;
  animation: floaty 5s ease-in-out infinite;
  z-index: 2;
}

.signal-a { top: 20px; left: 24px; }
.signal-b { top: 30px; right: 24px; animation-delay: -1s; }
.signal-c { bottom: 36px; left: 18px; animation-delay: -2s; }
.signal-d { bottom: 34px; right: 20px; animation-delay: -3s; }

.node-a { top: 126px; left: 16px; color: var(--mint); }
.node-b { top: 126px; right: 16px; color: var(--gold); animation-delay: -1.4s; }
.node-c { bottom: 4px; left: calc(50% - 128px); color: var(--blue); animation-delay: -2.2s; }
.node-d { bottom: 4px; left: calc(50% + 34px); color: var(--coral); animation-delay: -3s; }

.core {
  top: 104px;
  left: 50%;
  width: 116px;
  height: 116px;
  transform: translateX(-50%);
  overflow: hidden;
  background: #050606;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 12px rgba(98, 199, 164, 0.06), 0 30px 80px rgba(0, 0, 0, 0.44);
  animation: corePulse 3s ease-in-out infinite;
  z-index: 3;
}

.core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.metric-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  min-width: 0;
}

.metric-card span {
  display: block;
  min-height: 42px;
  color: rgba(255, 253, 247, 0.64);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 6px 0 14px;
  color: var(--panel);
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.metric-card i {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.metric-card i::before {
  content: "";
  display: block;
  width: calc(var(--metric-progress, 50) * 1%);
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--gold));
  border-radius: inherit;
  transition: width 0.18s linear;
}

.section-heading {
  max-width: 960px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.pain-grid,
.service-grid,
.case-grid,
.faq-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.pain-grid article,
.service-grid article,
.case-grid article,
.faq-grid article,
.insight-grid article,
.process-list li {
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pain-grid strong,
.reputation-list strong,
.insight-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.08;
}

.pain-grid p,
.service-grid p,
.case-grid p,
.faq-grid p,
.insight-grid p,
.process-list p {
  margin-bottom: 0;
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}

.service-grid,
.case-grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-grid article span,
.process-list span {
  display: block;
  margin-bottom: 16px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 950;
}

.method {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

.case-grid {
  grid-template-columns: repeat(4, 1fr);
}

.case-grid article {
  min-height: 238px;
}

.case-grid h3 {
  margin-top: 18px;
}

.reputation {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(36px, 6vw, 74px);
  align-items: center;
}

.reputation h2,
.reputation p,
.course h2,
.course p {
  color: var(--panel);
}

.reputation p,
.course p {
  opacity: 0.72;
}

.reputation h2 {
  font-size: clamp(42px, 5vw, 84px);
  line-height: 0.98;
}

.reputation .eyebrow {
  color: rgba(255, 253, 247, 0.58);
}

.reputation-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.reputation-list div {
  min-height: 174px;
  padding: clamp(20px, 2.2vw, 30px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.reputation-list span {
  color: rgba(255, 253, 247, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.insights {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: clamp(26px, 5vw, 74px);
  align-items: start;
}

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

.journal-link {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(160px, 0.42fr) 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-height: 0;
  padding: clamp(14px, 2vw, 22px);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(98, 199, 164, 0.14), transparent 38%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  font-weight: 900;
  overflow: hidden;
}

.journal-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 18, 19, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.6;
}

.journal-link > * {
  position: relative;
  z-index: 1;
}

.journal-kicker {
  width: fit-content;
  padding: 7px 10px;
  color: var(--mint);
  background: rgba(98, 199, 164, 0.12);
  border: 1px solid rgba(98, 199, 164, 0.22);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.journal-link strong {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}

.journal-link small {
  max-width: none;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.4;
}

.journal-link b {
  width: fit-content;
  margin-top: 0;
  padding: 13px 16px;
  color: var(--panel);
  background: var(--dark);
  border-radius: 8px;
  white-space: nowrap;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 68px);
  background:
    radial-gradient(circle at 20% 20%, rgba(98, 199, 164, 0.24), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(75, 130, 196, 0.22), transparent 30%),
    var(--dark);
}

.course div {
  max-width: 820px;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.lead-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.lead-note {
  margin-top: 28px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lead-note strong,
.lead-note span {
  display: block;
}

.lead-note span {
  margin-top: 6px;
  color: var(--muted);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-form label,
.lead-form .full {
  grid-column: span 2;
}

.lead-form label:nth-child(1),
.lead-form label:nth-child(2) {
  grid-column: span 1;
}

.lead-form span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  color: var(--ink);
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 750;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(75, 130, 196, 0.45);
  outline-offset: 2px;
}

.form-status {
  grid-column: span 2;
  min-height: 26px;
  margin: 0;
  font-size: 17px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 58px);
  color: rgba(255, 253, 247, 0.7);
  background: var(--dark);
  font-weight: 800;
}

.footer a,
.footer span:first-child {
  color: var(--panel);
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(98, 199, 164, 0.06), 0 30px 80px rgba(0, 0, 0, 0.44); }
  50% { box-shadow: 0 0 0 18px rgba(98, 199, 164, 0.13), 0 30px 80px rgba(0, 0, 0, 0.44); }
}

@keyframes systemBreath {
  0%, 100% { opacity: 0.48; transform: translate(-50%, -48%) scale(0.96); }
  50% { opacity: 0.82; transform: translate(-50%, -48%) scale(1.04); }
}

@keyframes flow {
  0% { opacity: 0.35; filter: brightness(0.8); }
  50% { opacity: 1; filter: brightness(1.3); }
  100% { opacity: 0.35; filter: brightness(0.8); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -44; }
}

@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .reputation,
  .insights,
  .lead-section {
    grid-template-columns: 1fr;
  }

  .journal-link {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-system {
    min-height: 560px;
  }

  .case-grid,
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  h1 {
    font-size: clamp(44px, 13vw, 70px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 52px);
  }

  .hero-actions,
  .course,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-system {
    min-height: 620px;
    padding: 16px;
  }

  .system-stage {
    height: 360px;
  }

  .signal,
  .node {
    min-width: 72px;
    min-height: 40px;
    font-size: 12px;
  }

  .node-c {
    left: 24px;
  }

  .node-d {
    left: auto;
    right: 24px;
  }

  .metric-grid,
  .pain-grid,
  .service-grid,
  .case-grid,
  .faq-grid,
  .insight-grid,
  .process-list,
  .reputation-list,
  .lead-form {
    grid-template-columns: 1fr;
  }

  .lead-form label,
  .lead-form label:nth-child(1),
  .lead-form label:nth-child(2),
  .lead-form .full,
  .form-status {
    grid-column: span 1;
  }

  .journal-link {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .journal-link b {
    width: 100%;
    text-align: center;
  }

  .case-grid article {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
