/* ===== Xiysse Labs — Design Tokens ===== */
:root {
  --indigo: #1b2a4a;
  --indigo-deep: #0f1b33;
  --indigo-muted: #5a6b85;
  --cyan: #3e8b8a;
  --cyan-light: #5ec4c1;
  --sand: #efe3cf;
  --sand-light: #fbf6ec;
  --white: #ffffff;
  --line: rgba(27, 42, 74, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  --gradient: linear-gradient(135deg, var(--cyan), var(--cyan-light));

  --display: "Space Grotesk", -apple-system, sans-serif;
  --body: "Inter", -apple-system, sans-serif;

  --max-w: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--body);
  color: var(--indigo);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--indigo);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.dark h1,
.dark h2,
.dark h3 {
  color: var(--white);
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cyan);
}
.dark .eyebrow {
  color: var(--cyan-light);
}

p {
  color: var(--indigo);
}
.lede {
  color: var(--indigo-muted);
  font-size: 18px;
}
.dark .lede {
  color: rgba(255, 255, 255, 0.72);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn-gradient {
  background: var(--gradient);
  color: var(--indigo-deep);
  box-shadow: 0 4px 20px rgba(62, 139, 138, 0.35);
}
.btn-gradient:hover {
  box-shadow: 0 6px 26px rgba(62, 139, 138, 0.5);
}

.btn-outline-gradient {
  position: relative;
  background: var(--white);
  color: var(--indigo);
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--white), var(--white)), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.btn-outline-gradient:hover {
  box-shadow: 0 4px 18px rgba(62, 139, 138, 0.25);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost-dark:hover {
  border-color: var(--cyan-light);
  background: rgba(94, 196, 193, 0.08);
}

/* ===== Nav ===== */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo svg {
  width: 30px;
  height: 30px;
}
.logo-text {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  color: var(--indigo);
}
.logo-text sub {
  display: block;
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a.plain {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--indigo);
}
.nav-links a.plain.active {
  color: var(--cyan);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--indigo);
  margin: 5px 0;
}

nav#mobile-menu {
  display: none;
}

@media (max-width: 900px) {
  .nav-links.desktop {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  nav#mobile-menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 20px 32px 26px;
    border-top: 1px solid var(--line);
  }
  nav#mobile-menu.open {
    display: flex;
  }
  nav#mobile-menu a {
    font-size: 16px;
    text-decoration: none;
    color: var(--indigo);
  }
}

/* ===== Dark hero with gradient glow ===== */
.hero-dark {
  background:
    radial-gradient(
      ellipse 900px 500px at 70% -10%,
      rgba(94, 196, 193, 0.25),
      transparent
    ),
    linear-gradient(180deg, var(--indigo-deep), var(--indigo));
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(
    180deg,
    transparent,
    black 30%,
    black 70%,
    transparent
  );
  pointer-events: none;
}
.hero-dark .wrap {
  position: relative;
  z-index: 1;
}
.hero-dark h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  max-width: 760px;
  margin-bottom: 20px;
}
.hero-dark .lede {
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Section shell ===== */
section {
  padding: 88px 0;
}
.section-head {
  max-width: 600px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-top: 10px;
}

/* ===== Feature cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.feature-card .icon-dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--indigo-muted);
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Process steps ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
}
.process-num {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: block;
}
.process-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  color: var(--indigo-muted);
}
@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 32px;
  }
}
@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-light);
}
.portfolio-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(
    135deg,
    rgba(62, 139, 138, 0.15),
    rgba(94, 196, 193, 0.08)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-card .thumb span {
  font-size: 13px;
  color: var(--indigo-muted);
  font-weight: 600;
}
.portfolio-card .info {
  padding: 18px 20px;
}
.portfolio-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}
.portfolio-card p {
  font-size: 13px;
  color: var(--indigo-muted);
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pricing-card {
  background: var(--sand-light);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.pricing-card.featured {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--sand-light), var(--sand-light)), var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.pricing-card .price {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
}
.pricing-card .price-label {
  font-size: 13px;
  color: var(--indigo-muted);
  margin-bottom: 20px;
}
.pricing-card ul {
  list-style: none;
  margin: 16px 0;
}
.pricing-card li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--indigo-muted);
}
.pricing-card li:first-child {
  border-top: none;
}
@media (max-width: 780px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.scope-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.scope-list h4 {
  font-size: 14px;
  margin-bottom: 12px;
}
.scope-list.included h4 {
  color: var(--cyan);
}
.scope-list.excluded h4 {
  color: var(--indigo-muted);
}
.scope-list ul {
  list-style: none;
}
.scope-list li {
  font-size: 14px;
  color: var(--indigo-muted);
  padding: 6px 0;
}
@media (max-width: 700px) {
  .scope-lists {
    grid-template-columns: 1fr;
  }
}

/* ===== Forms ===== */
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 15px;
  background: var(--white);
  color: var(--indigo);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 700px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Founder light-touch ===== */
.founder-light {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.founder-light .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}
.founder-light p {
  max-width: 560px;
  font-size: 15px;
  color: var(--indigo-muted);
}

/* ===== CTA band ===== */
.cta-band-dark {
  background: linear-gradient(180deg, var(--indigo), var(--indigo-deep));
  text-align: center;
}
.cta-band-dark h2 {
  color: var(--white);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 18px;
}
.cta-band-dark p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ===== Footer ===== */
footer {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand p {
  margin-top: 12px;
  max-width: 280px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 12px;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-col a:hover {
  color: var(--white);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Page hero (light, non-home) ===== */
.page-hero {
  padding: 76px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  max-width: 700px;
  margin-bottom: 16px;
}
.page-hero p {
  max-width: 540px;
}
