:root {
  --ink: #10233f;
  --ink-2: #22344f;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: #d9dfdf;
  --muted: #667385;
  --gold: #d9b66f;
  --gold-2: #a9792b;
  --teal: #1f8a83;
  --teal-dark: #176862;
  --clay: #b86b50;
  --shadow: 0 24px 70px rgba(16, 35, 63, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.98);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(16, 35, 63, 0.1);
  box-shadow: 0 10px 32px rgba(16, 35, 63, 0.08);
}

.brand {
  flex: 0 0 auto;
}

.brand img,
.site-footer img {
  width: 196px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  padding-block: 6px;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  padding: 12px 18px;
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .button,
.header-actions .header-cta {
  min-height: 42px;
  padding: 10px 15px;
}

.header-cta,
.button.primary {
  background: var(--ink);
  color: var(--white);
}

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

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button.primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary:hover {
  border-color: var(--gold-2);
  background: rgba(217, 182, 111, 0.16);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 54px;
  overflow: hidden;
}

.hero-copy,
.hero-visual,
.section,
.trust-strip {
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.4vw, 6.55rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1.45vw, 1.3rem);
}

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

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0;
}

.proof-row div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: var(--radius);
}

.proof-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-row dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 780;
}

.hero-visual {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal-panel {
  width: min(100%, 540px);
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #10233f;
  border: 1px solid rgba(217, 182, 111, 0.32);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(16, 35, 63, 0.14);
}

.panel-top,
.signal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.panel-top strong {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.allocation-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 246px;
  height: 246px;
  margin: 28px auto;
}

.allocation-ring svg,
.allocation-ring div {
  position: absolute;
}

.allocation-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.allocation-ring circle {
  fill: none;
  stroke-width: 14;
}

.ring-base {
  stroke: rgba(255, 255, 255, 0.12);
}

.ring-a {
  stroke: var(--gold);
  stroke-dasharray: 150 365;
}

.ring-b {
  stroke: var(--teal);
  stroke-dasharray: 96 365;
  stroke-dashoffset: -156;
}

.ring-c {
  stroke: var(--clay);
  stroke-dasharray: 64 365;
  stroke-dashoffset: -258;
}

.allocation-ring div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.allocation-ring span,
.metric-grid span,
.signal-list {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
}

.allocation-ring strong {
  font-size: 1.35rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid div {
  min-height: 84px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
}

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 150px;
  margin: 20px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.chart span {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-list div {
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.signal-list span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(31, 138, 131, 0.18);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  border: 1px solid rgba(16, 35, 63, 0.12);
  background: rgba(16, 35, 63, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip div {
  padding: clamp(22px, 3vw, 32px);
  background: var(--white);
}

.trust-strip span {
  color: var(--gold-2);
  font-weight: 850;
}

.trust-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 1.04rem;
}

.trust-strip p,
.section-intro p,
.solution-card p,
.process-grid p,
.split p,
.contact-copy p,
.site-footer p,
.site-footer span {
  color: var(--muted);
}

.section {
  padding: clamp(70px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-intro {
  max-width: 920px;
  margin-bottom: 36px;
}

.section-intro p {
  max-width: 790px;
  font-size: 1.08rem;
}

.process-grid,
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid article,
.solution-card,
.disclosure-box,
.contact-form {
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.07);
}

.process-grid article {
  padding: 22px;
}

.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal-dark);
  font-weight: 850;
}

.band {
  background:
    linear-gradient(90deg, rgba(16, 35, 63, 0.06), rgba(31, 138, 131, 0.08)),
    #eef1ec;
}

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

.solution-card {
  padding: clamp(22px, 3vw, 34px);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--gold);
  font-weight: 900;
}

.solution-card ul {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.solution-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-weight: 650;
}

.solution-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.46fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.split > div {
  max-width: 850px;
}

.security-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.security-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
}

.security-list span {
  color: var(--muted);
}

.disclosure-box {
  padding: 26px;
  background: var(--ink);
  color: var(--white);
}

.disclosure-box p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--white);
}

.contact-copy {
  position: sticky;
  top: 116px;
}

.contact-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-points span {
  padding: 14px 16px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: var(--radius);
  color: var(--ink-2);
  background: var(--paper);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cdd6d8;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
  font-weight: 560;
  outline: none;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 138, 131, 0.14);
}

small {
  min-height: 18px;
  color: #a5433b;
  font-size: 0.79rem;
  font-weight: 700;
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 620;
}

.check-row input {
  min-height: auto;
  margin-top: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-button {
  width: 100%;
  border: 0;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  display: none;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-weight: 740;
}

.form-status.is-success,
.form-status.is-error {
  display: block;
}

.form-status.is-success {
  color: #115c4c;
  background: #dff3ed;
}

.form-status.is-error {
  color: #88352e;
  background: #f8e2de;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p,
.site-footer span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer span {
  font-size: 0.9rem;
}

.auth-page,
.dashboard-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(31, 138, 131, 0.08), rgba(217, 182, 111, 0.12)),
    var(--paper);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
}

.auth-brand {
  margin-bottom: 22px;
}

.auth-card {
  width: min(100%, 520px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(16, 35, 63, 0.12);
}

.auth-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.auth-card p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--teal-dark);
  font-weight: 850;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(16, 35, 63, 0.1);
  background: rgba(247, 244, 238, 0.98);
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-user span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.dashboard-user .button {
  min-height: 40px;
  padding: 9px 14px;
}

.dashboard-shell {
  padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 72px);
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dashboard-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.dashboard-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid rgba(16, 35, 63, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.07);
}

.wide-card {
  grid-column: span 3;
  min-height: auto;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.card-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.card-head strong {
  color: var(--teal-dark);
}

.portfolio-bars,
.task-list,
.note-timeline {
  display: grid;
  gap: 14px;
}

.portfolio-bars div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-bottom: 15px;
}

.portfolio-bars div::after,
.portfolio-bars i {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 7px;
  border-radius: 999px;
}

.portfolio-bars div::after {
  width: 100%;
  background: #e5ebe9;
}

.portfolio-bars i {
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 1;
}

.portfolio-bars span,
.dashboard-note,
.note-timeline p {
  color: var(--muted);
}

.task-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.task-list li {
  position: relative;
  padding: 12px 12px 12px 34px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 700;
}

.task-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a9b5b4;
}

.task-list .is-done::before {
  background: var(--teal);
}

.risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.risk-tags span {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(217, 182, 111, 0.22);
  font-size: 0.84rem;
  font-weight: 800;
}

.note-timeline div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--paper);
}

.note-timeline time {
  color: var(--teal-dark);
  font-weight: 850;
}

.note-timeline p {
  margin: 0;
}

@media (max-width: 1080px) {
  .hero,
  .contact-section,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand img {
    width: 166px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
    padding-top: 6px;
    font-size: 0.88rem;
  }

  .header-cta {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

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

  .proof-row,
  .trust-strip,
  .solution-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    text-align: left;
  }

  .dashboard-header,
  .dashboard-hero,
  .dashboard-user {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .terminal-panel {
    padding: 14px;
  }

  .allocation-ring {
    width: 206px;
    height: 206px;
  }

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

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

  .auth-card,
  .dashboard-card {
    padding: 20px;
  }

  .note-timeline div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
