:root {
  --bg: #10243e;
  --surface: #16314f;
  --surface-2: #1b3a5b;
  --text: #f7fbff;
  --muted: #b8c9d7;
  --line: rgba(221, 247, 245, 0.2);
  --cyan: #26c6c5;
  --green: #26c6c5;
  --lime: #26c6c5;
  --violet: #26c6c5;
  --danger: #ffb4a8;
  --max: 1180px;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(38, 198, 197, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(221, 247, 245, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #09101b;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 36, 62, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 160px;
  height: 50px;
  background: url("/assets/tenson-ai-logo-inverse.svg") center / contain no-repeat;
  text-decoration: none;
}

.brand > span {
  visibility: hidden;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.site-nav a {
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-cta {
  margin-left: 6px;
  border: 1px solid rgba(206, 244, 84, 0.5);
  color: var(--lime) !important;
}

.site-nav .nav-app-login {
  margin-left: 6px;
  border-left: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
}

.site-nav .nav-app-start {
  color: #10243e;
  background: #26c6c5;
}

.site-nav .nav-app-start:hover {
  color: #10243e;
  background: #5bd5d4;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

main {
  overflow: hidden;
}

.hero,
.page-hero {
  padding: 104px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 6vw, 5.4rem);
  letter-spacing: -0.055em;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.gradient-text {
  background: linear-gradient(100deg, var(--cyan), var(--green) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--lime);
  color: #08101b;
  box-shadow: 0 12px 34px rgba(206, 244, 84, 0.16);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-link {
  padding-inline: 0;
  color: var(--cyan);
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-live {
  border-color: rgba(110, 231, 168, 0.42);
  color: var(--green);
}

.badge-pilot {
  border-color: rgba(36, 215, 243, 0.4);
  color: var(--cyan);
}

.badge-roadmap {
  border-color: rgba(159, 140, 255, 0.4);
  color: #c7bdff;
}

.hero-panel,
.card,
.price-card,
.callout,
.demo-frame,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 33, 57, 0.94), rgba(8, 20, 36, 0.94));
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 18px;
  transform: rotate(1.2deg);
}

.chat-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f5f8f7;
  color: #14231f;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe6e1;
  font-size: 0.88rem;
  font-weight: 850;
}

.chat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34c77a;
  box-shadow: 0 0 0 4px rgba(52, 199, 122, 0.14);
}

.chat-body {
  display: grid;
  gap: 12px;
  padding: 20px 16px 22px;
}

.bubble {
  max-width: 85%;
  padding: 11px 13px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(12, 33, 25, 0.08);
  font-size: 0.9rem;
}

.bubble-user {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: #174e3a;
  color: #fff;
}

.bubble-ai {
  border-bottom-left-radius: 5px;
}

.panel-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: 86px 0;
}

.section-compact {
  padding: 58px 0;
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading > :last-child {
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 26px;
  box-shadow: none;
}

.card p,
.card li,
.price-card p,
.price-card li,
.muted {
  color: var(--muted);
}

.card-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(36, 215, 243, 0.35);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-list,
.plain-list,
.check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  padding: 9px 0 9px 27px;
  border-bottom: 1px solid rgba(168, 184, 204, 0.12);
}

.feature-list li:last-child,
.check-list li:last-child {
  border-bottom: 0;
}

.feature-list li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.plain-list li {
  margin: 8px 0;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.flow-step {
  min-height: 190px;
  padding: 25px;
  background: var(--surface);
}

.flow-step strong {
  display: block;
  margin-bottom: 13px;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 54px);
  border-color: rgba(36, 215, 243, 0.3);
}

.callout h2 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.4vw, 3.05rem);
}

.callout p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 20px;
}

.price-card {
  padding: clamp(26px, 5vw, 48px);
}

.price-card-featured {
  border-color: rgba(206, 244, 84, 0.48);
}

.price-label {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin: 18px 0 4px;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 0.32em;
  letter-spacing: 0;
}

.price-separator {
  margin: 26px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.notice {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgba(159, 140, 255, 0.35);
  border-radius: 14px;
  background: rgba(159, 140, 255, 0.08);
  color: #ddd7ff;
  font-size: 0.9rem;
}

.demo-frame {
  display: grid;
  min-height: 390px;
  place-items: center;
  padding: 34px;
  text-align: center;
}

.demo-frame-inner {
  max-width: 620px;
}

.prompt-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.prompt {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #081426;
  color: var(--text);
  padding: 12px 13px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note,
.form-status {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-status {
  min-height: 1.5em;
  margin-top: 12px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.legal-nav a {
  display: block;
  padding: 7px 5px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-card {
  padding: clamp(25px, 5vw, 52px);
  box-shadow: none;
}

.legal-card section + section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.legal-card h2 {
  font-size: 1.7rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: rgba(3, 10, 20, 0.58);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 34px;
  padding: 54px 0 36px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  font-size: 1.15rem;
}

.footer-grid p {
  max-width: 380px;
  color: var(--muted);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links strong {
  margin-bottom: 5px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    max-height: calc(100vh - 96px);
    overflow: auto;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #081426;
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin: 4px 0 0;
  }

  .site-nav .nav-app-login {
    margin: 4px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 10px;
  }

  .hero-grid,
  .section-heading,
  .contact-grid,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero,
  .page-hero {
    padding: 74px 0 58px;
  }

  .section {
    padding: 64px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .flow,
  .price-grid,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    transform: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
