@import url("tokens.css");
@import url("global.css");

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--s-4);
  top: var(--s-4);
  width: auto;
  height: auto;
  padding: var(--s-2) var(--s-3);
  background: var(--bg-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-sm);
  z-index: 999;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) 0;
  gap: var(--s-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
  border-radius: 12px;
}

.brand .logo-wordmark {
  height: 64px;
  border-radius: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-2) var(--s-3);
  font-size: 0.95rem;
  min-height: 40px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  font-size: 0.95rem;
}

.cart-link svg {
  width: 18px;
  height: 18px;
}

.nav a:not(.btn) {
  font-weight: 500;
  color: var(--text-1);
  position: relative;
}

.nav a:not(.btn).active {
  color: var(--text-0);
}

.nav a:not(.btn).active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--s-1) * -1);
  width: 100%;
  height: calc(var(--s-1) / 3);
  background: var(--el-cyan);
  opacity: 1;
  transform: scaleX(1);
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--s-1) * -1);
  width: 100%;
  height: calc(var(--s-1) / 3);
  background: var(--el-cyan);
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:not(.btn):hover {
  color: var(--text-0);
}

.nav a:not(.btn):hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  border: 1px solid var(--stroke);
  background: var(--bg-1);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  font-weight: 600;
  color: var(--text-0);
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--el-cyan);
  color: var(--text-0);
}

.btn-red {
  background: var(--el-orange);
  color: var(--bg-0);
  border: none;
}

.hero {
  padding: calc(var(--s-8) + var(--s-2)) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 60%;
  background: var(--grad-brand);
  opacity: 0.12;
  filter: blur(calc(var(--s-8) + var(--s-4)));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
}

h1, h2, h3 {
  margin: 0 0 var(--s-3);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.lead {
  color: var(--text-1);
  font-size: 1.1rem;
  max-width: 60ch;
}

.hero-cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}

.actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  align-items: center;
}

.accent-underline {
  position: relative;
  display: inline-block;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(var(--s-1) * -1);
  width: 100%;
  height: calc(var(--s-1) / 2);
  border-radius: calc(var(--r-lg) * 2);
  background: var(--grad-brand);
}

.hero-card {
  padding: var(--s-6);
}

.feature-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #141a28 0%, #0b0f1a 100%);
  border: none;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45), 0 20px 52px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.9;
}


.check-list {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-1);
}

.check-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}

.dot {
  width: var(--s-2);
  height: var(--s-2);
  margin-top: var(--s-2);
  border-radius: calc(var(--r-lg) * 2);
  background: var(--el-cyan);
  flex: 0 0 auto;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.stat {
  background: linear-gradient(180deg, #141a28 0%, #0b0f1a 100%);
  border: none;
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
}

.stat span {
  color: var(--text-2);
  font-size: 0.95rem;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.85;
}

.section-header {
  max-width: 70ch;
  margin-bottom: var(--s-6);
}

.home-section {
  padding-top: var(--s-8);
}

.home-section h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) var(--s-3);
  border-radius: calc(var(--r-lg) * 2);
  border: 1px solid var(--stroke);
  background: var(--bg-1);
  color: var(--text-1);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.sub {
  color: var(--text-1);
  margin: 0 0 var(--s-5);
  max-width: 70ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--s-8) * 3 + var(--s-6) + var(--s-4)), 1fr));
  gap: var(--s-5);
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.platform-note {
  margin-top: var(--s-4);
  font-size: 0.95rem;
  color: var(--text-1);
  max-width: 60ch;
  margin-bottom: 0;
}

.card {
  padding: var(--s-6);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s-3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  color: #fff;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.9;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover,
.feature-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.card h3 {
  margin-bottom: var(--s-2);
}

.card p {
  color: var(--text-2);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

.ascend-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  align-items: center;
}

.ascend-content {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.ascend-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
  color: var(--text-1);
  font-size: 0.95rem;
}

.ascend-benefits li {
  padding-left: var(--s-4);
  position: relative;
}

.ascend-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--el-cyan);
  transform: translateY(-50%);
}

.ascend-image {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.01);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.ascend-image img {
  display: block;
  width: 100%;
  height: auto;
}

.ascend-figure {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  justify-content: center;
}

.ascend-art-caption {
  font-size: 0.9rem;
  color: var(--text-2);
  text-align: center;
}

.list {
  margin: 0;
  padding-left: var(--s-5);
  color: var(--text-1);
}

.icon-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: var(--s-2);
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.icon-list .icon-dot {
  margin-top: 0.45em;
  flex: 0 0 auto;
}

.list li {
  margin: var(--s-2) 0;
}

.note {
  position: relative;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.note::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.9;
}

.note > * {
  position: relative;
  z-index: 1;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  padding: var(--s-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-1);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  margin-top: var(--s-6);
}

.logo-pill {
  padding: var(--s-3) var(--s-5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: calc(var(--r-lg) * 2);
  color: var(--text-1);
  background: var(--bg-1);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--s-8) * 4 + var(--s-5)), 1fr));
  gap: var(--s-5);
}

.case-card {
  padding: var(--s-5);
}

.case-tag {
  display: inline-flex;
  padding: var(--s-1) var(--s-2);
  border-radius: calc(var(--r-lg) * 2);
  border: 1px solid var(--stroke);
  color: var(--text-2);
  font-size: 0.9rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--s-8) * 3 + var(--s-5)), 1fr));
  gap: var(--s-5);
}

.process-step {
  padding: var(--s-5);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--s-5) + var(--s-3));
  height: calc(var(--s-5) + var(--s-3));
  border-radius: calc(var(--r-lg) * 2);
  border: 1px solid var(--stroke);
  color: var(--text-1);
  margin-bottom: var(--s-3);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--s-8) * 4 + var(--s-5)), 1fr));
  gap: var(--s-5);
}

.testimonial {
  padding: var(--s-5);
}

.testimonial p {
  color: var(--text-1);
}

.logo-marquee {
  margin-top: var(--s-6);
  display: flex;
  gap: var(--s-6);
  align-items: center;
  overflow: hidden;
  padding: var(--s-4) var(--s-6);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  background: var(--bg-1);
  position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 2;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-1), transparent);
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-1), transparent);
}

.logo-track {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  width: max-content;
  flex-shrink: 0;
  animation: logo-marquee 26s linear infinite;
}

.logo-chip {
  padding: var(--s-3) var(--s-5);
  border-radius: calc(var(--r-lg) * 2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  min-width: 160px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.logo-chip img {
  height: 40px;
  width: auto;
  max-width: 180px;
  filter: none;
  opacity: 0.9;
  transition: filter 160ms ease, opacity 160ms ease;
}

.logo-chip.dark {
  background: var(--bg-0);
  border-color: rgba(255, 255, 255, 0.2);
}

.logo-chip.dark img {
  opacity: 1;
}

.logo-chip:hover {
  border-color: rgba(255, 0, 170, 0.5);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.logo-chip:hover img {
  opacity: 1;
}

@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--s-6))); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .badge,
.hero h1,
.hero .lead,
.hero .hero-cta,
.hero .stats,
.hero .hero-card {
  animation: rise 700ms ease both;
}

.hero h1 { animation-delay: 90ms; }
.hero .lead { animation-delay: 160ms; }
.hero .hero-cta { animation-delay: 220ms; }
.hero .stats { animation-delay: 280ms; }
.hero .hero-card { animation-delay: 200ms; }

.faq {
  display: grid;
  gap: var(--s-3);
}

.faq details {
  background: var(--bg-1);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  padding: var(--s-4);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-0);
}

.faq p {
  margin: var(--s-3) 0 0;
  color: var(--text-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-6);
}

.form {
  display: grid;
  gap: var(--s-4);
}

.field {
  display: grid;
  gap: var(--s-2);
}

label {
  font-weight: 600;
  color: var(--text-1);
}

input, textarea, select {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: var(--bg-2);
  color: var(--text-0);
  font: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: var(--glow-cyan);
}

textarea {
  min-height: calc(var(--s-8) + var(--s-7) + var(--s-6));
  resize: vertical;
}

main {
  margin-bottom: var(--s-8);
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: var(--s-8) 0 var(--s-6) 0;
  margin-top: auto;
}

.footer .btn {
  align-self: center;
  display: inline-flex;
  align-items: center;
  transform: translateY(-1px);
}

.btn-sm {
  padding: var(--s-2) var(--s-4);
  font-size: 0.95rem;
  line-height: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  color: var(--text-2);
}

.footer a {
  color: var(--text-1);
  font-weight: 500;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .menu-btn { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(var(--s-8) + var(--s-1));
    left: 0;
    right: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--stroke);
    padding: var(--s-4);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
  }

  .nav.open { display: flex; }
}

@media (max-width: 640px) {
  .hero {
    padding: var(--s-8) 0 var(--s-6);
  }

  .hero-card {
    padding: var(--s-5);
  }
}

@media (max-width: 480px) {
  .brand .logo-wordmark {
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track,
  .hero .badge,
  .hero h1,
  .hero .lead,
  .hero .hero-cta,
  .hero .stats,
  .hero .hero-card {
    animation: none;
  }
}


/* --- Elegant card system + simple icons --- */
.cards-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.cards-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px){
  .cards-2, .cards-3{ grid-template-columns: 1fr; }
}
.card{
  background: linear-gradient(180deg, #141a28 0%, #0b0f1a 100%);
  border: none;
  border-radius: 16px;
  padding: var(--s-6);
  box-shadow: 0 20px 45px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
}
.card-link{ text-decoration:none; color: inherit; }
.card-link:hover{ border-color: rgba(255,255,255,.18); transform: translateY(-2px); transition: transform 160ms ease, border-color 160ms ease; }
.panel{
  background: linear-gradient(180deg, #141a28 0%, #0b0f1a 100%);
  border: none;
  border-radius: 18px;
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
}
.panel::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.9;
}
.list{ margin: var(--s-4) 0 0; padding-left: 1.1rem; color: var(--text-1); }
.muted{ color: var(--text-1); opacity: .9; }
.card-icon{ margin-bottom: var(--s-3); width: 42px; height: 42px; display:flex; align-items:center; justify-content:center; }
.icon-dot{
  width: 14px; height: 14px; border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 0 6px rgba(0,212,255,.08);
}
.icon-grad{
  width: 34px; height: 34px; border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(var(--bg-0), var(--bg-0)) padding-box,
    var(--grad-brand) border-box;
  border: 1px solid transparent;
}
.price{ font-size: 1.35rem; margin-top: var(--s-3); }
.featured{
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.18) 0%, rgba(20, 26, 40, 0.95) 100%);
  box-shadow: 0 22px 52px rgba(0,0,0,.6), inset 0 0 0 1px rgba(0,212,255,.18);
}

/* Comparison table (tier cards) */
.comparison-table {
  margin-top: 2.5rem;
}
.comparison-table h3,
.comparison-table .comparison-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.1;
}
.table-wrap {
  overflow-x: auto;
}
.comparison-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.75rem 0;
}
.comparison-table th,
.comparison-table td {
  padding: 0.9rem 0.85rem;
  text-align: left;
  vertical-align: top;
}
.comparison-table thead th {
  background: transparent;
  color: var(--text-0);
  font-weight: 600;
}
.comparison-table tbody th {
  color: var(--text-0);
  font-weight: 600;
}
.comparison-table thead th:nth-child(n+2),
.comparison-table tbody td:nth-child(n+2) {
  background: linear-gradient(180deg, #141a28 0%, #0b0f1a 100%);
  box-shadow: 0 18px 40px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  border-left: none;
  border-right: none;
  background-clip: padding-box;
}
.comparison-table thead th:nth-child(n+2) {
  position: relative;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}
.comparison-table thead th:nth-child(n+2)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.9;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.comparison-table tbody td:nth-child(n+2) {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.comparison-table tbody tr:last-child td:nth-child(n+2) {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: hidden;
}
.comparison-table tbody tr:hover td:nth-child(n+2) {
  background: linear-gradient(180deg, #182036 0%, #0c111c 100%);
}
.tick {
  color: #22c55e;
  font-weight: 700;
}
.cross {
  color: #ef4444;
  font-weight: 700;
}
