:root {
  --background: #080b10;
  --background-soft: #0f141c;
  --panel: #131923;
  --panel-light: #18212d;
  --border: #273241;
  --text: #f5f7fa;
  --muted: #9da9b7;
  --accent: #65d6b4;
  --accent-bright: #8ee8cc;
  --accent-dark: #153c35;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 850px;
}

.centered {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 11, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.brand-name {
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  padding: 120px 0 130px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 80% 30%,
      rgba(101, 214, 180, 0.12),
      transparent 35%
    );
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 24px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.eyebrow,
.card-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.hero-lead,
.large-copy {
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-lead {
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #07100d;
}

.button-primary:hover {
  background: var(--accent-bright);
}

.button-secondary {
  border: 1px solid var(--border);
  background: var(--panel);
}

.terminal-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #050709;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 15px 18px;
  background: #10151c;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #536070;
}

.terminal-content {
  padding: 30px;
  min-height: 310px;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.9rem;
  line-height: 1.9;
}

.terminal-prompt,
.terminal-success,
.terminal-url {
  color: var(--accent);
}

.terminal-muted {
  color: #687483;
}

.section {
  padding: 110px 0;
}

.section-dark {
  background: var(--background-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}

.section h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card,
.feature,
.contact-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.product-card {
  padding: 34px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.product-card h3,
.feature h3 {
  margin: 17px 0 10px;
  font-size: 1.55rem;
}

.product-card p,
.feature p,
.contact-card p {
  color: var(--muted);
}

.product-card .text-link {
  margin-top: auto;
}

.featured-card {
  background:
    linear-gradient(
      145deg,
      var(--panel-light),
      var(--panel)
    );
  border-color: #365347;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-hero {
  padding: 120px 0 90px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(101, 214, 180, 0.09),
      transparent 40%
    );
}

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

.feature {
  padding: 36px;
}

.feature-number {
  color: var(--accent);
  font-family: monospace;
  font-size: 0.8rem;
}

.command-box {
  display: grid;
  gap: 10px;
  margin-top: 42px;
  padding: 26px;
  background: #050709;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.command-box code {
  color: var(--accent);
  font-size: 0.95rem;
}

.contact-card {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.site-footer {
  padding: 55px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner p {
  margin: 8px 0 0;
}

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

@media (max-width: 850px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0;
  }

  .main-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 80px 0;
  }

  .hero-inner,
  .split-section {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .callout,
  .contact-card,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .main-nav {
    font-size: 0.85rem;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 75px 0;
  }

  .product-card,
  .feature,
  .contact-card {
    padding: 26px;
  }
}

/* Navigation dropdowns */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dropdown-trigger::after {
  content: "▾";
  color: var(--accent);
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  color: var(--text);
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  z-index: 50;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);

  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .nav-dropdown-menu a {
  display: block;
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav .nav-dropdown-menu a:hover,
.main-nav .nav-dropdown-menu a:focus {
  background: var(--panel-light);
  color: var(--text);
}

@media (max-width: 850px) {
  .nav-dropdown-menu {
    left: 0;
  }
}

/* Forum authentication */

.forum-auth {
  min-height: calc(100vh - 190px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(101, 214, 180, 0.08),
      transparent 38%
    );
}

.auth-card {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.auth-heading {
  margin-bottom: 32px;
}

.auth-heading h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-heading p {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 22px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  background: var(--background-soft);
  color: var(--text);
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(101, 214, 180, 0.1);
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.auth-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.form-errors {
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid #75434a;
  border-radius: 8px;
  background: rgba(117, 67, 74, 0.18);
}

.form-errors strong {
  color: var(--text);
}

.form-errors ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .forum-auth {
    padding: 45px 0;
  }

  .auth-card {
    padding: 28px 22px;
  }
}

/* Signed-in navigation */

.nav-username {
  color: var(--accent);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-logout-form {
  margin: 0;
}

.nav-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.94rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link-button:hover {
  color: var(--text);
}

/* Flash messages */

.flash-message {
  margin-top: 24px;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 0.94rem;
}

.flash-notice {
  border: 1px solid #365347;
  background: rgba(101, 214, 180, 0.08);
  color: var(--accent-bright);
}

.flash-alert {
  border: 1px solid #75434a;
  background: rgba(117, 67, 74, 0.18);
  color: var(--text);
}

/* Support product dashboard */

.support-product + .support-product {
  margin-top: 90px;
}

.support-product-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.support-product-heading h2 {
  margin: 7px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.support-product-heading p {
  margin: 0;
  color: var(--muted);
}

.announcement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 22px;
  padding: 30px 34px;
  border: 1px solid #365347;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(101, 214, 180, 0.09),
      var(--panel)
    );
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.announcement-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background:
    linear-gradient(
      135deg,
      rgba(101, 214, 180, 0.13),
      var(--panel-light)
    );
}

.announcement-label,
.support-category-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.announcement-card h3 {
  margin: 8px 0 6px;
  font-size: 1.35rem;
}

.announcement-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.support-card-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.8rem;
}

.support-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.support-category-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.support-category-card:hover {
  transform: translateY(-3px);
  border-color: #365347;
  background: var(--panel-light);
}

.support-category-card h3 {
  margin: 13px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.support-category-card p {
  margin: 0;
  color: var(--muted);
}

.support-card-link {
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 700px) {
  .support-category-grid {
    grid-template-columns: 1fr;
  }

  .announcement-card {
    align-items: flex-start;
    padding: 26px;
  }

  .support-category-card {
    min-height: 210px;
  }
}

/* Forum topics and posts */

.forum-page {
  min-height: calc(100vh - 190px);
  padding: 65px 0 100px;
}

.forum-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.forum-breadcrumbs a {
  color: var(--accent);
}

.forum-breadcrumbs a:hover {
  color: var(--accent-bright);
}

.forum-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.forum-page-header h1,
.topic-header h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.forum-page-header p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.topic-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 23px 26px;
  transition: background 0.2s ease;
}

.topic-row + .topic-row {
  border-top: 1px solid var(--border);
}

.topic-row:hover {
  background: var(--panel-light);
}

.topic-row-main {
  min-width: 0;
}

.topic-row h2 {
  margin: 5px 0;
  font-size: 1.12rem;
}

.topic-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.topic-row p strong {
  color: var(--text);
}

.topic-row-meta {
  flex: 0 0 auto;
  min-width: 130px;
  text-align: right;
}

.topic-row-meta strong,
.topic-row-meta span,
.topic-row-meta small {
  display: block;
}

.topic-row-meta strong {
  font-size: 1rem;
}

.topic-row-meta span,
.topic-row-meta small {
  color: var(--muted);
  font-size: 0.75rem;
}

.topic-row-meta small {
  margin-top: 4px;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-badge {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.topic-badge-pinned {
  border-color: #365347;
  color: var(--accent);
}

.forum-form-container {
  max-width: 900px;
}

.forum-form-card,
.reply-card {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.forum-form-heading {
  margin-bottom: 30px;
}

.forum-form-heading h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

.forum-form-heading p {
  margin: 0;
  color: var(--muted);
}

.forum-form {
  display: grid;
  gap: 24px;
}

.forum-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.forum-submit {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.topic-header {
  margin-bottom: 30px;
}

.forum-posts {
  display: grid;
  gap: 18px;
}

.forum-post {
  display: grid;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.forum-post-author {
  padding: 25px;
  border-right: 1px solid var(--border);
  background: var(--background-soft);
}

.forum-post-author strong,
.forum-post-author small {
  display: block;
}

.forum-post-author strong {
  overflow-wrap: anywhere;
}

.forum-post-author small {
  margin-top: 8px;
  color: var(--muted);
}

.admin-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 7px;
  border: 1px solid #365347;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.forum-post-content {
  min-width: 0;
}

.forum-post-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
}

.forum-post-body {
  padding: 24px;
  overflow-wrap: anywhere;
}

.forum-post-body p:first-child {
  margin-top: 0;
}

.forum-post-body p:last-child {
  margin-bottom: 0;
}

.reply-card {
  margin-top: 30px;
}

.reply-card h2 {
  margin-top: 0;
}

.topic-locked-message {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
}

@media (max-width: 700px) {
  .forum-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-row-meta {
    min-width: 0;
    text-align: left;
  }

  .forum-post {
    grid-template-columns: 1fr;
  }

  .forum-post-author {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .forum-form-card,
  .reply-card {
    padding: 26px;
  }
}
