/*
  TunnelGo website
  restrained, product-first presentation
*/

:root {
  --bg: #0d131a;
  --bg-panel: #121a22;
  --bg-panel-strong: #18222c;
  --border: #24303b;
  --border-strong: #31404d;
  --text-main: #eef3f8;
  --text-muted: #9ba8b4;
  --text-soft: #7d8a95;
  --brand: #5b8def;
  --brand-hover: #4a7bd9;
  --brand-bright: #7aa3ff;
  --brand-soft: rgba(91, 141, 239, 0.12);
  --success-soft: rgba(74, 222, 128, 0.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1160px;
  --footer-height-desktop: 50px;
  --footer-height-mobile: 50px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background: #0d131a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

ul {
  list-style: none;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(91, 141, 239, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(89, 190, 164, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.03), transparent 26%),
    linear-gradient(180deg, #111923 0%, #0d131a 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -80px;
  left: -60px;
  background: #5b8def;
}

.orb-2 {
  width: 280px;
  height: 280px;
  right: 6%;
  top: 10%;
  background: #5db1aa;
}

.orb-3 {
  width: 300px;
  height: 300px;
  left: 40%;
  bottom: -120px;
  background: #f3f6fa;
  opacity: 0.06;
}

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

.section {
  padding: 56px 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(26px, 3vw, 28px);
  line-height: 1.35;
}

h2 {
  font-size: 22px;
  line-height: 1.45;
}

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

p {
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #6f97f4 0%, #4f7ee3 100%);
  border-color: rgba(122, 163, 255, 0.34);
  color: #fff;
  box-shadow: 0 12px 28px rgba(78, 126, 227, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #82a8ff 0%, #5a88eb 100%);
  border-color: rgba(122, 163, 255, 0.46);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 19, 26, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid rgba(91, 141, 239, 0.2);
  color: #cfe0ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.nav-links a {
  font-size: 14px;
  color: var(--text-soft);
}

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

.hero {
  padding: 68px 0 32px;
}

.hero-home {
  padding-top: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(122, 163, 255, 0.22);
  background: rgba(91, 141, 239, 0.08);
  font-size: 12px;
  color: #cbdcff;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 1.45;
}

.hero p {
  max-width: 640px;
  font-size: 17px;
}

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

.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-proof-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(122, 163, 255, 0.16);
  background: linear-gradient(180deg, rgba(24, 34, 44, 0.94), rgba(18, 26, 34, 0.86));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.hero-proof-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(122, 163, 255, 0.18);
  background: rgba(91, 141, 239, 0.08);
  color: #bfd1f6;
  font-size: 12px;
}

.hero-proof-card strong,
.status-item strong {
  display: block;
  margin-top: 12px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.45;
}

.hero-proof-card p {
  margin-top: 8px;
  font-size: 14px;
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-summary li {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: #afbcc8;
}

.terminal-preview {
  height: 100%;
  background: linear-gradient(180deg, rgba(18, 26, 34, 0.98), rgba(12, 18, 24, 0.96));
  border: 1px solid rgba(122, 163, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.26);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-body {
  padding: 20px 22px 22px;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-muted);
}

.terminal-body p + p {
  margin-top: 4px;
}

.terminal-body span {
  color: #8eb4ff;
}

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

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

.section-header h2 {
  margin-bottom: 8px;
}

.section-header p {
  max-width: 720px;
}

.section-header.center p {
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(49, 64, 77, 0.9);
  background: linear-gradient(180deg, rgba(21, 30, 39, 0.96), rgba(16, 24, 31, 0.96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
}

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

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

.info-card .tag,
.download-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
}

.info-card .tag {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.vertical-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.vertical-list .card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.vertical-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid rgba(91, 141, 239, 0.16);
  color: #cfe0ff;
  font-size: 13px;
  font-weight: 600;
}

.vertical-list-content h3 {
  margin-bottom: 6px;
}

.feature-grid .info-card,
.scenario-grid .info-card,
.workflow-grid .info-card {
  min-height: 100%;
}

.hero-stack {
  display: grid;
  gap: 16px;
}

.hero-status-card {
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(122, 163, 255, 0.14);
  background: linear-gradient(180deg, rgba(18, 26, 34, 0.94), rgba(14, 20, 27, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.hero-status-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-status-head h3 {
  margin-top: 12px;
  font-size: 22px;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(122, 163, 255, 0.16);
  background: rgba(91, 141, 239, 0.08);
  color: #bfd1f6;
  font-size: 12px;
}

.signal-badge-live {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.1);
  color: #b5f4cb;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(49, 64, 77, 0.92);
  background: rgba(255, 255, 255, 0.022);
}

.status-key {
  color: var(--text-soft);
  font-size: 12px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.signal-card {
  min-height: 100%;
}

.signal-card h3 {
  margin-top: 14px;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.spotlight-card-primary {
  padding: 28px;
  border-color: rgba(122, 163, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(91, 141, 239, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(21, 30, 39, 0.98), rgba(16, 24, 31, 0.96));
}

.spotlight-card-primary h3 {
  margin-top: 14px;
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.28;
}

.spotlight-points {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.spotlight-points li {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(49, 64, 77, 0.9);
  background: rgba(255, 255, 255, 0.022);
  color: #c7d2db;
  font-size: 15px;
}

.spotlight-stack {
  display: grid;
  gap: 18px;
}

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

.journey-card {
  min-height: 100%;
}

.journey-card h3 {
  margin-bottom: 10px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 36px;
  border-radius: 24px;
  border: 1px solid rgba(122, 163, 255, 0.2);
  background:
    radial-gradient(circle at top right, rgba(122, 163, 255, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(91, 141, 239, 0.1), rgba(18, 26, 34, 0.98));
}

.cta-panel p {
  max-width: 680px;
}

.download-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.legal-download-card {
  margin-bottom: 20px;
  border-color: rgba(91, 141, 239, 0.28);
  background: linear-gradient(180deg, rgba(20, 29, 38, 0.98), rgba(15, 22, 29, 0.94));
}

.legal-download-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-download-text {
  margin-bottom: 14px;
}

.legal-download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 14px;
}

.legal-download-links a {
  font-size: 13px;
  color: #cfe0ff;
  padding: 5px 10px;
  border: 1px solid rgba(122, 163, 255, 0.28);
  border-radius: 999px;
  background: rgba(91, 141, 239, 0.1);
}

.legal-download-links a:hover {
  border-color: rgba(122, 163, 255, 0.42);
  color: #e4ecff;
}

.legal-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 14px;
}

.legal-consent-row input {
  margin-top: 2px;
}

.download-consent-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.download-consent-status.success {
  color: #9ae6b0;
}

.download-consent-status.error {
  color: #fca5a5;
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}

.is-disabled-link {
  pointer-events: none;
  opacity: 0.5;
}

.download-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.download-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.download-summary {
  min-height: 80px;
}

.download-status {
  background: var(--success-soft);
  border: 1px solid rgba(74, 222, 128, 0.18);
  color: #9ae6b0;
}

.download-status.planned {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-soft);
}

.download-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 20px 0 24px;
}

.download-facts dt {
  margin-bottom: 4px;
  color: var(--text-soft);
  font-size: 13px;
}

.download-facts dd {
  color: var(--text-main);
  font-size: 15px;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.download-note {
  margin-top: 16px;
  min-height: 25px;
  font-size: 14px;
  color: var(--text-soft);
}

.download-note a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.release-note {
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  min-height: 128px;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.feedback-card-primary {
  border-color: rgba(91, 141, 239, 0.28);
}

.feedback-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.feedback-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(91, 141, 239, 0.24);
  background: rgba(91, 141, 239, 0.12);
  color: #cfe0ff;
  font-size: 12px;
}

.feedback-aside {
  display: grid;
  gap: 18px;
}

.feedback-copy p + p {
  margin-top: 12px;
}

.feedback-points {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feedback-points li {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 14px;
}

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

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

.site-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-form-field label {
  color: var(--text-main);
  font-size: 14px;
}

.site-form-field input,
.site-form-field select,
.site-form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.site-form-field select option {
  color: #111827;
  background: #ffffff;
}

.site-form-field input:focus,
.site-form-field select:focus,
.site-form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.12);
}

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

.feedback-card-primary .site-form-field textarea {
  min-height: 180px;
}

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

.feedback-status {
  min-height: 22px;
  font-size: 14px;
  color: var(--text-soft);
}

.feedback-status.success {
  color: #9ae6b0;
}

.feedback-status.error {
  color: #fca5a5;
}

.faq-shell {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  padding-bottom: 22px;
  font-size: 15px;
  color: var(--text-muted);
}

.legal-index {
  border-color: rgba(91, 141, 239, 0.24);
}

.legal-index h3 {
  margin-bottom: 12px;
}

.legal-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.legal-index-links a {
  font-size: 13px;
  color: #cfe0ff;
  border: 1px solid rgba(122, 163, 255, 0.24);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(91, 141, 239, 0.08);
}

.legal-section {
  padding-top: 16px;
  padding-bottom: 16px;
}

.legal-list {
  margin-top: 12px;
  margin-left: 18px;
  display: grid;
  gap: 10px;
}

.legal-list li {
  color: var(--text-muted);
}

.legal-bullets {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.legal-bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
}

.legal-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(122, 163, 255, 0.7);
}

.legal-meta {
  margin-top: 12px;
  font-size: 13px;
}

.footer {
  margin-top: 0;
  height: var(--footer-height-desktop);
  padding: 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}

.footer p,
.footer-links a {
  color: var(--text-soft);
  font-size: 13px;
}

.footer-links {
  display: none;
}

.footer p {
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

@media (max-width: 920px) {
  .hero-grid,
  .signal-grid,
  .spotlight-layout,
  .journey-grid,
  .download-layout,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 44px 0;
  }

  .grid-2,
  .grid-3,
  .download-facts,
  .site-form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 44px 0 18px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .download-actions {
    grid-template-columns: 1fr;
  }

  .release-note {
    min-height: 0;
  }

  .legal-download-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .topbar-inner {
    gap: 14px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .footer {
    height: var(--footer-height-mobile);
  }

  .hero-status-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-panel {
    padding: 26px 22px;
  }
}
