/* ---------- Kalara Precision RCM — Design System ----------
   Concept: "Precision instrument for revenue."
   Signature motifs: measurement tick-rulers, hairline rules,
   mono instrument readouts, corner registration marks on imagery,
   one scrolling readout band. */

/* ---------- Tokens ---------- */

:root {
  --primary: #0B5CAB;
  --primary-light: #1E88E5;
  --accent: #7ED321;
  --text: #0A2540;
  --background: #F7FAFC;
  --card-bg: #E4F1FC;
  --success: #2E7D32;
  --gradient: linear-gradient(100deg, #1E88E5, #7ED321);

  --tint-blue: #E4F1FC;
  --tint-lime: #EFF9E4;
  --ink: #0A2540;
  --slate-100: #e2e8f0;
  --slate-200: #cbd5e1;
  --slate-300: #94a3b8;
  --slate-400: #64748b;

  --teal: var(--primary);
  --teal-bright: var(--primary-light);
  --dark: var(--ink);
  --cream: var(--tint-blue);
  --cream-2: var(--tint-blue);
  --blush: var(--background);
  --blush-2: var(--background);
  --slate-500: var(--ink);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --sp-4: 0.25rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-20: 1.25rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-40: 2.5rem;
  --sp-64: 4rem;
  --sp-80: 5rem;

  --line: 1px solid var(--slate-100);
}

/* ---------- Reset & base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  overflow-x: clip;
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  font-size: 1rem;
  line-height: 1.6;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, p {
  margin: 0;
}

::selection {
  background: var(--primary);
  color: #fff;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--sp-20);
  padding-right: var(--sp-20);
}

/* Kicker = mono instrument label */

.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

.kicker-light {
  color: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--sp-12);
}

.section-text {
  color: var(--slate-400);
  line-height: 1.7;
  margin-top: var(--sp-20);
  max-width: 34rem;
}

.arrow {
  display: inline-block;
  margin-left: var(--sp-8);
  font-family: var(--font-mono);
}

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .assessment-success:not([hidden]) {
    animation: none;
  }
  .hero .kicker,
  .hero .hero-text,
  .hero .hero-actions,
  .hero .hero-title .hero-line,
  .hero .frame img,
  .hero .frame-cap,
  .hero .readout,
  .hero-ruler {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
  .hero .frame-corner {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .readout-bar::after {
    animation: none;
  }
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  border: 1px solid var(--primary);
  border-radius: 0;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.6rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.btn-primary::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -4px;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.btn-primary:hover::after {
  transform: scaleX(1);
}

.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.9rem 0.4rem;
  border-bottom: 1px solid var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-pilot {
  display: none;
  align-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-pilot:hover {
  background: var(--ink);
  color: #fff;
}

.btn-pilot-block {
  display: flex;
  justify-content: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 1rem 1.6rem;
  width: 100%;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-submit:hover {
  background: var(--ink);
  color: var(--accent);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 252, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: var(--line);
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-16);
}

.logo {
  display: flex;
  align-items: center;
}

.brand-mark img {
  width: 160px;
  height: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: var(--sp-8) 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.nav-active::after {
  transform: scaleX(1);
}

.nav-active {
  color: var(--primary);
}

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 0;
  color: var(--ink);
  padding: var(--sp-8);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile:not([hidden]) {
  animation: nav-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.nav-mobile {
  border-top: var(--line);
  padding: var(--sp-20);
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.nav-mobile .nav-link {
  font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .btn-pilot { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--background);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
  align-items: center;
  padding-top: var(--sp-64);
  padding-bottom: var(--sp-64);
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-size: clamp(2.9rem, 8vw, 5.5rem);
  margin-top: var(--sp-16);
  color: #fff;
}

.hero-title-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.hero-text {
  margin-top: var(--sp-24);
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(247, 250, 252, 0.78);
}

.hero-actions {
  margin-top: var(--sp-32);
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-24);
}

.frame {
  position: relative;
  margin: 0;
  line-height: 0;
}

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

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(247, 250, 252, 0.35);
  pointer-events: none;
}

.frame-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 0 solid var(--accent);
  z-index: 2;
}

.frame-corner.tc { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame-corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame-corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame-corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.frame-cap {
  position: relative;
  line-height: 1.4;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-400);
  background: var(--background);
  padding: var(--sp-12) var(--sp-16);
  border-bottom: var(--line);
  border-left: var(--line);
  border-right: var(--line);
}

.hero .frame-cap {
  color: rgba(247, 250, 252, 0.6);
  background: transparent;
  border-color: rgba(247, 250, 252, 0.2);
}

.hero .frame img {
  max-height: 560px;
}

.readout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(247, 250, 252, 0.25);
  background: rgba(11, 92, 171, 0.25);
  padding: var(--sp-16) var(--sp-20);
  min-width: 240px;
}

.readout-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.readout-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1.05;
  color: #fff;
  margin-top: var(--sp-8);
}

.readout-unit {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(247, 250, 252, 0.7);
}

.readout-bar {
  margin-top: var(--sp-16);
  height: 3px;
  width: 100%;
  background: rgba(247, 250, 252, 0.2);
  position: relative;
  overflow: hidden;
}

.readout-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient);
  transform-origin: left center;
  transform: scaleX(var(--breadth-settled));
  animation: readout-calibrate 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.05s backwards;
}

@keyframes readout-calibrate {
  from { transform: scaleX(0); }
}

.hero-ruler {
  position: relative;
  border-top: 1px solid rgba(247, 250, 252, 0.2);
  padding: var(--sp-20) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-20);
}

.ruler-tick {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--accent);
  position: relative;
}

.ruler-tick::before,
.ruler-tick::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--accent);
}

.ruler-tick::before { left: 0; }
.ruler-tick::after { right: 0; }

.ruler-readout {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 250, 252, 0.55);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-ruler .container {
  display: contents;
}

/* Hero entrance: instrument boots, then measures. One rehearsed focal moment. */

.hero ::selection {
  background: var(--accent);
  color: var(--ink);
}

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(0.32em);
  animation: hero-line-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-line:nth-child(1) { animation-delay: 0.12s; }
.hero-line:nth-child(2) { animation-delay: 0.28s; }
.hero-line:nth-child(3) { animation-delay: 0.44s; }

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translateY(0.32em);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero .kicker,
.hero .hero-text,
.hero .hero-actions {
  opacity: 0;
  transform: translateY(0.4em);
}

.hero .kicker {
  animation: hero-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero .hero-text {
  animation: hero-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero .hero-actions {
  animation: hero-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.72s forwards;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.4em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .frame img {
  transform: scale(1.06);
  transform-origin: center;
  animation: hero-imagery 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes hero-imagery {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero .frame-corner {
  opacity: 0;
  transform: scale(2);
  animation: hero-corner 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero .frame-corner.tc { animation-delay: 0.78s; transform-origin: top left; }
.hero .frame-corner.tr { animation-delay: 0.86s; transform-origin: top right; }
.hero .frame-corner.bl { animation-delay: 0.94s; transform-origin: bottom left; }
.hero .frame-corner.br { animation-delay: 1.02s; transform-origin: bottom right; }

@keyframes hero-corner {
  from {
    opacity: 0;
    transform: scale(2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero .frame-cap {
  opacity: 0;
  transform: translateY(0.3em);
  animation: hero-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 1.15s forwards;
}

.hero .readout {
  opacity: 0;
  transform: translateY(0.4em);
  animation: hero-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.02s forwards;
}

.hero-ruler {
  opacity: 0;
  transform: translateY(0.35em);
  animation: hero-fade-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.28s forwards;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--primary);
  border-top: 1px solid var(--primary);
  border-bottom: 1px solid var(--primary);
  padding: var(--sp-16) 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-40);
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.marquee-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.6rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

/* ---------- About ---------- */

.about {
  background: var(--background);
  padding: var(--sp-80) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-64);
  align-items: center;
}

.about-media {
  position: relative;
}

.frame-lg img {
  width: 100%;
}

.about-media .frame img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -1.25rem;
  left: -1px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: #fff;
  padding: var(--sp-20) var(--sp-24);
  border-bottom: 3px solid var(--accent);
}

.badge-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.badge-l {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--sp-8);
}

.about-copy {
  position: relative;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
  margin-top: var(--sp-40);
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-24);
}

.stat {
  position: relative;
  padding: 0;
}

.stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--primary);
}

.stat-l {
  display: block;
  margin-top: var(--sp-8);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.stat-tick {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-top: var(--sp-16);
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Services ---------- */

.services {
  background: #fff;
  padding: var(--sp-80) 0;
  border-top: var(--line);
}

.section-head {
  margin-bottom: var(--sp-64);
}

.service-list {
  max-width: 58rem;
  border-top: 2px solid var(--ink);
}

.service-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: var(--sp-16) var(--sp-24);
  padding: var(--sp-32) 0;
  border-bottom: var(--line);
  transition: background 0.25s ease;
}

.service-item:hover {
  background: var(--tint-blue);
}

.service-n {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--primary);
  padding-top: var(--sp-20);
  align-self: start;
}

.service-body {
  min-width: 0;
}

.service-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.service-d {
  margin-top: 0.5rem;
  color: var(--slate-400);
  line-height: 1.65;
  font-size: 0.95rem;
  max-width: 40rem;
}

.service-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--sp-12);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--slate-200);
  padding: 0.3rem 0.6rem;
}

.service-sub {
  margin-top: var(--sp-16);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  list-style: none;
  padding: 0;
}

.service-sub li {
  display: flex;
  align-items: baseline;
  gap: var(--sp-12);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--slate-400);
}

.service-sub li::before {
  content: "—";
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .service-sub { grid-template-columns: 1fr 1fr; column-gap: var(--sp-24); }
}

@media (min-width: 1024px) {
  .service-sub { grid-template-columns: 1fr 1fr; }
}

.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--slate-200);
  color: var(--ink);
  font-size: 1.1rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.service-item:hover .service-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateX(4px);
}

@media (min-width: 640px) {
  .service-item { grid-template-columns: 4rem 1fr auto; }
}

/* ---------- Assessment ---------- */

.assessment {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: #fff;
}

.assessment::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.assessment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
  align-items: center;
  position: relative;
}

.assessment-copy {
  padding: var(--sp-64) 0;
}

.assessment-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 26rem;
  margin-top: var(--sp-16);
}

.assessment-sub {
  margin-top: var(--sp-20);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 30rem;
}

.assessment-form {
  margin-top: var(--sp-32);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-20);
  max-width: 34rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.8rem 0.2rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field select option {
  color: var(--ink);
  background: #fff;
}

.field textarea {
  resize: vertical;
}

.field-wide {
  grid-column: 1 / -1;
}

.assessment-success {
  margin-top: var(--sp-32);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-16);
  border: 1px solid rgba(126, 211, 33, 0.6);
  background: rgba(126, 211, 33, 0.12);
  padding: var(--sp-24);
  color: #fff;
  max-width: 34rem;
}

.success-mark {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.assessment-success:not([hidden]) {
  animation: success-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes success-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.assessment-media {
  display: none;
}

@media (min-width: 1024px) {
  .assessment-grid { grid-template-columns: 1.3fr 0.7fr; }
  .assessment-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--sp-64) 0;
  }
  .assessment-media .frame {
    width: 22rem;
  }
  .assessment-media .frame img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
}

/* ---------- FAQ ---------- */

.faq {
  background: #fff;
  padding: var(--sp-80) 0;
  border-top: var(--line);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
}

.faq-list {
  border-top: 2px solid var(--ink);
}

.faq-item {
  border-bottom: var(--line);
  padding: var(--sp-20) 0;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.faq-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-qtext {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.faq-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-item.open .faq-icon::before {
  background: var(--accent);
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
}

.faq-a {
  overflow: hidden;
  color: var(--slate-400);
  line-height: 1.7;
  padding-left: 3.25rem;
}

.faq-a-wrap.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: var(--sp-16);
}

@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-64); }
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
  align-items: center;
  position: relative;
}

.cta-copy {
  padding: var(--sp-64) 0;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 26rem;
  margin-top: var(--sp-16);
}

.cta-text {
  margin-top: var(--sp-20);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 30rem;
}

.cta-contact {
  margin-top: var(--sp-32);
  display: flex;
  align-items: center;
  gap: var(--sp-24);
  flex-wrap: wrap;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-16);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.cta-phone:hover {
  color: var(--accent);
}

.flag {
  width: 2.25rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 0;
  background: linear-gradient(to bottom, #ff9933 33.3%, #ffffff 33.3%, #ffffff 66.6%, #138808 66.6%);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.flag::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  border: 1px solid #000080;
}

.cta-media {
  display: none;
}

@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1.05fr 0.95fr; }
  .cta-media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--sp-64) 0;
  }
  .cta-media .frame {
    width: 20rem;
  }
  .cta-media .frame img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
}

/* ---------- Why Choose Us ---------- */

.why {
  background: var(--background);
  padding: var(--sp-80) 0;
  border-top: var(--line);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-64);
  align-items: center;
}

.why-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-16);
}

.card {
  background: #fff;
  border: var(--line);
  padding: var(--sp-24);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.card-index {
  position: absolute;
  top: var(--sp-16);
  right: var(--sp-20);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate-300);
}

.card-icon {
  color: var(--primary);
}

.card-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: var(--sp-16);
}

.card-d {
  margin-top: var(--sp-8);
  color: var(--slate-400);
  line-height: 1.65;
  font-size: 0.92rem;
}

.why-frame {
  width: 100%;
}

.why-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 640px) {
  .why-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Blogs / Insights ---------- */

.blogs {
  background: var(--background);
  padding: var(--sp-80) 0;
  border-top: var(--line);
}

.revenue-insights-box {
  background: var(--tint-lime);
  border: 1px solid rgba(46, 125, 50, 0.25);
  padding: clamp(1.5rem, 4vw, 3rem);
  margin-bottom: var(--sp-64);
}

.insights-lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 44rem;
}

.insights-lead strong {
  color: var(--primary);
}

.insights-h {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--success);
  margin-top: var(--sp-24);
  margin-bottom: var(--sp-16);
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(46, 125, 50, 0.2);
}

.insight-item {
  display: flex;
  align-items: baseline;
  gap: var(--sp-16);
  padding: var(--sp-16) 0;
  border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

.insight-check {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--success);
  flex-shrink: 0;
}

.insight-item span:last-child {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.insights-note {
  font-style: italic;
  color: var(--slate-400);
  font-size: 0.95rem;
  border-top: 1px solid rgba(46, 125, 50, 0.2);
  padding-top: var(--sp-16);
  margin-top: var(--sp-16);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-32);
}

.blog-featured-img {
  width: 100%;
  object-fit: cover;
}

.blog-featured .frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-featured-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: var(--sp-20);
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
  justify-content: center;
}

.blog-item {
  display: flex;
  align-items: center;
  gap: var(--sp-20);
  border-bottom: var(--line);
  padding-bottom: var(--sp-32);
}

.blog-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blog-item-img {
  width: 8rem;
  height: 6rem;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-item-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--ink);
}

.blog-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--sp-16);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.blog-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

@media (min-width: 640px) {
  .insights-grid { grid-template-columns: 1fr 1fr; column-gap: var(--sp-40); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-40);
  padding-top: var(--sp-64);
  padding-bottom: var(--sp-64);
}

.footer-logo {
  display: inline-flex;
  background: #fff;
  border-radius: 4px;
  padding: 0 6px;
}

.footer-logo a {
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 160px;
  height: auto;
  display: block;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 20rem;
  margin-top: var(--sp-20);
}

.footer-company {
  color: #fff;
  font-weight: 600;
  margin-top: var(--sp-12);
  font-size: 0.9rem;
}

.footer-ceo {
  margin-top: var(--sp-8);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-ceo a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-ceo a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-site {
  margin-top: var(--sp-8);
  font-size: 0.9rem;
}

.footer-site-label {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.7rem;
}

.footer-site a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-site a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-h {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-20);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  color: rgba(255, 255, 255, 0.75);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-16);
}

.footer-icon {
  flex-shrink: 0;
  color: var(--accent);
  display: inline-flex;
  margin-top: 2px;
}

.footer-contact a {
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bar .container {
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bar-sep {
  color: var(--accent);
  font-family: var(--font-mono);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
}