:root {
  --ink: #f7fbff;
  --ink-2: #d9e7f5;
  --muted: #91a7bd;
  --dark: #050a12;
  --dark-2: #0a1220;
  --dark-3: #111d2f;
  --panel: rgba(13, 25, 43, 0.78);
  --panel-strong: rgba(17, 33, 56, 0.92);
  --line: rgba(162, 202, 255, 0.16);
  --surface: #ffffff;
  --blue: #4da3ff;
  --blue-2: #70d6ff;
  --white: #ffffff;
  --gold: #ffd166;
  --green: #45f0b5;
  --rust: #ff9a6c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --glow: 0 0 36px rgba(77, 163, 255, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(77, 163, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(69, 240, 181, 0.12), transparent 24rem),
    linear-gradient(180deg, #08111f 0%, #050a12 46%, #070d16 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(162, 202, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 202, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(2.25rem, 4.25vw, 3.9rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3.05rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--glow);
}

.brand-mark img {
  display: block;
  width: 42px;
  height: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.button,
.header-cta,
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 17px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.header-cta,
.button.primary {
  color: #04101d;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 18px 44px rgba(77, 163, 255, 0.28);
}

.language-toggle {
  min-width: 44px;
  color: var(--ink);
  border-color: rgba(112, 214, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.button.ghost {
  color: var(--ink);
  border-color: rgba(112, 214, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 590px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 78px) 0 64px;
}

.hero::after {
  content: "";
  position: absolute;
  right: min(2vw, 18px);
  top: 92px;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(112, 214, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(77, 163, 255, 0.22), transparent 42%),
    conic-gradient(from 140deg, transparent, rgba(112, 214, 255, 0.22), transparent, rgba(69, 240, 181, 0.12), transparent);
  filter: blur(0.2px);
  opacity: 0.7;
  z-index: -1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.eyebrow,
.panel-label {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.cred-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cred-row span,
.industry-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-panel,
.calc-results,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-2), var(--blue), var(--green));
}

.hero-panel h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  min-height: 2.5em;
}

.hero-panel p {
  margin: 14px 0 20px;
  color: var(--ink-2);
}

.text-link {
  color: var(--blue-2);
  font-weight: 850;
}

.rotating-panel.is-changing {
  opacity: 0.72;
  transform: translateY(2px);
}

.rotation-dots {
  display: flex;
  gap: 8px;
  margin-top: 26px;
}

.rotation-dots button {
  width: 32px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(145, 167, 189, 0.34);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.rotation-dots button.is-active {
  width: 46px;
  background: linear-gradient(90deg, var(--blue-2), var(--green));
  box-shadow: 0 0 18px rgba(112, 214, 255, 0.24);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

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

.section-heading.narrow {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 0;
}

.proof-strip article,
.audit-steps article,
.agent-grid article,
.case-grid article,
.template-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 25, 43, 0.66);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.proof-strip article {
  padding: 20px;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  color: var(--white);
}

.proof-strip span,
.audit-steps p,
.agent-grid p,
.agent-grid li,
.case-grid p,
.template-card span,
.contact p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 7vw, 88px);
  border-top: 1px solid var(--line);
}

.copy-stack > p {
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 1.03rem;
}

.audit-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.audit-steps article {
  padding: 20px;
}

.audit-steps span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.audit-steps h3 {
  margin-bottom: 8px;
}

.growth-engine {
  position: relative;
  width: 100%;
  padding-left: clamp(18px, 4vw, 52px);
  padding-right: clamp(18px, 4vw, 52px);
  background:
    radial-gradient(circle at 82% 20%, rgba(69, 240, 181, 0.14), transparent 25rem),
    radial-gradient(circle at 20% 78%, rgba(77, 163, 255, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(4, 13, 25, 0.96), rgba(8, 22, 38, 0.94));
  border-block: 1px solid var(--line);
}

.growth-engine .section-heading,
.growth-grid,
.growth-callout {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.growth-grid article,
.growth-callout {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 25, 43, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.growth-grid article {
  min-height: 270px;
  padding: 24px;
}

.growth-grid h3 {
  margin-bottom: 12px;
}

.growth-grid p,
.growth-callout p {
  color: var(--muted);
}

.growth-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 32px);
  background:
    linear-gradient(135deg, rgba(77, 163, 255, 0.16), rgba(69, 240, 181, 0.08)),
    rgba(13, 25, 43, 0.78);
}

.growth-callout h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  overflow-wrap: normal;
  word-break: normal;
}

.growth-callout .button {
  white-space: nowrap;
}

.calculator-section {
  width: 100%;
  padding-left: clamp(18px, 4vw, 52px);
  padding-right: clamp(18px, 4vw, 52px);
  background:
    radial-gradient(circle at 18% 18%, rgba(77, 163, 255, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(9, 19, 35, 0.9), rgba(10, 27, 44, 0.92));
  border-block: 1px solid var(--line);
}

.calculator-section .section-heading,
.calculator {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.calculator {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(162, 202, 255, 0.18);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(112, 214, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.14);
}

select option {
  color: #07111d;
}

textarea {
  resize: vertical;
}

.calc-results {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--panel-strong);
}

.calc-results > strong {
  display: block;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  text-shadow: 0 0 32px rgba(69, 240, 181, 0.25);
}

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

.result-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.result-grid span,
.result-grid b {
  display: block;
}

.result-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.result-grid b {
  margin-top: 5px;
  color: var(--white);
  font-size: 1rem;
}

#calcSummary {
  color: var(--ink-2);
}

.agent-grid,
.template-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

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

.agent-grid article,
.case-grid article {
  padding: clamp(22px, 3vw, 30px);
}

.agent-grid h3,
.case-grid h3 {
  margin-bottom: 12px;
}

.agent-grid ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.agent-grid li + li {
  margin-top: 8px;
}

.templates {
  width: 100%;
  padding-left: clamp(18px, 4vw, 52px);
  padding-right: clamp(18px, 4vw, 52px);
  background:
    radial-gradient(circle at 76% 26%, rgba(112, 214, 255, 0.18), transparent 26rem),
    #03070e;
  border-block: 1px solid var(--line);
  color: var(--surface);
}

.templates .section-heading,
.template-grid {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.templates .section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.templates .eyebrow {
  color: var(--green);
}

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

.template-card {
  display: grid;
  gap: 12px;
  min-height: 176px;
  padding: 24px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(17, 33, 56, 0.94), rgba(10, 18, 32, 0.94));
}

.template-card strong {
  color: var(--white);
  font-size: 1.05rem;
}

.case-studies {
  border-top: 1px solid var(--line);
}

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

.case-grid p + p {
  margin-top: 10px;
}

.case-grid b {
  color: var(--ink-2);
}

.industries {
  padding-top: 24px;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.market-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(17, 33, 56, 0.72), rgba(10, 18, 32, 0.68));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.market-grid h3 {
  margin-bottom: 10px;
}

.market-grid p {
  color: var(--muted);
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(28px, 7vw, 92px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact > div p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.03rem;
}

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

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(18px, 4vw, 52px);
  color: var(--surface);
  background: #03070e;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-top: 4px;
  color: var(--muted);
}

.site-footer a {
  color: var(--blue-2);
  font-weight: 850;
}

.dashboard-page {
  min-height: 100vh;
}

.dashboard-shell {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

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

.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.dashboard-header p {
  max-width: 720px;
  margin-top: 12px;
  color: var(--muted);
}

.dashboard-login,
.dashboard-panel,
.dashboard-stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 25, 43, 0.72);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.dashboard-login {
  display: grid;
  gap: 14px;
  max-width: 460px;
  padding: 24px;
}

.is-hidden {
  display: none !important;
}

.dashboard-content {
  display: grid;
  gap: 18px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.4fr;
  gap: 14px;
}

.dashboard-stats article {
  padding: 20px;
}

.dashboard-stats span,
.inquiry-item span,
.seo-history span,
dt {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.dashboard-panel {
  min-height: 260px;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.inquiry-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.inquiry-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  cursor: pointer;
}

.inquiry-item.is-active {
  border-color: rgba(112, 214, 255, 0.62);
  background: rgba(77, 163, 255, 0.12);
}

.inquiry-item small {
  color: var(--muted);
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.detail-stack a {
  color: var(--blue-2);
}

.detail-stack h4 {
  margin: 0 0 8px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.seo-history,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.seo-history article,
.analytics-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.seo-history strong,
.analytics-grid strong {
  display: block;
  margin: 8px 0;
}

.seo-history p,
.analytics-grid p,
.empty-state,
#dashboardLoginMessage,
#detailMessage {
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-header.is-open {
    grid-template-rows: auto auto;
  }

  .site-header.is-open .nav-links {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .site-header.is-open .nav-links a {
    padding: 11px 0;
  }

  .hero,
  .split,
  .calculator,
  .contact,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    top: 160px;
    width: min(80vw, 520px);
  }

  .proof-strip,
  .audit-steps,
  .growth-grid,
  .market-grid,
  .template-grid,
  .case-grid,
  .seo-history,
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .growth-callout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 66px;
    padding: 11px 16px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 3.1rem);
  }

  .hero {
    width: min(100% - 32px, 1180px);
    padding-top: 42px;
  }

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

  .section {
    width: min(100% - 32px, 1180px);
  }

  .proof-strip,
  .audit-steps,
  .growth-grid,
  .market-grid,
  .calc-form,
  .result-grid,
  .agent-grid,
  .template-grid,
  .case-grid,
  .dashboard-stats,
  .seo-history,
  .analytics-grid,
  dl {
    grid-template-columns: 1fr;
  }

  .site-footer,
  .dashboard-header {
    display: grid;
  }
}
