:root {
  --bg: #f2f3f6;
  --bg-elev: #ffffff;
  --bg-soft: #e9f4fb;
  --text: #193247;
  --muted: #617487;
  --brand: #1e9ddc;
  --brand-dark: #1176a8;
  --stroke: #d3dee7;
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-glow: rgba(30, 157, 220, 0.16);
  --nav-active-bg: rgba(30, 157, 220, 0.15);
  --button-ghost-bg: #ffffff;
  --button-ghost-border-hover: #67b8e4;
  --button-primary-shadow: rgba(17, 118, 168, 0.28);
  --input-bg: #ffffff;
  --max-width: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(21, 45, 68, 0.1);
}

[data-theme="dark"] {
  --bg: #090d13; /* 60% near-black base */
  --bg-elev: #141c25; /* 30% dark gray-blue surfaces */
  --bg-soft: #1d2733;
  --text: #f3f5f8;
  --muted: #9eb0c3;
  --brand: #1e9ddc; /* 10% accent blue from logo */
  --brand-dark: #62c2ec;
  --stroke: #304050;
  --header-bg: rgba(9, 13, 19, 0.94);
  --hero-glow: rgba(30, 157, 220, 0.18);
  --nav-active-bg: rgba(30, 157, 220, 0.2);
  --button-ghost-bg: #141c25;
  --button-ghost-border-hover: #1e9ddc;
  --button-primary-shadow: rgba(10, 27, 43, 0.5);
  --input-bg: #111821;
  --shadow: 0 10px 28px rgba(4, 6, 10, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: radial-gradient(1000px 480px at 0% -10%, var(--hero-glow), transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--stroke);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
}

.brand-logo {
  width: 356px;
  height: 92px;
  object-fit: contain;
  display: block;
}

.brand-fallback {
  display: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.primary-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a.is-active {
  color: var(--brand-dark);
  background: var(--nav-active-bg);
}

.primary-nav a[data-page="contact.html"] {
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  padding-inline: 0.9rem;
}

.primary-nav a[data-page="contact.html"]:hover,
.primary-nav a[data-page="contact.html"]:focus-visible,
.primary-nav a[data-page="contact.html"].is-active {
  color: #fff;
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  border-radius: 9px;
  background: var(--bg-elev);
  width: 44px;
  height: 40px;
  padding: 0.45rem;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 20px;
  margin-block: 5px;
  background: var(--text);
}

.hero {
  padding: 5.4rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  line-height: 1.13;
  margin: 0 0 1rem;
}

.hero-subtitle {
  max-width: 62ch;
  color: var(--muted);
  margin: 0 0 1.4rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--brand);
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.18rem;
  line-height: 1.26;
  margin: 0 0 0.55rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 18px var(--button-primary-shadow);
}

.button--primary:hover,
.button--primary:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.button--ghost {
  border-color: var(--stroke);
  color: var(--brand-dark);
  background: var(--button-ghost-bg);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--button-ghost-border-hover);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.notranslate {
  unicode-bidi: isolate;
}

.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0 !important;
}

html {
  margin-top: 0 !important;
}

#google_translate_element,
.goog-te-gadget,
.goog-logo-link,
.goog-te-gadget span,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}

body,
h1,
h2,
h3,
p,
li {
  cursor: default;
}

.hero-metrics {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.hero-metrics li {
  color: var(--muted);
}

.hero-metrics strong {
  color: var(--text);
}

.hero-card,
.card {
  border: 1px solid var(--stroke);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(22, 24, 35, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.hero-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.hero-card ul,
.check-list {
  padding-left: 1rem;
  margin: 0;
  color: var(--muted);
}

.visual-break {
  padding-top: 2.2rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.visual-frame {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: 0 6px 18px rgba(20, 24, 38, 0.08);
}

.visual-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-caption {
  margin: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}

.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}

.news-filter-field {
  display: grid;
  gap: 0.35rem;
}

.news-filter-field label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-filter-field select {
  min-width: 160px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  height: 38px;
  padding: 0.35rem 0.6rem;
  font: inherit;
}

.news-group[hidden] {
  display: none;
}

.news-thumb {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.news-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.news-time {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.news-time time {
  font-weight: 600;
}

.proof-strip {
  padding: 0 0 2.2rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.proof-grid--spaced {
  margin-bottom: 1rem;
}

.proof-item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  padding: 0.95rem;
}

.proof-item strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.section--compact {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card p,
.lead {
  margin: 0;
  color: var(--muted);
}

.outcome {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--stroke);
}

.case-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.case-tab {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--muted);
  padding: 0.42rem 0.85rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.case-tab.is-active {
  color: var(--brand-dark);
  background: var(--nav-active-bg);
  border-color: var(--brand);
}

.case-panel {
  display: none;
}

.case-panel.is-active {
  display: block;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.about-cta {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.hero-badges {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.problem-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.problem-points {
  display: grid;
  gap: 0.75rem;
}

.pain-point {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pain-point:hover {
  transform: translateX(3px);
  border-color: var(--brand);
}

.pain-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pain-icon.red {
  background: #fde8e8;
}

.pain-icon.yellow {
  background: #fef3cd;
}

.pain-icon.blue {
  background: #dbeafe;
}

.pain-copy h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
}

.pain-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.page-hero {
  padding: 4.5rem 0 2rem;
}

.page-hero .hero-card {
  background: linear-gradient(180deg, var(--bg-elev), var(--bg-soft));
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.pill {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(103, 61, 230, 0.1);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.meta-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li + li {
  margin-top: 0.65rem;
}

.form-row {
  display: grid;
  gap: 0.8rem;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

.theme-toggle {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  width: 42px;
  min-width: 42px;
  height: 40px;
  padding: 0;
  font: inherit;
  font-size: 0;
  font-weight: 600;
  cursor: pointer;
  position: relative;
}

.language-select {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: var(--bg-elev);
  color: transparent;
  height: 40px;
  width: 42px;
  min-width: 42px;
  padding: 0;
  font: inherit;
  font-size: 0;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231e9ddc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20'/%3E%3Cpath d='M12 2a15 15 0 0 1 0 20'/%3E%3Cpath d='M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.language-select option {
  color: var(--text);
  font-size: 0.92rem;
}

.theme-toggle::before {
  content: "🌙";
  font-size: 1rem;
  line-height: 1;
}

[data-theme="dark"] .theme-toggle::before {
  content: "☀️";
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.language-select:hover,
.language-select:focus-visible {
  background: var(--bg-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.1rem 0 1.3rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--brand-dark);
  font-weight: 500;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand p {
  color: var(--muted);
  margin: 0.6rem 0 0;
}

.footer-col h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--stroke);
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

.translate-hint {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: min(92vw, 360px);
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.translate-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.translate-hint__title {
  margin: 0 0 0.28rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.translate-hint__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 110;
  display: none;
  width: min(92vw, 360px);
  justify-content: center;
}

.sticky-cta .button {
  width: 100%;
  box-shadow: 0 10px 24px var(--button-primary-shadow);
}

@media (max-width: 920px) {
  .nav-wrap {
    min-height: 74px;
    display: grid;
    grid-template-columns: 52px minmax(120px, 1fr) 92px;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 44px;
    border: 1px solid var(--stroke);
    background: var(--bg-elev);
    color: var(--brand-dark);
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.35rem;
  }

  .nav-toggle__line {
    width: 22px;
    background: var(--brand-dark);
    height: 2.5px;
    margin-block: 3px;
    transition: transform 0.22s ease, opacity 0.22s ease, background-color 0.22s ease;
    transform-origin: center;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }

  .nav-toggle.is-open {
    background: var(--brand);
    border-color: var(--brand-dark);
  }

  .nav-toggle.is-open .nav-toggle__line {
    background: #fff;
  }

  .nav-toggle.is-open .nav-toggle__line:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle__line:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    margin: 0;
    z-index: 2;
  }

  .brand-logo {
    width: clamp(132px, 44vw, 192px);
    height: auto;
  }

  .header-controls {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    gap: 0.4rem;
  }

  .theme-toggle {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .hero-grid,
  .problem-grid,
  .about-grid,
  .cards--three,
  .cards--two,
  .hero-metrics,
  .contact-grid,
  .proof-grid,
  .visual-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .news-filter-field select {
    min-width: 0;
    width: 100%;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    background: var(--bg-elev);
    padding: 1rem;
    border-bottom: 1px solid var(--stroke);
    border-top: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    z-index: 40;
  }

  .primary-nav.is-open {
    display: flex;
  }
  .footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    grid-template-columns: 50px minmax(108px, 1fr) 88px;
    gap: 0.4rem;
  }

  .nav-toggle {
    width: 50px;
    height: 42px;
  }

  .theme-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .language-select {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }

  .sticky-cta {
    display: flex;
  }

  .translate-hint {
    bottom: 5.2rem;
  }
}
