/* Algotradingbots theme — design system */

:root {
  --at-radius: 0.75rem;
  --at-radius-xl: calc(var(--at-radius) + 4px);

  --at-bg: oklch(0.16 0.025 260);
  --at-fg: oklch(0.97 0.005 250);
  --at-surface: oklch(0.20 0.028 262);
  --at-surface-2: oklch(0.235 0.03 262);
  --at-muted: oklch(0.72 0.02 255);
  --at-border: oklch(1 0 0 / 8%);
  --at-primary: oklch(0.68 0.18 245);
  --at-primary-fg: oklch(0.12 0.03 260);
  --at-cyan: oklch(0.78 0.15 210);
  --at-profit: oklch(0.78 0.18 155);
  --at-loss: oklch(0.68 0.22 25);
  --at-warning: oklch(0.80 0.16 70);
  --at-purple: oklch(0.65 0.20 295);

  --at-gradient-primary: linear-gradient(135deg, oklch(0.68 0.18 245), oklch(0.78 0.15 210));
  --at-gradient-glow: radial-gradient(60% 60% at 50% 0%, oklch(0.68 0.18 245 / 35%), transparent 70%);
  --at-gradient-purple: radial-gradient(50% 50% at 80% 20%, oklch(0.65 0.20 295 / 25%), transparent 70%);
  --at-shadow-glow: 0 20px 60px -20px oklch(0.68 0.18 245 / 45%);
  --at-shadow-card: 0 1px 0 0 oklch(1 0 0 / 6%) inset, 0 30px 60px -30px oklch(0 0 0 / 60%);

  --at-font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --at-font-display: "Space Grotesk", "Inter", ui-sans-serif, sans-serif;
  --at-font-mono: "JetBrains Mono", ui-monospace, monospace;

  --at-header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.at-body {
  margin: 0;
  background: var(--at-bg);
  color: var(--at-fg);
  font-family: var(--at-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--at-font-display);
  letter-spacing: -0.02em;
  margin-top: 0;
}

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

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

.at-site { min-height: 100vh; overflow-x: hidden; }

.site-main {
  background: transparent;
  margin: 0;
  padding: 0;
  max-width: none;
  box-shadow: none;
}

.site-main > *:first-child { margin-top: 0; }

.at-container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.at-section { position: relative; padding: 5rem 0; }
@media (min-width: 640px) { .at-section { padding: 7rem 0; } }

.at-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--at-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--at-cyan);
}

.at-eyebrow__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--at-cyan);
}

.at-text-gradient {
  background: linear-gradient(135deg, oklch(0.85 0.12 240), oklch(0.85 0.13 200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.at-glass,
.at-card,
.at-form-card {
  background: linear-gradient(180deg, oklch(1 0 0 / 4%), oklch(1 0 0 / 1%)), var(--at-surface);
  border: 1px solid var(--at-border);
  backdrop-filter: blur(12px);
  border-radius: var(--at-radius-xl);
  box-shadow: var(--at-shadow-card);
}

.at-grid-bg {
  background-image:
    linear-gradient(oklch(1 0 0 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 4%) 1px, transparent 1px);
  background-size: 48px 48px;
}

.at-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.at-button:hover { transform: scale(1.02); }

.at-button--primary {
  background: var(--at-gradient-primary);
  color: var(--at-primary-fg);
  box-shadow: var(--at-shadow-glow);
}

.at-button--ghost {
  border-color: oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 5%);
  color: var(--at-fg);
}

.at-button--ghost:hover { background: oklch(1 0 0 / 10%); }

/* Header */
.at-header {
  position: fixed;
  inset: 0.75rem 0.75rem auto;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.at-header__stack {
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 72rem;
}

.at-header__tagline {
  pointer-events: auto;
  margin: 0;
  padding: 0 1rem;
  max-width: 72rem;
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  color: var(--at-muted);
}

@media (min-width: 640px) {
  .at-header__tagline { font-size: 0.8125rem; }
}

.at-header__tagline--empty {
  display: none !important;
}

@media (min-width: 640px) { .at-header { inset: 1.25rem 0.75rem auto; } }

.at-header__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: oklch(0.16 0.025 260 / 70%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--at-border);
  transition: box-shadow 0.2s ease;
}

@media (min-width: 640px) { .at-header__inner { padding: 0.5rem 1.25rem; } }

.at-header.is-scrolled .at-header__inner {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.at-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: min(100%, 11rem);
  max-height: 2rem;
  flex-shrink: 1;
  overflow: hidden;
}

.at-logo--has-image {
  max-width: min(100%, 14rem);
}

.at-logo__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 0.5rem;
  background: var(--at-gradient-primary);
  color: var(--at-primary-fg);
  box-shadow: var(--at-shadow-glow);
  flex-shrink: 0;
}

.at-logo__text {
  font-family: var(--at-font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.at-logo__text--with-image {
  font-size: 0.9375rem;
}

.at-logo__accent { color: var(--at-cyan); }

.at-logo__custom {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-height: 2rem;
  max-width: 8rem;
  overflow: hidden;
  line-height: 0;
}

.at-header img.at-custom-logo-img,
.at-header .at-logo__custom img,
.at-header .custom-logo,
.at-header .custom-logo-link img {
  display: block;
  max-height: 2rem !important;
  max-width: 8rem !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.at-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  min-width: 0;
}

.at-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .at-nav { display: flex; }
}

.at-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.at-nav__list--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .at-nav__list--desktop { display: flex; }
}

.at-nav__list a {
  display: block;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--at-muted);
  transition: background 0.15s, color 0.15s;
}

.at-nav__list a:hover {
  background: oklch(1 0 0 / 5%);
  color: var(--at-fg);
}

.at-nav__cta--desktop { display: none; margin-left: 0.5rem; }
@media (min-width: 1024px) { .at-nav__cta--desktop { display: inline-flex; } }

.at-nav-toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 5%);
  color: var(--at-fg);
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 1024px) { .at-nav-toggle { display: none; } }

.at-nav-toggle__icon--close { display: none; }
.at-nav-toggle[aria-expanded="true"] .at-nav-toggle__icon--open { display: none; }
.at-nav-toggle[aria-expanded="true"] .at-nav-toggle__icon--close { display: block; }

.at-nav-panel {
  pointer-events: auto;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0.75rem;
  right: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: oklch(0.16 0.025 260 / 92%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--at-border);
}

.at-nav-panel[hidden] { display: none !important; }

.at-nav__list--mobile { display: flex; flex-direction: column; }
.at-nav__list--mobile a { padding: 0.625rem 0.75rem; border-radius: 0.5rem; color: oklch(0.97 0.005 250 / 90%); }
.at-nav__cta--mobile { display: flex; margin-top: 0.5rem; width: 100%; }

/* Hero */
.at-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}

@media (min-width: 1024px) {
  .at-hero { padding: 7rem 0 6rem; }
}

.at-hero__bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.at-hero__bg-glow,
.at-hero__bg-purple {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.at-hero__bg-glow {
  top: 0;
  height: 720px;
  background: var(--at-gradient-glow);
}

.at-hero__bg-purple { background: var(--at-gradient-purple); }

.at-hero__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .at-hero__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.at-hero__grid > .at-form-card {
  align-self: start;
  width: 100%;
}

.at-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 600;
  margin: 1.25rem 0 0;
}

.at-hero__lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--at-muted);
}

@media (min-width: 640px) { .at-hero__lead { font-size: 1.125rem; } }

.at-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.at-hero__note {
  margin-top: 1.25rem;
  max-width: 28rem;
  font-size: 0.75rem;
  color: var(--at-muted);
}

.at-form-card {
  position: relative;
  overflow: visible;
  padding: 1.5rem;
  container-type: inline-size;
  container-name: at-form-card;
}

@media (min-width: 640px) { .at-form-card { padding: 2rem; } }

.at-form-card__glow {
  position: absolute;
  right: -5rem;
  top: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 999px;
  background: var(--at-gradient-glow);
  opacity: 0.4;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.at-form-card__inner {
  position: relative;
  z-index: 1;
}

.at-form-card__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 600;
}

.at-form-card__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--at-muted);
}

.at-form-card__consent {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--at-muted);
}

.at-form-card__consent svg { flex-shrink: 0; margin-top: 0.125rem; color: var(--at-cyan); }

/* Section typography */
.at-section-head { max-width: 48rem; }

.at-section-head h2 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
}

.at-section-head p {
  margin-top: 1.25rem;
  color: var(--at-muted);
  font-size: 1rem;
}

.at-section-head--center { text-align: center; margin-inline: auto; }

/* Grids */
.at-grid-3 {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

@media (min-width: 768px) { .at-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.at-grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) { .at-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.at-grid-4 {
  display: grid;
  gap: 1rem;
  margin-top: 3.5rem;
}

@media (min-width: 640px) { .at-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .at-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.at-grid-features {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 640px) { .at-grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .at-grid-features { grid-template-columns: repeat(3, 1fr); } }

.at-card { padding: 1.5rem; position: relative; overflow: hidden; }

.at-card--feature,
.at-card--step {
  transition: transform 0.15s ease;
}

.at-card--feature:hover,
.at-card--step:hover {
  transform: translateY(-2px);
}

.at-card__accent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.78 0.15 210 / 60%), transparent);
  pointer-events: none;
}

.at-icon {
  display: block;
  flex-shrink: 0;
}

.at-card__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 5%);
  color: var(--at-cyan);
}

.at-card--feature .at-card__icon,
.at-card--step .at-card__icon {
  width: 2.75rem;
  height: 2.75rem;
}

.at-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.at-card__icon--loss { color: var(--at-loss); }
.at-card__icon--primary {
  background: var(--at-gradient-primary);
  color: var(--at-primary-fg);
  border: none;
}

.at-card h3 {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.at-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--at-muted);
}

.at-card__glow {
  position: absolute;
  right: -2rem;
  top: -2rem;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: var(--at-gradient-glow);
  opacity: 0.4;
  pointer-events: none;
}

.at-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
}

.at-divider::before,
.at-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: oklch(1 0 0 / 10%);
}

.at-divider span {
  font-family: var(--at-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--at-cyan);
}

.at-step-num {
  font-family: var(--at-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--at-cyan);
}

.at-step-big {
  font-family: var(--at-font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: oklch(1 0 0 / 10%);
}

.at-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Benefits */
.at-benefits {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .at-benefits { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
}

.at-benefit-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.at-benefit-item__check {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--at-gradient-primary);
  color: var(--at-primary-fg);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.at-benefit-item__check svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke-width: 3;
}

.at-benefit-item h3 { margin: 0; font-size: 1rem; }
.at-benefit-item p { margin: 0.25rem 0 0; font-size: 0.875rem; color: var(--at-muted); }

/* Platform mockup */
.at-platform {
  display: grid;
  gap: 2rem;
  margin-top: 3.5rem;
}

@media (min-width: 1024px) {
  .at-platform { grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
}

.at-platform__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.at-platform__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--at-muted);
}

.at-platform__list li::before {
  content: none;
  display: none;
}

.at-platform__list-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 5%);
  color: var(--at-cyan);
}

.at-platform__list-icon .at-icon {
  width: 1rem;
  height: 1rem;
}

.at-dashboard-wrap {
  position: relative;
}

.at-glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.at-glow-orb--left {
  left: -15%;
  top: -10%;
  width: 16rem;
  height: 16rem;
  background: oklch(0.68 0.18 245);
}

.at-glow-orb--right {
  right: -10%;
  bottom: -10%;
  width: 18rem;
  height: 18rem;
  background: oklch(0.65 0.20 295);
}

.at-dashboard {
  position: relative;
  padding: 0.75rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .at-dashboard { padding: 1rem; }
}

.at-dashboard__chrome {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 0.75rem;
}

.at-dashboard__dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.at-dashboard__dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
}

.at-dashboard__dots span:nth-child(1) { background: oklch(0.68 0.22 25 / 70%); }
.at-dashboard__dots span:nth-child(2) { background: oklch(0.80 0.16 70 / 70%); }
.at-dashboard__dots span:nth-child(3) { background: oklch(0.78 0.18 155 / 70%); }

.at-dashboard__live,
.at-dashboard__time {
  font-family: var(--at-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--at-muted);
}

.at-dashboard__main {
  border-radius: 0.75rem;
  border: 1px solid oklch(1 0 0 / 8%);
  background: var(--at-surface-2);
  padding: 1rem;
}

.at-dashboard__main-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.at-dashboard__pair {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.at-dashboard__change {
  color: var(--at-profit);
}

.at-dashboard__badge {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid oklch(0.78 0.18 155 / 30%);
  background: oklch(0.78 0.18 155 / 10%);
  padding: 0.25rem 0.625rem;
  font-family: var(--at-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--at-profit);
}

.at-dashboard__chart {
  margin-top: 0.75rem;
  height: 8rem;
}

@media (min-width: 640px) {
  .at-dashboard__chart { height: 10rem; }
}

.at-dashboard__chart svg {
  width: 100%;
  height: 100%;
}

.at-dashboard__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid oklch(1 0 0 / 8%);
}

.at-dashboard__metric-label {
  margin: 0;
  font-family: var(--at-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--at-muted);
}

.at-dashboard__metric-value {
  margin: 0.125rem 0 0;
  font-family: var(--at-font-display);
  font-size: 1rem;
  font-weight: 600;
}

.at-dashboard__cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .at-dashboard__cards { grid-template-columns: repeat(2, 1fr); }
}

.at-dashboard__mini {
  border-radius: 0.75rem;
  border: 1px solid oklch(1 0 0 / 8%);
  background: var(--at-surface-2);
  padding: 0.75rem;
}

.at-dashboard__mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.at-dashboard__mini-head .at-icon {
  color: var(--at-cyan);
}

.at-dashboard__mini-title {
  margin: 0.375rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.at-dashboard__mini-up {
  margin-left: 0.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--at-profit);
}

.at-dashboard__mini-text {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: var(--at-muted);
}

.at-dashboard__chip {
  position: absolute;
  display: none;
}

@media (min-width: 768px) {
  .at-dashboard__chip { display: block; }
}

.at-dashboard__chip-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--at-muted);
}

.at-dashboard__chip-inner strong {
  color: var(--at-fg);
  font-weight: 600;
}

.at-dashboard__chip-inner .at-icon {
  color: var(--at-cyan);
}

.at-dashboard__chip--left {
  left: -0.75rem;
  top: 33%;
  transform: rotate(-4deg);
}

.at-dashboard__chip--right {
  right: -0.75rem;
  bottom: 2.5rem;
  transform: rotate(3deg);
}

.at-dashboard__chip--right .at-icon--profit {
  color: var(--at-profit);
}

.at-form-card__consent .at-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--at-cyan);
}

/* FAQ */
.at-faq { max-width: 56rem; margin-inline: auto; }

.at-faq details {
  border-bottom: 1px solid oklch(1 0 0 / 8%);
}

.at-faq details:last-child { border-bottom: none; }

.at-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0.75rem;
  font-family: var(--at-font-display);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.at-faq summary::-webkit-details-marker { display: none; }

.at-faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--at-cyan);
  flex-shrink: 0;
}

.at-faq details[open] summary::after { content: "−"; }

.at-faq__answer {
  padding: 0 0.75rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--at-muted);
  line-height: 1.6;
}

/* CTA */
.at-cta-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  text-align: center;
}

@media (min-width: 640px) { .at-cta-card { padding: 3.5rem; } }

.at-cta-card__bg-glow,
.at-cta-card__bg-purple {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.at-cta-card__inner { position: relative; }

.at-cta-card h2 {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  font-size: clamp(1.875rem, 4vw, 3rem);
}

.at-cta-card p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: var(--at-muted);
}

.at-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Standard content pages (e.g. Om oss) */
.at-page {
  padding-top: calc(0.75rem + var(--at-header-height) + 1rem);
}

body.admin-bar .at-page {
  padding-top: calc(0.75rem + var(--at-header-height) + 1rem + var(--wp-admin--admin-bar--height, 32px));
}

.at-page-section {
  padding: 0 0 4rem;
}

@media (min-width: 640px) {
  .at-page-section {
    padding-bottom: 5rem;
  }
}

.at-page-head {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.at-page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0;
}

.at-page-content {
  max-width: 48rem;
  color: var(--at-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.at-page-content > *:first-child {
  margin-top: 0;
}

.at-page-content p {
  margin: 0 0 1.25rem;
}

.at-page-content h2,
.at-page-content h3,
.at-page-content h4 {
  color: var(--at-fg);
  margin: 2rem 0 0.75rem;
}

.at-page-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.at-page-content h3 {
  font-size: 1.25rem;
}

.at-page-content a {
  color: var(--at-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.at-page-content a:hover {
  color: var(--at-fg);
}

.at-page-content ul,
.at-page-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.at-page-content li {
  margin-bottom: 0.5rem;
}

.at-page-content img {
  border-radius: var(--at-radius-xl);
}

.at-page-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--at-cyan);
  background: oklch(1 0 0 / 3%);
  border-radius: 0 var(--at-radius) var(--at-radius) 0;
  color: var(--at-fg);
}

/* SEO section */
.at-seo-section {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--at-border);
}

.at-seo-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
}

.at-seo-content {
  position: relative;
  color: var(--at-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.at-seo-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--at-fg);
}

.at-seo-content p { margin: 0 0 1rem; }

.at-seo-content.is-collapsed {
  max-height: 12rem;
  overflow: hidden;
}

.at-seo-content.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--at-bg));
  pointer-events: none;
}

.at-seo-content.is-expanded {
  max-height: none;
}

.at-seo-content.is-expanded::after { display: none; }

.at-seo-toggle {
  margin-top: 1.5rem;
  background: none;
  border: 1px solid oklch(1 0 0 / 12%);
  color: var(--at-cyan);
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.at-seo-toggle:hover { background: oklch(1 0 0 / 5%); }

/* Footer in page content */
.at-page-footer {
  border-top: 1px solid var(--at-border);
  padding: 3rem 0;
}

.at-page-footer__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .at-page-footer__grid { grid-template-columns: 1.4fr 1fr; }
}

.at-page-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.at-page-footer p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--at-muted);
  max-width: 28rem;
}

.at-page-footer__nav-label {
  font-family: var(--at-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--at-muted);
}

.at-page-footer__links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
  font-size: 0.875rem;
}

.at-page-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--at-border);
  font-size: 0.75rem;
  color: var(--at-muted);
}

@media (min-width: 640px) {
  .at-page-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Contact Form 7 — theme styles apply to ANY CF7 form inside .at-form-card */
.at-form-card .at-cf7-wrap {
  margin-top: 1rem;
}

.at-form-card .wpcf7 {
  margin: 0;
}

.at-form-card .wpcf7-form,
.at-form-card form.at-cf7-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  border: 0;
  padding: 0;
}

@media (min-width: 480px) {
  .at-form-card .wpcf7-form,
  .at-form-card form.at-cf7-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container at-form-card (min-width: 480px) {
  .at-form-card .wpcf7-form,
  .at-form-card form.at-cf7-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.at-form-card .at-cf7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  grid-column: 1 / -1;
}

@media (min-width: 480px) {
  .at-form-card .at-cf7-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container at-form-card (min-width: 480px) {
  .at-form-card .at-cf7-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.at-form-card .wpcf7-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: contents;
}

.at-form-card .wpcf7-form .at-cf7-field,
.at-form-card .wpcf7-form p.at-cf7-field,
.at-form-card .wpcf7-form > p,
.at-form-card .wpcf7-form > div:not(.at-cf7-hidden):not(.at-cf7-submit):not(.hidden-fields-container) {
  margin: 0;
  min-width: 0;
}

/* Full-width rows */
.at-form-card .wpcf7-form > p:has(input[type="submit"]),
.at-form-card .wpcf7-form > p:has(.wpcf7-submit),
.at-form-card .wpcf7-form > p:has(textarea),
.at-form-card .wpcf7-form .at-cf7-recaptcha,
.at-form-card .wpcf7-form .wpcf7-recaptcha,
.at-form-card .wpcf7-form > p:has(.wpcf7-recaptcha),
.at-form-card .wpcf7-form .at-cf7-submit,
.at-form-card .wpcf7-form .at-cf7-hidden,
.at-form-card .wpcf7-form p.at-cf7-hidden,
.at-form-card .wpcf7-form .hidden-fields-container,
.at-form-card .wpcf7-form .wpcf7-display-none,
.at-form-card .wpcf7-form .wpcf7-honeypot,
.at-form-card .wpcf7-form .hp-field,
.at-form-card .wpcf7-form .at-cf7-grid,
.at-form-card .wpcf7-response-output {
  grid-column: 1 / -1;
}

.at-form-card .wpcf7-form .at-cf7-hidden,
.at-form-card .wpcf7-form p.at-cf7-hidden,
.at-form-card .wpcf7-form .hidden-fields-container,
.at-form-card .wpcf7-form .wpcf7-display-none,
.at-form-card .wpcf7-form .wpcf7-honeypot,
.at-form-card .wpcf7-form .hp-field,
.at-form-card .wpcf7-form p:has(input[type="hidden"]),
.at-form-card .wpcf7-form p:has([aria-hidden="true"] input) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
}

.at-form-card .wpcf7-form .at-cf7-recaptcha,
.at-form-card .wpcf7-form .wpcf7-recaptcha,
.at-form-card .wpcf7-form > p:has(.wpcf7-recaptcha) {
  margin-top: 0.5rem;
}

.at-form-card .wpcf7-form .at-cf7-submit,
.at-form-card .wpcf7-form p.at-cf7-submit,
.at-form-card .wpcf7-form > p:has(input[type="submit"]) {
  margin-top: 0.25rem;
}

.at-cf7-label,
.at-form-card .wpcf7-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-family: var(--at-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--at-muted);
}

.at-form-card .wpcf7-form label .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.375rem;
}

.at-form-card .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.at-form-card .wpcf7-form .wpcf7-form-control:not(.wpcf7-submit):not(.iti__tel-input),
.at-form-card .at-input,
.at-form-card input[type="text"],
.at-form-card input[type="email"],
.at-form-card input[type="tel"]:not(.iti__tel-input),
.at-form-card input[type="url"],
.at-form-card input[type="number"],
.at-form-card select,
.at-form-card textarea {
  width: 100% !important;
  box-sizing: border-box;
  border-radius: 0.75rem !important;
  border: 1px solid oklch(1 0 0 / 10%) !important;
  background: oklch(1 0 0 / 5%) !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.875rem !important;
  color: var(--at-fg) !important;
  outline: none;
  box-shadow: none !important;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.at-form-card .at-input::placeholder,
.at-form-card input::placeholder {
  color: oklch(0.72 0.02 255 / 60%);
}

.at-form-card .at-input:focus,
.at-form-card input:focus,
.at-form-card select:focus,
.at-form-card textarea:focus,
.at-form-card .wpcf7-form .wpcf7-form-control:focus {
  border-color: oklch(0.78 0.15 210 / 60%) !important;
  background: oklch(1 0 0 / 10%) !important;
}

.at-form-card .wpcf7-submit,
.at-form-card .at-submit,
.at-form-card .wpcf7-form input[type="submit"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.875rem 1.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--at-gradient-primary) !important;
  color: var(--at-primary-fg) !important;
  box-shadow: var(--at-shadow-glow) !important;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.at-form-card .wpcf7-submit:hover,
.at-form-card .at-submit:hover,
.at-form-card .wpcf7-form input[type="submit"]:hover {
  transform: scale(1.01);
}

.at-form-card .wpcf7-submit:disabled,
.at-form-card .at-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.at-form-card .wpcf7 form.invalid .wpcf7-response-output,
.at-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.at-form-card .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: oklch(0.68 0.22 25 / 40%);
}

.at-form-card .wpcf7 form.sent .wpcf7-response-output {
  border-color: oklch(0.78 0.18 155 / 40%);
}

.at-form-card .wpcf7-spinner {
  margin: 0.5rem auto 0;
  grid-column: 1 / -1;
}

.at-form-card .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--at-loss);
  margin-top: 0.25rem;
}

/* Hide empty CF7 status box (default CF7 CSS is disabled in this theme) */
.at-form-card .wpcf7-response-output,
.at-form-card .wpcf7-response-output.at-cf7-response {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}

.at-form-card .wpcf7 form.init .wpcf7-response-output,
.at-form-card .wpcf7 form.resetting .wpcf7-response-output {
  display: none !important;
}

.at-form-card .wpcf7 form.invalid .wpcf7-response-output,
.at-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.at-form-card .wpcf7 form.payment-required .wpcf7-response-output,
.at-form-card .wpcf7 form.sent .wpcf7-response-output,
.at-form-card .wpcf7 form.failed .wpcf7-response-output,
.at-form-card .wpcf7 form.spam .wpcf7-response-output {
  display: block !important;
  margin: 0.75rem 0 0 !important;
  padding: 0.75rem 1rem !important;
  border: 1px solid var(--at-border) !important;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  grid-column: 1 / -1;
}

.at-form-card .screen-reader-response {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.at-form-card .wpcf7-form-control-wrap:empty {
  display: none;
}

/* intl-tel-input — border on wrapper; do NOT override iti padding-left */
.at-form-card .iti {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid oklch(1 0 0 / 10%);
  background: oklch(1 0 0 / 5%);
  transition: border-color 0.15s, background 0.15s;
}

.at-form-card .iti:hover {
  border-color: oklch(1 0 0 / 16%);
}

.at-form-card .iti.iti--focused {
  border-color: oklch(0.78 0.15 210 / 60%);
  background: oklch(1 0 0 / 10%);
}

.at-form-card .iti input[type="tel"],
.at-form-card .iti input.iti__tel-input {
  width: 100% !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-right: 1rem !important;
  border-radius: 0 !important;
}

.at-form-card .iti--separate-dial-code .iti__selected-flag {
  background: transparent;
  border-right: 1px solid oklch(1 0 0 / 10%);
  border-radius: 0.75rem 0 0 0.75rem;
}

.at-form-card .iti--separate-dial-code .iti__selected-dial-code {
  font-size: 0.875rem;
  color: var(--at-fg);
  padding-right: 0.5rem;
}

.at-form-card .iti__selected-flag {
  background: transparent;
}

.at-form-card .iti__arrow {
  border-top-color: var(--at-muted);
}

.at-form-card .iti__country-list {
  z-index: 200;
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  color: var(--at-fg);
  border-radius: 0.75rem;
  box-shadow: var(--at-shadow-card);
  max-height: 14rem;
}

.at-form-card .iti__country.iti__highlight {
  background: oklch(1 0 0 / 8%);
}

.at-form-card .iti__search-input {
  border: 1px solid oklch(1 0 0 / 10%) !important;
  background: oklch(1 0 0 / 5%) !important;
  color: var(--at-fg) !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  margin: 0.5rem !important;
  width: calc(100% - 1rem) !important;
  box-sizing: border-box;
}

.at-form-card .iti__search-input:focus {
  border-color: oklch(0.78 0.15 210 / 60%) !important;
  outline: none;
}

/* Dropdown rendered on body via JS */
body > .iti--container {
  z-index: 999999;
}

body > .iti--container .iti__country-list {
  background: var(--at-surface);
  border: 1px solid var(--at-border);
  color: var(--at-fg);
  border-radius: 0.75rem;
  box-shadow: var(--at-shadow-card);
}

/* WPBakery neutralizer */
.site-main .vc_row,
.site-main .wpb_content_element {
  margin-left: 0;
  margin-right: 0;
}

.site-main .vc_row[data-vc-full-width="true"] {
  overflow: visible;
}

.site-main .wpb_text_column,
.site-main .wpb_content_element {
  background: transparent;
  box-shadow: none;
}

.site-main .vc_column_container > .vc_column-inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* Scroll margin for fixed header */
[id] { scroll-margin-top: calc(var(--at-header-height) + 1rem); }

@keyframes at-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.at-animate-fade-up { animation: at-fade-up 0.7s ease-out both; }
