:root {
  color-scheme: light;
  --ink: #162337;
  --muted: #414d60;
  --accent: #ff7419;
  --accent-text: #b74700;
  --accent-ink: #221508;
  --accent-hover: #ff8a3b;
  --accent-dot: #ffad77;
  --accent-heading: #c55008;
  --accent-progress: #c34c07;
  --accent-soft: #fff0e5;
  --accent-window-soft: #f4dbd1;
  --accent-window: #ffb483;
  --accent-on-footer: #ffb27f;
  --accent-on-dark: #ffbd93;
  --accent-shadow: #ff74191c;
  --accent-shadow-hover: #ff74192b;
  --accent-glow: #fff0e8;
  --panel: #f5f6fb;
  --line: #e5e8f1;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

:root[data-theme="blue"] {
  --accent: #a9d6ef;
  --accent-text: #20638b;
  --accent-ink: #102f47;
  --accent-hover: #94c9e8;
  --accent-dot: #81bcdd;
  --accent-heading: #246e97;
  --accent-progress: #3f8db8;
  --accent-soft: #e9f5fc;
  --accent-window-soft: #d9eaf6;
  --accent-window: #a7cfe7;
  --accent-on-footer: #b2def6;
  --accent-on-dark: #bbdef2;
  --accent-shadow: #246e971c;
  --accent-shadow-hover: #246e972b;
  --accent-glow: #e8f2ff;
}

:root[data-theme="kgara"] {
  --brand-surface: #244984;
  --accent: #294e8e;
  --accent-text: #294e8e;
  --accent-ink: #fff;
  --accent-hover: #1f407b;
  --accent-dot: #749bd4;
  --accent-heading: #294e8e;
  --accent-progress: #82bbf1;
  --accent-soft: #ebf2fc;
  --accent-window-soft: #e1ebfa;
  --accent-window: #9cbae4;
  --accent-on-footer: #b9d9ff;
  --accent-on-dark: #b9d9ff;
  --accent-shadow: #294e8e1c;
  --accent-shadow-hover: #294e8e2b;
  --accent-glow: #e5edfb;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height, 76px) + 20px); }
html::after {
  content: "";
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-progress), var(--accent));
  transform: scaleX(var(--reading-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}
body, h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 2; background: var(--panel); border-bottom: 1px solid #ebedf5; }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { width: fit-content; }
.brand img { mix-blend-mode: multiply; }
nav { display: flex; align-items: center; gap: 24px; }
.header-inner nav { font-size: 15px; }
nav a:hover { color: var(--accent-text); }
.header-inner nav a[aria-current="page"] { color: var(--accent-text); text-decoration: underline; text-underline-offset: 8px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
}
.button:hover { background: var(--accent-hover); }
.button > span { font-size: 21px; line-height: 1; }
.header-cta { justify-self: end; min-height: 36px; padding-inline: 20px; font-size: 14px; }

.hero {
  background-color: var(--panel);
}
.hero-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 32px; padding-block: 70px 50px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid #dce3f1;
  border-radius: 40px;
  background: #eff3fa;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-dot); }
h1 { margin-top: 24px; font-size: clamp(34px, 3.8vw, 50px); line-height: 1.12; letter-spacing: -.045em; }
.hero h1 { line-height: 1.2; letter-spacing: -.018em; }
h1 span { color: var(--accent-text); }
@supports (background-clip: text) {
  h1 span { background: linear-gradient(95deg, var(--ink) 4%, var(--accent-heading) 94%); background-clip: text; color: transparent; }
}
.hero-description { max-width: 57ch; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.button-outline { background: transparent; color: var(--accent-text); }
.button-outline:hover { background: var(--accent-soft); }
.button .play { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font-size: 13px; }
.hero-visual { border: 1px solid #eaedf4; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 16px 34px #1c2b4610; }
.window-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding-inline: 16px; border-bottom: 1px solid #f6f6f8; }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #e58b86; }
.window-bar i:nth-child(2) { background: var(--accent-window-soft); }
.window-bar i:nth-child(3) { background: var(--accent-window); }
.logo-stage { aspect-ratio: 3 / 2; position: relative; }
.logo-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.logo-stage img.banner-active { opacity: 1; }

.features { padding-block: 48px; }
.section-heading { text-align: center; margin-bottom: 48px; }
h2 { font-size: 32px; line-height: 1.2; letter-spacing: -.03em; }
#features-title, #intro-title, #showcase-title, #pricing-title { font-size: clamp(34px, 4.4vw, 50px); }
.section-heading p { max-width: 635px; margin: 16px auto 0; color: var(--muted); line-height: 1.5; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.feature { padding: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; color: #fff; background: #1c2839; }
.feature-icon.accent { background: var(--accent); color: var(--accent-ink); }
.feature-icon svg { width: 25px; height: 25px; }
.feature h3 { margin-top: 22px; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.feature p { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.site-footer { background: #1c2637; color: #f4f7fc; }
.footer-inner { min-height: 136px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 13px; }
.footer-brand { flex: none; }
.site-footer nav { gap: 16px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--accent-on-footer); }

/* Render the existing logo in white and orange over dark navigation surfaces. */
:is(.footer-brand, [data-theme="kgara"] .header-inner .brand) img {
  width: 94px;
  mix-blend-mode: normal;
  filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='logo' color-interpolation-filters='sRGB'%3E%3CfeColorMatrix in='SourceGraphic' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 -1.65 0 1.61' result='white'/%3E%3CfeColorMatrix in='SourceGraphic' type='matrix' values='0 0 0 0 1 0 0 0 0 .45 0 0 0 0 .10 1.5 0 -1.5 0 0' result='orange'/%3E%3CfeComposite in='orange' in2='white' operator='over'/%3E%3CfeComposite in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/svg%3E#logo");
}

[data-theme="kgara"] :is(.site-header, .hero, .site-footer) {
  background: var(--brand-surface);
  color: #fff;
}

[data-theme="kgara"] .site-header { border-bottom-color: #ffffff30; }
[data-theme="kgara"] .header-inner nav a:is(:hover, [aria-current="page"]) { color: var(--accent-on-dark); }
[data-theme="kgara"] .hero-description { color: #e8f0ff; }
[data-theme="kgara"] .hero h1 span { background: none; color: #c6e0ff; }
[data-theme="kgara"] .hero .eyebrow { border-color: #afcff075; background: #ffffff12; color: #f1f6ff; }
[data-theme="kgara"] :is(.site-header, .hero, .site-footer) :focus-visible { outline-color: #fff; }
[data-theme="kgara"] :is(.site-header, .hero) .button { border-color: #e4efff; background: #fff; color: var(--brand-surface); }
[data-theme="kgara"] :is(.site-header, .hero) .button:hover { background: #e4efff; }
[data-theme="kgara"] .hero .button-outline { background: transparent; color: #fff; }
[data-theme="kgara"] .hero .button-outline:hover { background: #ffffff18; }

.company { padding-block: clamp(38px, 6vw, 76px); }
.company .section-heading { margin-bottom: 28px; }
.company h1 { margin-top: 0; }
.company-content { display: grid; gap: 22px; max-width: 76ch; margin-inline: auto; color: var(--muted); line-height: 1.65; }
.company-content h3 { color: var(--ink); font-size: 21px; line-height: 1.3; }
.company-card { padding: clamp(16px, 3vw, 24px); border-left: 3px solid var(--accent); border-radius: 4px; background: var(--panel); }
.company-card blockquote, .company-card p, .company-principles p { margin: 8px 0 0; }
.company-principles ul { display: grid; gap: 6px; margin: 8px 0 0; padding-left: 22px; }
.company-principles li::marker { color: var(--accent-text); }

.pricing { padding-block: clamp(46px, 7vw, 90px); background: #fff; }
.pricing .section-heading { margin-bottom: 42px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 24px; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 32px); border: 1px solid #d7deea; border-radius: 8px; background: #fff; }
.pricing-card-featured { border-color: var(--accent); box-shadow: 0 10px 28px var(--accent-shadow); }
.pricing-card h3 { font-size: 23px; line-height: 1.2; }
.plan-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 4px 14px; border-radius: 100px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.plan-description { min-height: 3.1em; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.plan-price strong { color: var(--ink); font-size: clamp(30px, 3.5vw, 46px); line-height: 1.15; letter-spacing: -.035em; }
.plan-price-custom { align-items: center; min-height: clamp(34.5px, 4.025vw, 52.9px); }
.plan-price-custom strong { font-size: clamp(22px, 2.5vw, 32px); }
.plan-features { display: grid; gap: 10px; padding: 18px 0 0 20px; margin: 20px 0 26px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; line-height: 1.4; }
.plan-features li::marker { content: "✓  "; color: var(--accent-text); }
.pricing-card .button { margin-top: auto; text-align: center; }

.contact { padding-block: clamp(38px, 6vw, 76px); background: var(--panel); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 48px); }
.trial-card, .contact-card { padding: clamp(22px, 4vw, 46px); border-radius: 8px; }
.trial-card { border: 1px solid #d7deea; background: #fff; }
.trial-card form { margin-top: 24px; }
.trial-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.trial-wide { grid-column: 1 / -1; }
.trial-fields label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }
.required-mark { color: #b42318; font-weight: 700; }
.trial-fields input, .trial-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #aeb9cb;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}
.trial-fields textarea { resize: vertical; }
#trial-form .button { width: 100%; margin-top: 18px; }
#trial-form .button:disabled { opacity: .65; cursor: default; }
#trial-status, #trial-form noscript p { color: var(--muted); font-size: 13px; line-height: 1.5; }
#trial-status:not(:empty), #trial-form noscript p { margin-top: 10px; }
.contact-card { container-type: inline-size; background: #1c2637; color: #fff; }
.contact-card h3 { font-size: clamp(11px, 4cqi, 19px); line-height: 1.3; letter-spacing: -.015em; }
.contact-description { margin-top: 12px; color: #e0e7f2; line-height: 1.55; }
.contact-card dl { display: grid; gap: 16px; margin-top: 20px; }
.contact-card dl > div { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 10px; }
.contact-card dt { color: var(--accent-on-dark); }
.contact-card dt svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card dd { color: #e0e7f2; line-height: 1.4; }

@media (max-width: 1050px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .container { width: calc(100% - 48px); }
  .hero-inner { gap: 24px; padding-top: 52px; }
  .hero-actions .button { padding-inline: 13px; }
  .feature { padding: 22px; }
  .feature h3 { font-size: 20px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: calc(var(--header-height, 124px) + 16px); }
  .container { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 10px; padding-block: 12px 16px; }
  .header-inner nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 42px; gap: 28px; }
  h1 { font-size: clamp(30px, 7vw, 44px); }
  .hero-description { font-size: 16px; margin-top: 16px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .features { padding-block: 38px; }
  .section-heading { margin-bottom: 26px; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature h3 { margin-top: 14px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .plan-description { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; justify-content: start; gap: 16px; padding-block: 24px; }
}

@media (max-width: 440px) {
  .trial-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-entering {
    animation: section-enter 420ms ease-out backwards;
  }

  .hero-visual.is-entering,
  .feature.is-entering:nth-child(even),
  .catalog-card.is-entering:nth-child(even) {
    animation-delay: 75ms;
  }

  .button { transition: background-color 180ms ease, box-shadow 180ms ease; }
  .feature, .catalog-card, .pricing-card { transition: translate 200ms ease, border-color 180ms ease, box-shadow 180ms ease; }
  .logo-stage img { transition: opacity 800ms cubic-bezier(.4, 0, .2, 1); }
  .button > span { transition: translate 180ms ease; }
}

@media (hover: hover) and (pointer: fine) {
  .button:hover { box-shadow: 0 4px 12px #16233720; }
  .feature:hover, .catalog-card:hover, .pricing-card:not(.pricing-card-featured):hover {
    border-color: #ced9ea;
    box-shadow: 0 8px 24px #16233712;
  }
  .pricing-card-featured:hover { box-shadow: 0 12px 30px var(--accent-shadow-hover); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .feature:hover, .catalog-card:hover, .pricing-card:hover { translate: 0 -4px; }
  .hero-actions .button:hover > span { translate: 3px 0; }
}

@keyframes section-enter {
  from { opacity: .55; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

