:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f6f8fb;
  --line: #dbe3eb;
  --panel: #ffffff;
  --sidebar: #14171c;
  --sidebar-2: #1b2638;
  --blue: #1f6feb;
  --blue-dark: #1659c7;
  --navy: #07111f;
  --sky: #0891b2;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --purple: #7c3aed;
  --slate: #475569;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
  color: var(--ink);
  min-width: 170px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a,
.button,
.copy-button,
.menu-toggle {
  border-radius: 8px;
}

.site-nav a {
  padding: 9px 12px;
  color: #334155;
  text-decoration: none;
  font-size: .93rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--blue);
  background: #eef5ff;
}

.site-nav .nav-cta {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(31, 111, 235, .18);
}

.site-nav .nav-cta:hover {
  color: #fff;
  background: var(--blue-dark);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.language-switcher button {
  min-width: 34px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  color: #fff;
  background: var(--blue);
}

.language-switcher.header-language-switcher {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.menu-icon {
  display: grid;
  gap: 4px;
  width: 20px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/akkurtcast-hero.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(.96) contrast(.98);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .98) 0%, rgba(7, 17, 31, .92) 36%, rgba(7, 17, 31, .58) 68%, rgba(7, 17, 31, .20) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, .84), rgba(7, 17, 31, .04) 64%);
}

.hero-content {
  position: relative;
  width: min(780px, 100%);
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: #38bdf8;
  font-weight: 850;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  letter-spacing: .04em;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 5.2vw, 4.7rem);
  line-height: 1.02;
  font-weight: 900;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d7e2ef;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
}

.hero-actions,
.quick-stats,
.section,
.requirements-grid,
.module-grid,
.audience-grid,
.license-section,
.form-row,
.radio-panel-layout {
  width: min(1180px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 30px rgba(31, 111, 235, .25);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .32);
  color: #fff;
}

.button.secondary:hover {
  background: rgba(255, 255, 255, .18);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .38);
  color: #dbeafe;
  font-size: .9rem;
  font-weight: 800;
}

.hero-command,
.code-block {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  background: rgba(15, 23, 42, .88);
  color: #e2e8f0;
}

code {
  overflow-wrap: anywhere;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: .92em;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.quick-stats {
  transform: translateY(-42px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-stats div,
.feature-list article,
.audience-grid article,
.module-card,
.requirement-card,
.license-form,
.radio-module-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.quick-stats div {
  padding: 20px;
  border-color: rgba(203, 213, 225, .86);
}

.quick-stats strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
}

.quick-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  font-weight: 900;
}

.section h3,
.section h4 {
  line-height: 1.2;
}

.section-heading p:not(.eyebrow),
.section-copy p,
.license-copy p {
  color: var(--muted);
  font-size: 1.03rem;
}

.intro-section,
.install-section,
.demo-section,
.license-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 28px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  padding: 18px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--blue);
  font-weight: 900;
}

.feature-list h3,
.audience-grid h3,
.module-card h4,
.requirement-card h3,
.radio-module-list h3 {
  margin: 0 0 8px;
}

.feature-list p,
.audience-grid p,
.module-card p,
.radio-module-list p {
  margin: 0;
  color: var(--muted);
}

.audience-grid,
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.audience-grid article {
  padding: 20px;
}

.radio-panel-section {
  width: 100%;
  background: #e9edf2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.radio-panel-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel-rail {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px 0;
  background: var(--sidebar);
  border-radius: 8px;
  color: #b6c0ce;
}

.rail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 14px;
  border-bottom: 1px solid #2a2e35;
  color: #fff;
  font-weight: 900;
}

.rail-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.panel-rail span {
  display: block;
  padding: 14px 18px 4px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.panel-rail strong {
  display: block;
  margin: 2px 0;
  padding: 8px 18px;
  border-left: 3px solid transparent;
  font-size: .92rem;
}

.panel-rail strong:nth-of-type(1) {
  background: var(--sidebar-2);
  border-left-color: var(--blue);
  color: #4d9fff;
}

.radio-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.radio-module-list article {
  padding: 18px;
}

.module-group + .module-group {
  margin-top: 28px;
}

.module-group h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.module-card {
  padding: 18px;
}

.install-section {
  align-items: center;
}

.code-block {
  background: #111827;
}

.install-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: steps;
}

.install-steps li {
  list-style: none;
  counter-increment: steps;
  position: relative;
  padding: 16px 16px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.install-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.install-steps span {
  display: block;
  color: var(--muted);
}

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

.requirement-card {
  padding: 22px;
}

.requirement-card.recommended {
  border-color: #93c5fd;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .12);
}

.requirement-card ul {
  margin: 0;
  padding-left: 20px;
  color: #334155;
}

.demo-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.demo-login {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.demo-login span {
  color: var(--muted);
  font-weight: 800;
}

.demo-login strong {
  overflow-wrap: anywhere;
}

.demo-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.demo-card h3 {
  margin: 0 0 12px;
}

.demo-card ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: #334155;
}

.demo-credentials {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.demo-credentials p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.demo-credentials strong {
  color: var(--ink);
}

.demo-domain-note {
  margin: 0 0 16px;
  color: var(--muted);
}

.license-section {
  margin-bottom: 36px;
  padding: 42px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}

.license-copy p {
  color: #cbd5e1;
}

.license-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 20px;
  background: #fff;
  color: var(--ink);
}

.form-row {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 6px;
}

.form-row.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

.form-submit {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-footer span {
  color: var(--muted);
}

.site-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.site-chat-toggle {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #1769f5;
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(23, 105, 245, .3);
  cursor: pointer;
}

.site-chat-panel {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .22);
}

.site-chat-panel header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #111827;
  color: #fff;
}

.site-chat-panel header div {
  display: grid;
  gap: 3px;
}

.site-chat-panel header span {
  color: #cbd5e1;
  font-size: .82rem;
}

.site-chat-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.site-chat-messages {
  display: grid;
  gap: 8px;
  max-height: 300px;
  min-height: 170px;
  overflow-y: auto;
  padding: 14px;
  background: #f8fafc;
}

.site-chat-empty {
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-weight: 700;
}

.site-chat-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.site-chat-bubble.admin {
  justify-self: start;
  background: #eaf2ff;
  border-color: #bfdbfe;
}

.site-chat-bubble.visitor {
  justify-self: end;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.site-chat-bubble span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.site-chat-form {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.site-chat-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-chat-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

@media (max-width: 1020px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand languages menu";
    align-items: center;
  }

  .brand {
    grid-area: brand;
  }

  .menu-toggle {
    grid-area: menu;
    display: inline-flex;
  }

  .language-switcher.header-language-switcher {
    grid-area: languages;
    justify-self: end;
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% - 1px);
    display: none;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav .language-switcher {
    display: none;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .quick-stats,
  .audience-grid,
  .requirements-grid,
  .module-grid,
  .radio-module-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section,
  .install-section,
  .demo-section,
  .license-section,
  .radio-panel-layout {
    grid-template-columns: 1fr;
  }

  .panel-rail {
    position: relative;
    top: auto;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 14px;
  }

  .rail-brand,
  .panel-rail span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand menu"
      "languages languages";
    min-height: 64px;
    gap: 10px 12px;
    padding: 10px 14px 12px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
    font-size: 1.12rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-self: end;
    display: inline-flex !important;
  }

  .menu-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .language-switcher.header-language-switcher {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
  }

  .language-switcher button {
    min-width: 0;
    min-height: 31px;
    padding: 0 4px;
  }

  .site-nav {
    left: 14px;
    right: 14px;
    top: calc(100% - 1px);
    grid-template-columns: 1fr;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-content {
    padding: 54px 18px 72px;
  }

  .eyebrow {
    font-size: .9rem;
    line-height: 1.35;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.6vw, 2.05rem);
    line-height: 1.05;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 1.03rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    min-height: 32px;
    padding: 6px 10px;
    font-size: .82rem;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 17, 31, .97) 0%, rgba(8, 17, 31, .84) 60%, rgba(8, 17, 31, .35) 100%);
  }

  .hero-command,
  .code-block {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .quick-stats,
  .audience-grid,
  .requirements-grid,
  .module-grid,
  .radio-module-list,
  .license-form {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    transform: none;
    margin-top: 18px;
  }

  .section {
    padding: 42px 0;
  }

  .license-section {
    width: min(100% - 24px, 1180px);
    padding: 22px;
  }

  .demo-login {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-chat {
    right: 12px;
    bottom: 12px;
  }

  .site-chat-fields {
    grid-template-columns: 1fr;
  }
}
