/* ===========================
   Root Variables
=========================== */
:root {
  --background: #0b0b0c;
  --foreground: #e7e7ea;
  --muted: #1a1a1e;
  --border: rgba(255, 255, 255, 0.08);
  --ring: #7c7cf1;
  --primary: #8b8bff;
  --accent: #2bc8b7;
}

/* ===========================
   Reset & Base
=========================== */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--background);
  color: var(--foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===========================
   Utilities
=========================== */
.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  color: #0b0b0c;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: #cfcfcf;
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover {
  background: #17171a;
}

.btn-outline {
  background: #0e0e11;
  border-color: #2a2a33;
  color: var(--foreground);
}
.btn-outline:hover {
  background: #141418;
}

textarea{
  resize: none;
}

/* ===========================
   Header & Navigation
=========================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  transition: all 0.3s ease;
  margin-top: 8px;
  border-radius: 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  background: none;
  border: 0;
  color: var(--foreground);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

.links {
  display: none;
  gap: 24px;
  position: absolute;
  inset: 0;
  margin: auto;
  width: max-content;
  height: fit-content;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.links a {
  color: #b5b5be;
}
.links a:hover {
  color: #fff;
}

.cta {
  display: none;
  gap: 8px;
  align-items: center;
}

/* Dropdowns */
.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 5px;
  position: absolute;
  background: #141418;
  border: 1px solid #000;
  border-radius: 10px;
  min-width: 200px;
  z-index: 100;
}
.submenu .appHostingHover {
  min-width: 250px;
}
.submenu .taxHostingHover {
  min-width: 250px;
}
.has-submenu:hover > .submenu {
  display: block;
}
.has-submenu .has-submenu {
  position: relative;
}
.has-submenu .has-submenu .submenu {
  top: 0;
  left: 100%;
}
.submenu li {
  padding: 8px 12px;
  height: 40px;
  margin-left: 4px;
}
.submenu li a {
  display: block;
  text-decoration: none;
  color: #fff;
}
.submenu li a:hover {
  padding: 5px 10px;
  border-radius: 10px;
  background: #f2f2f2;
  color: #000;
}

/* Scroll state */
.is-scrolled .nav-wrap {
  max-width: 1024px;
  margin-inline: auto;
  background: color-mix(in oklab, var(--background) 60%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding-inline: 4px;
}

/* Desktop */
@media (min-width: 1024px) {
  .links {
    display: flex;
  }
  .cta {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* ===========================
   Mobile Menu
=========================== */
.mobile-panel {
  display: none;
  background: #0e0e11;
  border: 1px solid #2a2a33;
  border-radius: 20px;
  padding: 24px;
  margin: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mobile-panel.open {
  display: block;
}
.mobile-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.mobile-ctas {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* ===========================
   Hero Section
=========================== */
main {
  overflow: hidden;
}

.radial-floor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  display: none;
}
@media (min-width: 1024px) {
  .radial-floor {
    display: block;
  }
}

.hero {
  position: relative;
  padding-top: 96px;
}
@media (min-width: 768px) {
  .hero {
    padding-top: 144px;
  }
}

.bg-star {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  top: 8rem;
}
@media (prefers-color-scheme: dark) {
  .bg-star {
    display: block;
  }
}

.hero-inner {
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #15151a;
  border: 1px solid #2a2a33;
  border-top-color: #3a3a46;
  padding: 4px 4px 4px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}
.pill:hover {
  background: #0f0f12;
}
.pill-divider {
  width: 2px;
  height: 16px;
  background: #2a2a33;
  display: block;
}
.pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #0e0e11;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.pill-icon .train {
  width: 48px;
  display: flex;
  transform: translateX(-50%);
  transition: transform 0.5s ease;
}
.pill:hover .train {
  transform: translateX(0);
}
.pill svg {
  width: 12px;
  height: 12px;
}

.hero h1 {
  margin: 32px auto 0;
  max-width: 900px;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: 18px;
  color: #b5b5be;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* ===========================
   Popup
=========================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 12, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Box */
.popup-content {
  background: #1a1a1e;
  color: #e7e7ea;
  padding: 24px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: popupFadeIn 0.3s ease-in-out;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #e7e7ea;
}

.popup-content h2 {
  margin-bottom: 16px;
  font-size: 20px;
  text-align: center;
}

.popup-content form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-content input,
.popup-content textarea {
  padding: 10px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #0b0b0c;
  color: #e7e7ea;
}

.popup-content button {
  margin-top: 8px;
  padding: 10px;
  background: #7c7cf1;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.popup-content button:hover {
  background: #5b5be0;
}

@keyframes popupFadeIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===========================
   Welcome Section
=========================== */
.welcome-section {
  text-align: center;
  padding: 80px 0 40px;
}
.welcome-section h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--foreground);
  margin-bottom: 16px;
}
.welcome-section p {
  font-size: 18px;
  color: #b5b5be;
  max-width: 640px;
  margin-inline: auto;
}

/* ===========================
   Trial CTA Section
=========================== */
.trial-section {
  text-align: center;
  padding: 64px 0;
  background: #0e0e11;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trial-section h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--foreground);
  margin-bottom: 24px;
}
.trial-section .btn {
  font-size: 16px;
  padding: 0 24px;
  height: 48px;
  border-radius: 12px;
}

/* ===========================
   About Hosting Section
=========================== */
.about-hosting {
  margin: 50px 0;
}

.screen-wrap {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  padding-inline: 8px;
}
.screen-card {
  position: relative;
  margin-inline: auto;
  max-width: 1152px;
  border-radius: 16px;
  border: 1px solid #2a2a33;
  background: #0e0e11;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 16px;
}
.screen-card img {
  border-radius: 12px;
  aspect-ratio: 15 / 8;
  object-fit: cover;
}
.screen-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    var(--background) 100%
  );
  pointer-events: none;
}

/* ===========================
   Quote Band (Testimonial Cards)
=========================== */
#quote-band {
  margin: 50px;
}

.cards-band {
  /* min-height: 100vh; */
  display: grid;
  place-content: center;
  background: #0f172a;
  color: #e2e8f0;
  padding: 2rem;
}

.cards-stage {
  position: relative;
  width: 350px;
  height: 450px;
  margin-left: -100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.tcard {
  position: absolute;
  inset: 0;
  width: 350px;
  height: 450px;
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 16px;
  transform-origin: 50% 80%;
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 400ms ease,
    filter 400ms ease, z-index 0s step-end;
}

.tcard.front {
  z-index: 30;
  transform: translateX(120px) translateY(0) rotate(-2deg) scale(1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.tcard.middle {
  z-index: 20;
  transform: translateX(60px) translateY(18px) rotate(3deg) scale(0.96);
  filter: blur(0.3px);
  opacity: 0.95;
}
.tcard.back {
  z-index: 10;
  transform: translateX(0) translateY(36px) rotate(-4deg) scale(0.92);
  filter: blur(0.6px);
  opacity: 0.9;
}

/* Text inside testimonial */
.t-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #e7e7ea;
}
.t-author {
  margin: 0;
  font-size: 14px;
  color: #b5b5be;
}

/* Button inside testimonial */
.t-btn {
  justify-self: start;
  background: #0b0b0c;
  color: #e7e7ea;
  border: 1px solid #2a2a33;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.t-btn:hover {
  background: #141418;
  transform: translateY(-1px);
}

.tcard.front:hover {
  transform: translateX(120px) translateY(-2px) rotate(-1.5deg) scale(1.01);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.6);
}

@media (max-width: 320px) {
  .cards-stage {
    width: 180px;
    height: 260px;
  }

  .tcard {
    width: 180px;
    height: 260px;
    padding: 12px;
  }

  .t-text {
    font-size: 13px;
    line-height: 1.3;
  }

  .t-author {
    font-size: 10px;
  }

  .t-btn {
    padding: 4px 6px;
    font-size: 11px;
  }
}

@media (max-width: 430px) {
  .tcard {
    width: 250px;
    height: 350px;
    padding: 18px;
  }
}

/* Mobile size fix */
@media (max-width: 576px) {
  .cards-stage {
    width: 250px;   /* shrink container */
    height: 350px;  /* proportional smaller height */
    /* margin-left: 0; */
  }

  .tcard {
    width: 250px;
    height: 350px;
    padding: 18px;
  }

  .t-text {
    font-size: 16px; /* slightly smaller text */
    line-height: 1.4;
  }

  .t-author {
    font-size: 13px;
  }
}

/* @media (max-width: 600px) {
      .tcard {
        width: 250px;
        height: 320px;
    }
} */

@media only screen and (min-width: 601px) and (max-width: 900px) {
  .tcard {
    width: 240px;
    height: 330px;
  }
}

@media only screen and (min-width: 901px) and (max-width: 1200px) {
  .tcard {
    width: 280px;
    height: 370px;
  }
}

@media only screen and (min-width: 1201px) {
  .tcard {
    width: 300px;
    height: 400px;
  }
}

/* ===========================
   Forms
=========================== */
.form-grid {
  display: grid;
  gap: 14px;
}
.f-label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #d2d6db;
}
.req {
  color: #ff5c5c;
  margin-left: 4px;
}
.f-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #2a2a33;
  border-radius: 6px;
  background: #0b0b0c;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.f-input::placeholder {
  color: #7e818a;
}
.f-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.f-textarea {
  resize: vertical;
}
.form-actions {
  margin-top: 6px;
}

/* ===========================
   Customers Section
=========================== */
.customers {
  padding: 64px 0;
}
.customers .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  max-width: 720px;
  margin: 32px auto 0;
  opacity: 1;
  transition: opacity 0.4s ease, filter 0.4s ease;
}
.customers .grid img {
  height: 20px;
  object-fit: contain;
  filter: invert(1);
}
.customers .grid .h-16 {
  height: 16px;
}
.customers .grid .h-24 {
  height: 24px;
}
.customers .grid .h-28 {
  height: 28px;
}
.customers .wrap {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 24px;
}
.customers .hover-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.customers .wrap:hover .hover-panel {
  opacity: 1;
  transform: scale(1);
}
.customers .wrap:hover .grid {
  opacity: 0.5;
  filter: blur(1px);
}

/* ===========================
   Animations
=========================== */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(12px);
}
.in-view {
  opacity: 1;
  line-height: 30px;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.tw-text {
  color: #e7e7ea;
}

.tw-cursor {
  display: inline-block;
  margin-left: 6px;
  animation: tw-blink 0.8s steps(1, end) infinite;
}

.tw-cursor.hidden {
  visibility: hidden;
}

@keyframes tw-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
}

.stagger.in-view > * {
  animation: stagger-up 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger.in-view > *:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger.in-view > *:nth-child(2) {
  animation-delay: 0.18s;
}

.stagger.in-view > *:nth-child(3) {
  animation-delay: 0.26s;
}

.stagger.in-view > *:nth-child(4) {
  animation-delay: 0.34s;
}

.stagger.in-view > *:nth-child(5) {
  animation-delay: 0.42s;
}

@keyframes stagger-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
HELPERS
======================= */
.mt-xxl {
  margin-top: 64px;
}

.opacity-50 {
  opacity: 0.5;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

/* =======================
SUPPORT BANNER
======================= */
.support-band {
  background: color-mix(in oklab, var(--accent) 20%, var(--background));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.support-wrap {
  display: grid;
  grid-template-columns: auto 1fr 280px;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
}

@media (max-width: 900px) {
  .support-wrap {
    grid-template-columns: auto 1fr;
  }
  .support-figure {
    display: none;
  }
}

.support-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #1a1f1d;
  border: 1px solid #2a2a33;
  color: #9be6da;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.support-title {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--foreground);
}

.support-lines {
  margin: 0;
  color: #d2d6db;
  line-height: 1.6;
}

.support-lines .hl {
  color: var(--accent);
}

.support-figure {
  height: 140px;
  background: radial-gradient(
      60% 120% at 60% 40%,
      rgba(255, 255, 255, 0.05),
      transparent 60%
    ),
    linear-gradient(180deg, #121212, #0e0e11);
  border: 1px solid #2a2a33;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

/* =======================
FOOTER
======================= */
.site-footer {
  background: #1a1a1e;
  color: #d2d6db;
  border-top: 1px solid var(--border);
  padding: 36px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col {
  min-width: 0;
}

.footer-head {
  margin: 0 0 12px;
  font-size: 16px;
  color: #e7e7ea;
  font-weight: 600;
}

.brand-accent {
  color: var(--accent);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  color: #aeb2bd;
  display: inline-block;
  padding: 4px 0;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.footer-list a:hover {
  color: #fff;
  background: #141418;
}

.footer-info {
  display: grid;
  gap: 6px;
  color: #c7cad4;
  font-size: 14px;
}

/* =======================
SUBSCRIBE FORM
======================= */
.subscribe {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.sub-input {
  flex: 1 1 auto;
  min-width: 0;
  background: #0b0b0c;
  color: var(--foreground);
  border: 1px solid #2a2a33;
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sub-input::placeholder {
  color: #7e818a;
}

.sub-input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}

.sub-btn {
  white-space: nowrap;
}
