:root {
  --primary: #0078d4;
  --primary-hover: #106ebe;
  --primary-pressed: #005a9e;
  --bg: #faf9f8;
  --surface: #ffffff;
  --border: #edebe9;
  --text: #323130;
  --muted: #605e5c;
  --success: #107c10;
  --success-bg: #dff6dd;
  --dark: #201f1e;
  --dark-surface: #292827;
  --shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.13), 0 0.3px 0.9px rgba(0, 0, 0, 0.11);
  --shadow-lg: 0 6.4px 14.4px rgba(0, 0, 0, 0.13), 0 1.2px 3.6px rgba(0, 0, 0, 0.11);
  --radius: 8px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
}

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

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

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 36px;
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--surface);
  color: var(--muted);
  padding: 0 10px;
  height: 32px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.lang-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 16px;
  height: 32px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.btn-primary:active {
  background: var(--primary-pressed);
  border-color: var(--primary-pressed);
}

.btn-default {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-default:hover {
  background: var(--bg);
}

.btn-default:active {
  background: #f3f2f1;
}

.btn-lg {
  height: 40px;
  padding: 0 24px;
  font-size: 15px;
  line-height: 1;
}

.hero {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f3f9fd 0%, var(--surface) 100%);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success-bg);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.lead {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.hero-badges span::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-card {
  position: absolute;
  right: -12px;
  bottom: -16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  max-width: 240px;
}

.hero-card strong {
  display: block;
  font-size: 14px;
}

.hero-card span {
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 56px 0;
}

.section-muted {
  background: var(--bg);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 32px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-foot {
  margin-top: 32px;
}

.section-foot.center {
  text-align: center;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.section-dark .section-desc {
  color: #c8c6c4;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-2.align-center {
  align-items: center;
}

.section-header.flush {
  margin-bottom: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h3,
.card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.icon-blue { background: #deecf9; color: var(--primary); }
.icon-green { background: var(--success-bg); color: var(--success); }
.icon-amber { background: #fff4ce; color: #8a6914; }
.icon-rose { background: #fde7e9; color: #a4262c; }

.step-card {
  background: var(--dark-surface);
  border: 1px solid #3b3a39;
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  color: #3aa0ef;
  font-family: Consolas, monospace;
  font-size: 13px;
  margin-bottom: 8px;
}

.model-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.model-row:last-child {
  border-bottom: 0;
}

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-bg);
  padding: 2px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.cta {
  text-align: center;
  padding: 64px 0;
}

.cta p {
  color: var(--muted);
  font-size: 17px;
  max-width: 28rem;
  margin: 0 auto 24px;
}

.cta-note,
.models-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.models-note {
  margin-top: 12px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--primary);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}

.modal-panel h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.modal-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

.field span {
  font-weight: 600;
}

.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

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

.lang-banner {
  padding: 28px 0;
  background: linear-gradient(90deg, #f3f9fd 0%, #e8f4fc 100%);
  border-bottom: 1px solid var(--border);
}

.lang-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.lang-banner-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
  padding-top: 4px;
}

.lang-banner-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.lang-banner-desc {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 42rem;
}

.lang-banner.lang-banner-sv {
  background: linear-gradient(90deg, #005a9e 0%, #0078d4 55%, #106ebe 100%);
  border-bottom: 0;
  color: #fff;
}

.lang-banner.lang-banner-sv .lang-banner-title {
  color: #fff;
}

.lang-banner.lang-banner-sv .lang-banner-desc {
  color: #deecf9;
}

.card-highlight {
  border-color: #b3d6f2;
  background: linear-gradient(180deg, #f3f9fd 0%, var(--surface) 100%);
}

.demo-showcase {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 56px;
}

.demo-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.demo-caption h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo-caption p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 34rem;
}

.media-frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg);
}

.media-frame img {
  display: block;
  width: 100%;
}

.media-frame-video {
  aspect-ratio: 16 / 9;
  line-height: 0;
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--dark);
}

.demo-video-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.demo-video-copy h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
}

.demo-video-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
  max-width: 28rem;
}

.modal-panel-wide {
  width: min(720px, 100%);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.contact-email-block {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}

.contact-email-link {
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-email-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.contact-email-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.modal-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
}

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

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

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

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-inner {
    flex-direction: row;
  }

  .demo-item,
  .demo-item-reverse {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .demo-item-reverse .media-frame {
    order: 2;
  }

  .demo-item-reverse .demo-caption {
    order: 1;
  }

  .demo-video-block {
    grid-template-columns: 0.9fr 1.1fr;
  }
}