/* ==========================================================================
   QUOTC — main styles
   Breakpoints: desktop >= 1200, tablet 768–1199, mobile <= 767
   ========================================================================== */

:root {
  --q-brand: #00969b;
  --q-action: #007f86;
  --q-action-hover: #006a70;
  --q-action-active: #00575d;
  --q-accent-light: #16d3d4;
  --q-ink: #14232b;
  --q-muted: #52636f;
  --q-dark: #0b1b22;
  --q-dark-deep: #07151b;
  --q-on-dark: #fff;
  --q-muted-on-dark: #b5c5ce;
  --q-surface: #fff;
  --q-surface-soft: #eef5f8;
  --q-surface-accent: #e1f4f4;
  --q-border: #d8e3e8;
  --q-border-dark: #344850;
  --q-input-border: #7a8e99;
  --q-success: #18794e;
  --q-warning: #895500;
  --q-danger: #b42318;
  --q-danger-hover: #912018;

  --q-font: 'Inter', Arial, sans-serif;
  --q-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --q-container: 1200px;
  --q-gutter: 24px;
  --q-gap: 24px;
  --q-section-space: 96px;
  --q-cta-space: 72px;
  --q-header-h: 80px;
  --q-radius-control: 6px;

  --q-ease: 180ms ease-out;
}

@media (max-width: 1199px) {
  :root {
    --q-section-space: 72px;
    --q-cta-space: 64px;
  }
}

@media (max-width: 767px) {
  :root {
    --q-gutter: 20px;
    --q-section-space: 56px;
    --q-cta-space: 48px;
    --q-header-h: 64px;
  }
}

@media (max-width: 374px) {
  :root {
    --q-gutter: 16px;
  }
}


/* Base
   ========================================================================== */

body {
  font-family: var(--q-font);
  font-size: 16px;
  line-height: 26px;
  color: var(--q-ink);
  background: var(--q-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

:focus-visible {
  outline: 2px solid var(--q-action);
  outline-offset: 3px;
}

.hero :focus-visible,
.cta :focus-visible {
  outline-color: var(--q-accent-light);
}

.container {
  width: calc(100% - 2 * var(--q-gutter));
  max-width: var(--q-container);
  margin-inline: auto;
}

/* hidden on screen, still read by screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-muted {
  color: var(--q-muted);
}


/* Typography
   ========================================================================== */

.eyebrow {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--q-ink);
}

.eyebrow--light,
.hero .eyebrow {
  color: var(--q-muted-on-dark);
}

.eyebrow--accent {
  color: var(--q-action);
}

.h2 {
  font-size: 40px;
  line-height: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

@media (max-width: 1199px) {
  .eyebrow {
    margin-bottom: 12px;
  }

  .h2 {
    font-size: 34px;
    line-height: 42px;
  }
}

@media (max-width: 767px) {
  .eyebrow {
    font-size: 11px;
    line-height: 16px;
  }

  .h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .h3 {
    font-size: 18px;
    line-height: 26px;
  }
}


/* Inline icons (color = currentColor)
   ========================================================================== */

.icon {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--chevron {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform var(--q-ease);
}


/* Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid var(--q-action);
  border-radius: var(--q-radius-control);
  background: var(--q-action);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--q-ease), border-color var(--q-ease), color var(--q-ease);
}

.btn:hover {
  background: var(--q-action-hover);
  border-color: var(--q-action-hover);
}

.btn:active {
  background: var(--q-action-active);
  border-color: var(--q-action-active);
}

.btn--lg {
  min-height: 52px;
  min-width: 180px;
}

.btn--sm {
  min-height: 44px;
  padding: 10px 20px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--outline {
  background: transparent;
  border-color: var(--q-border);
  color: var(--q-ink);
}

.btn--outline:hover {
  background: var(--q-surface-soft);
  border-color: var(--q-input-border);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--q-action);
  font-weight: 500;
  line-height: 24px;
  transition: color var(--q-ease);
}

.link:hover {
  color: var(--q-action-hover);
}

.link--light {
  color: var(--q-on-dark);
}

.link--light:hover {
  color: var(--q-accent-light);
}

/* link inside a sentence */
.text-link {
  font-weight: 500;
  color: var(--q-action);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--q-ease);
}

.text-link:hover {
  color: var(--q-action-hover);
}

/* secondary action: white with teal outline */
.btn--secondary {
  background: var(--q-surface);
  border-color: var(--q-action);
  color: var(--q-action);
}

.btn--secondary:hover {
  background: var(--q-surface-accent);
  border-color: var(--q-action-hover);
  color: var(--q-action-hover);
}

/* destructive action (delete confirmation) */
.btn--danger {
  background: var(--q-danger);
  border-color: var(--q-danger);
}

.btn--danger:hover,
.btn--danger:active {
  background: var(--q-danger-hover);
  border-color: var(--q-danger-hover);
}

.btn:disabled {
  border-color: var(--q-border);
  background: var(--q-border);
  color: var(--q-muted);
  cursor: default;
}

/* secondary button on dark sections */
.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--q-on-dark);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--q-on-dark);
}

.btn--outline-light:active {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--q-on-dark);
}


/* Shared components
   ========================================================================== */

/* soft square behind a 24px line icon */
.icon-tile {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--q-surface-accent);
}

.icon-tile img {
  width: 24px;
  height: 24px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--q-muted);
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 8px;
}

.breadcrumbs a {
  transition: color var(--q-ease);
}

.breadcrumbs a:hover {
  color: var(--q-action);
}

.breadcrumbs [aria-current] {
  color: var(--q-ink);
}

/* H1 of inner pages */
.page-title {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-title {
  margin-bottom: 40px;
}

@media (max-width: 1199px) {
  .page-title {
    font-size: 40px;
    line-height: 48px;
  }

  .section-title {
    margin-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .page-title {
    font-size: 32px;
    line-height: 40px;
  }

  .section-title {
    margin-bottom: 24px;
  }
}


/* Inner pages: hero
   ========================================================================== */

.page-hero {
  padding: 24px 0 48px;
  background: linear-gradient(180deg, var(--q-surface-soft) 0%, var(--q-surface) 100%);
}

/* solid light background (blog, contacts) */
.page-hero--soft {
  background: var(--q-surface-soft);
}

.breadcrumbs + .page-title {
  margin-top: 24px;
}

.page-hero__lead {
  margin-top: 12px;
  font-size: 24px;
  line-height: 32px;
  color: var(--q-muted);
}

@media (max-width: 767px) {
  .page-hero {
    padding-bottom: 32px;
  }

  .page-hero__lead {
    font-size: 20px;
    line-height: 28px;
  }
}


/* Code window (dark panel with tabs)
   ========================================================================== */

.code {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 8px 24px 24px;
  border: 1px solid var(--q-border-dark);
  border-radius: 12px;
  background: var(--q-dark-deep);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.code__tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--q-border-dark);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.code__tab {
  flex-shrink: 0;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--q-muted-on-dark);
  transition: color var(--q-ease), border-color var(--q-ease);
}

.code__tab:hover {
  color: var(--q-on-dark);
}

.code__tab.is-active {
  border-bottom-color: var(--q-accent-light);
  color: var(--q-on-dark);
}

.code__panel {
  margin: 20px 0 0;
  min-height: 176px;
  overflow-x: auto;
  font-family: var(--q-mono);
  font-size: 14px;
  line-height: 22px;
  color: var(--q-on-dark);
}

.code__key { color: #8fdfe0; }
.code__num { color: var(--q-accent-light); }
.code__str { color: #f2c58b; }

@media (max-width: 767px) {
  .code {
    padding: 4px 16px 16px;
  }

  .code__tabs {
    gap: 16px;
  }

  .code__panel {
    min-height: 0;
    font-size: 13px;
    line-height: 20px;
  }
}


/* Pagination
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.pagination__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--q-border);
  border-radius: var(--q-radius-control);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--q-ease), color var(--q-ease);
}

a.pagination__item:hover {
  border-color: var(--q-action);
  color: var(--q-action);
}

.pagination__item.is-current {
  border-color: var(--q-action);
  background: var(--q-action);
  color: #fff;
}

.pagination__item.is-disabled {
  border-color: var(--q-border);
  background: var(--q-surface-soft);
  color: var(--q-input-border);
}


/* Forms
   ========================================================================== */

.field {
  position: relative;
}

.field + .field,
.field + .field-row,
.field-row + .field,
.field-row + .field-row {
  margin-top: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.field-row .field + .field {
  margin-top: 0;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--q-input-border);
  border-radius: var(--q-radius-control);
  background: var(--q-surface);
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  color: var(--q-ink);
  transition: border-color var(--q-ease), box-shadow var(--q-ease);
}

.input::placeholder {
  color: var(--q-muted);
  opacity: 1;
}

.input:hover {
  border-color: var(--q-ink);
}

.input:focus,
.input:focus-visible {
  outline: none;
  border-color: var(--q-action);
  box-shadow: 0 0 0 3px rgba(0, 127, 134, 0.15);
}

/* value that can't be changed by the user */
.input[readonly] {
  border-color: var(--q-border);
  background: var(--q-surface-soft);
  color: var(--q-muted);
}

.input[readonly]:focus {
  border-color: var(--q-input-border);
  box-shadow: none;
}

textarea.input {
  min-height: 144px;
  resize: vertical;
}

/* help text under a field */
.field__hint {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--q-muted);
}

.field__error {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--q-danger);
}

.field > .field__error {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

@media (max-width: 767px) {
  .field__error {
    font-size: 11px;
  }
}

.field.is-invalid .input {
  border-color: var(--q-danger);
}

/* password with a show/hide button inside the field */
.password {
  position: relative;
}

.password .input {
  padding-right: 56px;
}

.password__toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--q-radius-control);
  color: var(--q-ink);
  transform: translateY(-50%);
}

.password__toggle .icon {
  width: 20px;
  height: 20px;
}

.password__hide,
.password__toggle[aria-pressed="true"] .password__show {
  display: none;
}

.password__toggle[aria-pressed="true"] .password__hide {
  display: block;
}

.form__actions {
  margin-top: 28px;
}

.form__success {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--q-radius-control);
  background: rgba(24, 121, 78, 0.08);
  font-size: 15px;
  line-height: 22px;
  color: var(--q-success);
}

@media (max-width: 767px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .form__actions .btn {
    width: 100%;
  }
}

/* light backdrop with logo fragments at the edges (pages with forms) */
.form-backdrop {
  background:
    url('../img/form-bg-left.svg') left top / auto 100% no-repeat,
    url('../img/form-bg-right.svg') right top / auto 100% no-repeat,
    linear-gradient(135deg, var(--q-surface-soft) 0%, var(--q-surface-accent) 100%);
}

/* white card around a form */
.form-card {
  padding: 40px;
  border: 1px solid var(--q-border);
  border-radius: 12px;
  background: var(--q-surface);
  box-shadow: 0 24px 60px rgba(11, 27, 34, 0.08);
}

/* on narrow screens the card covers the middle, decor would only crowd the edges */
@media (max-width: 1023px) {
  .form-backdrop {
    background: linear-gradient(135deg, var(--q-surface-soft) 0%, var(--q-surface-accent) 100%);
  }
}

@media (max-width: 767px) {
  .form-card {
    padding: 24px 20px;
  }
}

/* custom select: built by main.js on top of a native <select> */

.select {
  position: relative;
}

/* the native select stays in the form for submit and no-JS fallback */
.select.is-ready .select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.select__button.is-placeholder {
  color: var(--q-muted);
}

.select__button .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform var(--q-ease);
}

.select.is-open .select__button {
  border-color: var(--q-action);
  box-shadow: 0 0 0 3px rgba(0, 127, 134, 0.15);
}

.select.is-open .select__button .icon {
  transform: rotate(180deg);
}

.select__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 8px 0;
  border: 1px solid var(--q-border);
  border-radius: 8px;
  background: var(--q-surface);
  box-shadow: 0 12px 32px rgba(11, 27, 34, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--q-ease), transform var(--q-ease), visibility var(--q-ease);
}

.select.is-open .select__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.select__option {
  padding: 10px 20px;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
}

.select__option.is-active {
  background: var(--q-surface-soft);
}

.select__option[aria-selected="true"] {
  font-weight: 600;
  color: var(--q-action);
}

.field.is-invalid .select__button {
  border-color: var(--q-danger);
}


/* Header
   ========================================================================== */

.header {
  position: relative;
  z-index: 50;
  background: var(--q-surface);
  border-bottom: 1px solid var(--q-border);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--q-header-h);
}

.header__logo img {
  width: 176px;
}

.header__nav {
  margin-left: auto;
  margin-right: auto;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a,
.header__login {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  transition: color var(--q-ease);
}

.nav__external {
  width: 14px;
  height: 14px;
  margin-left: 5px;
  vertical-align: -2px;
}

.nav a:hover,
.header__login:hover {
  color: var(--q-action);
}

.header__nav a[aria-current],
.mobile-menu__list a[aria-current] {
  color: var(--q-action);
}

.header__side {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* language */

.lang {
  position: relative;
}

.lang__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  font-size: 14px;
  font-weight: 500;
}

.lang.is-open .icon--chevron {
  transform: rotate(180deg);
}

.lang__list {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 140px;
  padding: 8px 0;
  background: var(--q-surface);
  border: 1px solid var(--q-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(11, 27, 34, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--q-ease), transform var(--q-ease), visibility var(--q-ease);
}

.lang.is-open .lang__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang__list a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 22px;
}

.lang__list a:hover {
  background: var(--q-surface-soft);
}

.lang__list a.is-active {
  color: var(--q-action);
  font-weight: 600;
}

/* burger */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0 8px;
  /* no double-tap zoom delay, no extra clicks on touch screens */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--q-ink);
  transition: transform var(--q-ease), opacity var(--q-ease);
}

.burger.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* mobile menu */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--q-header-h));
  overflow-y: auto;
  padding-bottom: 32px;
  background: var(--q-surface);
  border-top: 1px solid var(--q-border);
}

.mobile-menu__list a {
  display: block;
  padding: 20px 0;
  border-bottom: 1px solid var(--q-border);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}

.mobile-menu__list li:last-child a {
  border-bottom: 0;
}

.mobile-menu__actions {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(7, 21, 27, 0.64);
  touch-action: manipulation;
}

@media (max-width: 1023px) {
  .header__nav,
  .header__actions {
    display: none;
  }

  .header__side {
    margin-left: auto;
    gap: 16px;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .header__logo img {
    width: 140px;
  }
}


/* Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--q-header-h));
  min-height: calc(100svh - var(--q-header-h));
  background: radial-gradient(ellipse at 75% 45%, #0f2a33 0%, var(--q-dark) 55%, var(--q-dark-deep) 100%);
  color: var(--q-on-dark);
  overflow: hidden;
}

.hero__main {
  flex: 1;
  display: grid;
  grid-template-columns: 52fr 48fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__title {
  font-size: 64px;
  line-height: 68px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__text {
  margin-top: 24px;
  font-size: 20px;
  line-height: 30px;
  color: var(--q-muted-on-dark);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

/* the canvas is much bigger than the column: the cloud spreads over the whole hero */
.hero__media {
  position: relative;
  align-self: stretch;
  min-height: 480px;
  pointer-events: none;
}

.hero__visual {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(1400px, 82vw);
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

/* wide screens have room on the right: move the mark away from the text */
@media (min-width: 1440px) {
  .hero__visual {
    transform: translate(-42%, -50%);
  }
}

/* noscript: plain logo mark */
.hero__fallback {
  width: min(688px, 40vw);
}

.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--q-border-dark);
  background: rgba(7, 21, 27, 0.6);
}

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

.stats__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 72px;
  padding: 20px 16px;
  font-size: 16px;
  font-weight: 500;
}

.stats__item + .stats__item {
  border-left: 1px solid var(--q-border-dark);
}

.stats__item img {
  display: none;
  width: 20px;
}

@media (max-width: 1199px) {
  .hero__title {
    font-size: 52px;
    line-height: 56px;
  }

  .hero__text {
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 1023px) {
  .hero {
    min-height: 0;
  }

  .hero__main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 56px 0 24px;
  }

  .hero__media {
    min-height: 360px;
  }

  .hero__visual {
    width: 640px;
  }

  .hero__fallback {
    width: 300px;
  }

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

  .stats__item {
    justify-content: flex-start;
    min-height: 0;
    padding: 14px 0;
  }

  .stats__item + .stats__item {
    border-left: 0;
    border-top: 1px solid var(--q-border-dark);
  }

  .stats__item img {
    display: block;
  }
}

@media (max-width: 767px) {
  .hero__main {
    padding-top: 40px;
  }

  .hero__title {
    font-size: 36px;
    line-height: 40px;
  }

  .hero__text {
    margin-top: 20px;
    font-size: 17px;
    line-height: 26px;
  }

  .hero__buttons {
    margin-top: 24px;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .hero__media {
    min-height: 280px;
  }

  .hero__visual {
    width: 520px;
  }

  .hero__fallback {
    width: 240px;
  }
}


/* Sections
   ========================================================================== */

.section {
  padding: var(--q-section-space) 0;
}

.section--soft {
  background: var(--q-surface-soft);
}


/* Product
   ========================================================================== */

.product__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.product__text .h2 {
  margin-bottom: 24px;
}

.product__text .text-muted {
  max-width: 520px;
  margin-bottom: 24px;
}

/* circuit illustration (also used on About) */
.circuit {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}

/* features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
}

.feature {
  padding: 8px 32px;
}

.feature:first-child {
  padding-left: 0;
}

.feature + .feature {
  border-left: 1px solid var(--q-border);
}

/* head and text rows are shared across the columns,
   so the text starts on one line even if a title wraps */
@media (min-width: 1024px) {
  .features {
    grid-template-rows: auto auto;
  }

  .feature {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}

/* icon and title in one row */
.feature__head {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature__text {
  margin-top: 12px;
  color: var(--q-muted);
}

@media (max-width: 1023px) {
  .product__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .circuit {
    margin-right: auto;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .feature,
  .feature:first-child {
    padding: 24px 0;
  }

  .feature:first-child {
    padding-top: 0;
  }

  .feature + .feature {
    border-left: 0;
    border-top: 1px solid var(--q-border);
  }
}

@media (max-width: 767px) {
  .feature__head {
    gap: 12px;
  }

  .feature__text {
    margin-top: 8px;
  }
}


/* CTA (dark)
   ========================================================================== */

.cta {
  position: relative;
  padding: var(--q-cta-space) 0;
  background: var(--q-dark);
  color: var(--q-on-dark);
  overflow: hidden;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  min-height: 176px;
}

.cta__text {
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
  color: var(--q-muted-on-dark);
}

.cta__content > .btn {
  margin-top: 32px;
}

/* test */

/* lines fill the right part of the block up to the window edge */
.cta--test .cta__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
}

.cta--test .cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* lines fade out under the heading */
@media (min-width: 1024px) {
  .cta--test .cta__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--q-dark), transparent 35%);
  }
}

.cta--test .cta__content {
  position: relative;
  z-index: 1;
}

/* connect */

.cta--connect .cta__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
}

.cta--connect .cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* soft edge towards the text column */
.cta--connect .cta__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 75%, var(--q-dark));
}

.cta--connect .cta__content {
  grid-column: 2;
}

.cta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.cta__price {
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--q-muted-on-dark);
}

.cta__price strong {
  font-weight: 600;
  color: var(--q-on-dark);
}

@media (max-width: 1023px) {
  .cta__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta--test,
  .cta--connect {
    padding-bottom: 0;
  }

  .cta--test .cta__inner,
  .cta--connect .cta__inner {
    min-height: 0;
  }

  .cta--connect .cta__content {
    grid-column: auto;
  }

  /* on mobile the graphic goes after the content */
  .cta--test,
  .cta--connect {
    display: flex;
    flex-direction: column-reverse;
  }

  .cta--test .cta__media,
  .cta--connect .cta__media {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 32px;
  }

  .cta--connect .cta__media::after {
    background: linear-gradient(to bottom, var(--q-dark), transparent 40%);
  }
}

@media (max-width: 767px) {
  .cta__text {
    font-size: 16px;
    line-height: 26px;
  }

  .cta__content > .btn {
    margin-top: 24px;
  }
}


/* CTA "Try QUOTC now" with code example (About, Blog)
   ========================================================================== */

.cta--try {
  background: linear-gradient(90deg, var(--q-dark) 0%, #0d2a33 60%, var(--q-dark) 100%);
}

.cta--try .cta__media {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.cta--try .cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta--try .cta__content {
  position: relative;
  z-index: 1;
}

.cta--try .cta__text {
  max-width: 480px;
}

/* code window on the right */

.cta--try .code {
  justify-self: end;
  max-width: 520px;
}

@media (max-width: 1023px) {
  .cta--try .cta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta--try .code {
    justify-self: stretch;
    max-width: none;
  }
}


/* Why
   ========================================================================== */

.why .h2 {
  margin-bottom: 40px;
}

.features--why {
  margin-top: 0;
}

@media (max-width: 1199px) {
  .why .h2 {
    margin-bottom: 32px;
  }
}

@media (max-width: 767px) {
  .why .h2 {
    margin-bottom: 24px;
  }
}


/* Roadmap: numbered onboarding steps (Home, About)
   ========================================================================== */

.roadmap__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: start;
  gap: 64px;
}

.roadmap__lead {
  max-width: 440px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 28px;
  color: var(--q-muted);
}

.roadmap__step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 40px;
  padding-bottom: 32px;
}

.roadmap__step:last-child {
  padding-bottom: 0;
}

/* line between the step circles */
.roadmap__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 64px;
  bottom: 0;
  left: 31px;
  width: 2px;
  background: var(--q-brand);
}

.roadmap__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--q-brand);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--q-brand);
}

.roadmap__content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0 32px;
  border-bottom: 1px solid var(--q-border);
}

.roadmap__step:last-child .roadmap__content {
  padding-bottom: 0;
  border-bottom: 0;
}

.roadmap__title {
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.roadmap__text {
  max-width: 460px;
  margin-top: 8px;
  color: var(--q-muted);
}

.roadmap__tag {
  flex-shrink: 0;
  padding-top: 4px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--q-action);
}

@media (max-width: 1023px) {
  .roadmap__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .roadmap__lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 26px;
  }

  .roadmap__step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding-bottom: 24px;
  }

  .roadmap__step:not(:last-child)::before {
    top: 48px;
    left: 23px;
  }

  .roadmap__num {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .roadmap__content {
    flex-direction: column;
    gap: 8px;
    padding: 8px 0 24px;
  }

  .roadmap__title {
    font-size: 19px;
    line-height: 26px;
  }

  .roadmap__tag {
    order: -1;
    padding-top: 0;
    font-size: 12px;
  }
}


/* Partners band
   ========================================================================== */

.partners {
  padding: 48px 0;
  background: var(--q-surface-soft);
}

.partners__label {
  margin-bottom: 24px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--q-muted);
}

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

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 88px;
  font-size: 26px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--q-muted);
  transition: color var(--q-ease);
}

.partner__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  fill: currentColor;
}

.partner__icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* brand colors on hover */
@media (hover: hover) {
  .partner--nexora:hover  { color: #d92d20; }
  .partner--alderis:hover { color: #b8892b; }
  .partner--traven:hover  { color: #1e3a8a; }
  .partner--korvex:hover  { color: #000; }
}

@media (max-width: 1023px) {
  .partners__list {
    grid-template-columns: 1fr 1fr;
  }

  .partner {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .partners {
    padding: 32px 0;
  }

  .partners__list {
    gap: 8px 16px;
  }

  .partner {
    gap: 10px;
    min-height: 56px;
    font-size: 15px;
    line-height: 18px;
    letter-spacing: 0.1em;
  }

  .partner__icon {
    width: 34px;
    height: 34px;
  }
}


/* SEO
   ========================================================================== */

.seo {
  padding: 64px 0;
}

.seo__text {
  max-width: 960px;
}

.seo .h2 {
  margin-bottom: 24px;
  font-size: 32px;
  line-height: 40px;
}

.seo p {
  color: var(--q-muted);
}

.seo p + p {
  margin-top: 16px;
}

.seo h3 {
  margin: 32px 0 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* "Read more" toggle: opens the hidden part of the text (main.js) */
.seo__toggle {
  margin-top: 24px;
}

.seo__toggle .icon {
  transition: transform var(--q-ease);
}

.seo__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

@media (max-width: 1199px) {
  .seo {
    padding: 56px 0;
  }
}

@media (max-width: 767px) {
  .seo {
    padding: 48px 0;
  }

  .seo .h2 {
    font-size: 24px;
    line-height: 32px;
  }
}


/* Footer
   ========================================================================== */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--q-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer__brand img {
  width: 152px;
}

.footer__copy {
  margin-top: 24px;
  font-size: 12px;
  line-height: 18px;
  color: var(--q-muted);
}

.footer__nav {
  display: flex;
  gap: 96px;
}

.footer__links {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer__links a {
  font-size: 14px;
  line-height: 22px;
  color: var(--q-muted);
  transition: color var(--q-ease);
}

.footer__links a:hover {
  color: var(--q-action);
}

@media (max-width: 1199px) {
  .footer {
    padding: 40px 0;
  }
}

@media (max-width: 767px) {
  .footer {
    padding: 32px 0;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__nav {
    gap: 32px;
  }

  .footer__nav > * {
    flex: 1;
  }
}


/* Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
