/* Clarity final responsive polish — desktop, tablet and mobile */

:root {
  --clarity-shadow: 0 24px 70px rgba(8, 20, 45, .14);
  --section-space: 86px;
}

/* Brand mark — stylised Clarity C with a deliberate open gap and motion trail. */
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  font-size: 0 !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 42deg,
    transparent 0 17%,
    var(--green) 17%,
    var(--cyan) 34%,
    var(--blue) 58%,
    var(--purple) 82%,
    transparent 82% 100%) !important;
  box-shadow: 0 0 24px rgba(65,112,255,.22) !important;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #081422;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 10px;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--cyan));
  box-shadow: -3px 5px 0 rgba(62,123,255,.82), 2px 10px 0 rgba(142,77,255,.72);
}
footer .brand-mark::before { background: #050d17; }

/* Page rhythm */
.shell { width: min(1200px, calc(100% - 48px)); }
.site-header {
  background: rgba(6,16,29,.92);
  box-shadow: 0 8px 26px rgba(0,0,0,.08);
}
.nav-wrap { height: 70px; }
.brand { gap: 13px; }
nav { gap: 24px; }
nav a { font-size: .85rem; }
.button { border-radius: 13px; }
.section-light { background: #f8fafc; }
.section-soft { background: linear-gradient(180deg, #f4f8fb 0%, #edf4f8 100%); }
section:not(.hero) { padding: var(--section-space) 0; }
.section-heading { margin-bottom: 34px; }
.section-heading.narrow { max-width: 760px; }
.section-heading p,
.understanding-grid p,
.brief-showcase-copy p,
.about-grid p,
.cta-panel p { line-height: 1.66; }

/* Hero — stronger first-screen balance */
.hero { padding: 66px 0 72px; }
.hero-grid {
  grid-template-columns: minmax(0, .95fr) minmax(480px, 1.05fr);
  gap: 46px;
  align-items: center;
}
.hero-copy { max-width: 585px; }
.hero-copy h1 {
  max-width: 575px;
  margin: 12px 0 18px;
  font-size: clamp(3.05rem, 4.45vw, 4.78rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero-copy > p {
  max-width: 560px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.62;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-actions .button {
  min-width: 174px;
  min-height: 50px;
}
.hero-actions .button:first-child {
  box-shadow: 0 15px 38px rgba(53,113,255,.34);
}
.hero-actions .button-ghost {
  color: #dce7f5;
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
}
.microcopy { max-width: 470px; margin-top: 12px !important; }
.hero-brief {
  transform: none;
  border-radius: 22px;
  box-shadow: 0 26px 72px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.03);
}

/* Consistent section density */
.source-map { gap: 10px; }
.source-card { min-height: 108px; border-color: #e1e7ee; box-shadow: 0 9px 24px rgba(38,61,83,.04); }
.community-node {
  width: 112px;
  height: 112px;
  background: radial-gradient(circle at 35% 25%, #162c4a, #071321 68%);
  box-shadow: 0 16px 40px rgba(7,19,33,.2), 0 0 0 1px rgba(70,120,255,.08);
}
.understanding-grid { gap: 54px; }
.understanding-grid > div:first-child { max-width: 500px; }
.understanding-visual { min-height: 340px; }
.orbit-list span { border-color: #dfe7ee; box-shadow: 0 7px 20px rgba(22,49,70,.04); }
.clarity-core { box-shadow: 0 0 70px rgba(90,76,255,.22); }
.compare-grid { max-width: 940px; }
.compare-card { padding: 27px; }
.outcome-flow { gap: 11px; }
.outcome-card { min-height: 134px; box-shadow: 0 9px 24px rgba(31,52,72,.04); }
.connection-example { max-width: 1020px; margin: 30px auto 0; padding: 17px 21px; }
.brief-showcase { gap: 52px; }
.compact-brief { box-shadow: var(--clarity-shadow); }
.trust-grid { margin: 0 auto; }
.about-grid { align-items: center; }
.cta-panel { border-radius: 22px; }

/* Tablet */
@media (max-width: 1100px) {
  :root { --section-space: 78px; }
  .shell { width: min(100% - 40px, 1160px); }
  nav { gap: 17px; }
  .hero-grid { grid-template-columns: .98fr 1.02fr; gap: 32px; }
  .hero-copy h1 { font-size: clamp(2.9rem, 5.1vw, 4.25rem); }
  .brief-item { grid-template-columns: 40px 1fr 76px; }
}

@media (max-width: 980px) {
  :root { --section-space: 72px; }
  .nav-wrap { height: 66px; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { max-width: 690px; }
  .hero-copy h1 { max-width: 660px; font-size: clamp(2.85rem, 7vw, 4.1rem); }
  .hero-copy > p { max-width: 625px; }
  .hero-brief { max-width: 740px; width: 100%; margin: 0 auto; }
  .source-map { grid-template-columns: repeat(3, 1fr) !important; }
  .community-node { width: 104px; height: 104px; }
  .understanding-grid { gap: 40px; }
  .brief-showcase { gap: 40px; }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --section-space: 60px; }
  .shell { width: min(100% - 34px, 1180px); }
  .site-header { background: rgba(6,16,29,.97); }
  .nav-wrap { height: 60px; }
  .brand { gap: 10px; font-size: .79rem; letter-spacing: .26em; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark::before { inset: 6px; }
  .brand-mark::after { left: -7px; top: 9px; width: 11px; }

  .hero { padding: 34px 0 48px; }
  .hero-grid { gap: 24px; }
  .hero-copy h1 {
    margin: 9px 0 14px;
    max-width: 100%;
    font-size: clamp(2.12rem, 9.6vw, 2.75rem) !important;
    line-height: 1.01;
    letter-spacing: -.05em;
  }
  .hero-copy > p {
    font-size: .91rem;
    line-height: 1.52;
    margin: 0;
  }
  .eyebrow { font-size: .61rem; letter-spacing: .17em; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 17px;
  }
  .hero-actions .button {
    min-width: 0;
    width: 100%;
    min-height: 47px;
    padding: 0 14px;
    font-size: .85rem;
  }
  .hero-actions .button:first-child { min-height: 51px; }
  .hero-actions .button-ghost { background: rgba(255,255,255,.035); }
  .microcopy { margin-top: 9px !important; font-size: .67rem !important; line-height: 1.4 !important; }

  .hero-brief { border-radius: 17px; padding: 12px; }
  .brief-head { gap: 8px; }
  .brief-head h2 { font-size: 1.04rem; }
  .status-dot { padding: 4px 7px; }
  .brief-item { grid-template-columns: 33px 1fr !important; padding: 11px; margin: 8px 0; }
  .hero-brief .mini-chart { display: none; }
  .brief-icon { width: 29px; height: 29px; }
  .brief-item h3 { font-size: .80rem; }
  .brief-item p { font-size: .68rem; }
  .ask-box { font-size: .68rem; padding: 10px 11px; }

  section:not(.hero) { padding: var(--section-space) 0; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2,
  .understanding-grid h2,
  .brief-showcase h2,
  .trust-grid h2,
  .about-grid h2,
  .cta-panel h2 {
    font-size: clamp(1.82rem, 8.2vw, 2.45rem);
    line-height: 1.05;
  }
  .source-map { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .source-card { min-height: 96px; }
  .community-node { grid-column: 1 / -1; width: 92px; height: 92px; margin: 3px auto; }
  .understanding-visual { grid-template-columns: 1fr !important; gap: 12px; min-height: auto; }
  .clarity-core { margin: 3px auto; width: 96px; height: 96px; font-size: 2.75rem; }
  .orbit-list { gap: 8px; }
  .orbit-list span { padding: 10px 11px; }
  .left-list span, .right-list span { text-align: left !important; }
  .compare-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .compare-card { padding: 20px; }
  .compare-card h3 { font-size: 1.17rem; }
  .versus { margin: -2px auto; }
  .outcome-flow { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .outcome-card { min-height: 122px; padding: 16px 13px; }
  .connection-example { justify-content: flex-start; gap: 7px; font-size: .70rem; }
  .brief-showcase { gap: 26px; }
  .trust-grid { grid-template-columns: 1fr !important; gap: 17px; }
  .trust-mark { width: 78px; height: 78px; }
  .about-grid { gap: 15px; }
  .cta-panel { border-radius: 18px; }
  .cta-actions { width: 100%; }
  .cta-actions .button { width: 100%; }
  .footer-grid { gap: 10px; }
}

@media (max-width: 390px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero-copy h1 { font-size: 2.18rem !important; }
  .outcome-flow { grid-template-columns: 1fr !important; }
  .brand { letter-spacing: .21em; }
}
