/* Caterate Solutions — Stripe layout/mesh/type + PlayStation components + brand colors */

:root {
  /* Brand colors from logo */
  --primary: #5b2c8a;
  --primary-deep: #4a2470;
  --primary-press: #3a1c58;
  --primary-soft: #7a4aad;
  --primary-bg-subdued: #e8d9f5;
  --accent-teal: #2ec4b6;
  --accent-teal-deep: #1fa89c;
  --accent-orange: #f37a1f;
  --accent-orange-press: #d46612;
  --ink: #0d253d;
  --ink-secondary: #273951;
  --ink-mute: #64748d;
  --on-primary: #ffffff;
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --canvas-cream: #f5e9d4;
  --canvas-dark: #000000;
  --surface-dark: #121314;
  --surface-dark-card: #181818;
  --surface-card: #f5f7fa;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;
  --ash-light: #cccccc;
  --logo-white: #f5f5f0;
  --logo-white-mute: #d1d5db;
  --body-dark: rgba(245, 245, 240, 0.82);
  --mute-dark: rgba(209, 213, 219, 0.7);

  /* Spacing (Stripe + PS section rhythm) */
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  --space-huge: 64px;
  --space-section: 96px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --container: 1200px;
  --font: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-deep);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Typography — Stripe Inter 300 display */
.display-xxl {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -1.4px;
}

.display-xl {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.96px;
}

.display-lg {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.64px;
}

.display-md {
  font-size: 26px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.26px;
}

.heading-lg {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.22px;
}

.heading-md {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.body-lg {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.body-md {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
}

.caption {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.39px;
  color: var(--ink-mute);
}

/* Buttons — PlayStation pill geometry, brand colors */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  border-radius: var(--radius-full);
  padding: 12px 28px;
  min-height: 48px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-press);
  color: var(--on-primary);
}

.btn-commerce {
  background: var(--accent-orange);
  color: var(--on-primary);
}

.btn-commerce:hover,
.btn-commerce:focus-visible {
  background: var(--accent-orange-press);
  color: var(--on-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ash-light);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-secondary-dark {
  background: transparent;
  color: var(--on-primary);
  border-color: rgba(229, 229, 229, 0.35);
}

.btn-secondary-dark:hover,
.btn-secondary-dark:focus-visible {
  border-color: var(--on-primary);
  color: var(--on-primary);
}

.btn-sm {
  padding: 8px 16px;
  min-height: 40px;
  font-size: 14px;
}

/* Gradient mesh — Stripe structure, brand palette */
.mesh-hero {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  padding-bottom: var(--space-section);
}

.mesh-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 55%;
  min-height: 320px;
  background:
    radial-gradient(ellipse 60% 80% at 10% 40%, rgba(245, 233, 212, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 35% 20%, rgba(243, 122, 31, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 55% 75% at 55% 50%, rgba(122, 74, 173, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 45% 65% at 78% 30%, rgba(46, 196, 182, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 92% 60%, rgba(234, 120, 180, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, #f8f0ff 0%, #f6f9fc 70%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

.mesh-hero > * {
  position: relative;
  z-index: 1;
}

.page-hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
}

.page-hero__content {
  max-width: 720px;
}

.page-hero__content .display-xxl,
.page-hero__content .display-xl {
  margin-bottom: 16px;
  color: var(--ink);
}

.page-hero__lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-secondary);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: rgba(0, 55, 112, 0.06) 0 1px 3px;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 12px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-secondary);
  font-size: 15px;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections — PlayStation chapter bands */
.section {
  padding: var(--space-section) 0;
}

.section--soft {
  background: var(--canvas-soft);
}

.section--cream {
  background: var(--canvas-cream);
}

.section--dark {
  background: var(--canvas-dark);
  color: var(--logo-white);
}

.section--dark .caption,
.section--dark .body-md,
.section--dark .body-lg,
.section--dark p {
  color: var(--logo-white-mute);
}

.section--dark h2,
.section--dark h3 {
  color: var(--logo-white);
}

.section--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.section--primary p {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.5;
}

.section--dark .section-header p {
  color: var(--logo-white-mute);
}

/* Cards — PS 8px radius */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--hairline);
  box-shadow: rgba(0, 55, 112, 0.06) 0 1px 3px;
  height: 100%;
  transition: box-shadow 0.15s ease;
}

.card:hover {
  box-shadow: rgba(0, 55, 112, 0.08) 0 8px 24px, rgba(0, 55, 112, 0.04) 0 2px 6px;
}

.card--soft {
  background: var(--surface-card);
  border-color: transparent;
}

.card--dark {
  background: var(--surface-dark-card);
  border-color: rgba(229, 229, 229, 0.12);
  color: var(--logo-white);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg-subdued);
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 20px;
}

.card__icon--teal {
  background: rgba(46, 196, 182, 0.15);
  color: var(--accent-teal-deep);
}

.card__icon--orange {
  background: rgba(243, 122, 31, 0.15);
  color: var(--accent-orange);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.card--dark h3 {
  color: var(--logo-white);
}

.card--dark p,
.card--dark li {
  color: var(--logo-white-mute);
}

.card--dark li::before {
  background: var(--accent-orange);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  background: var(--primary-bg-subdued);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.card--dark .pill-tag {
  background: rgba(245, 245, 240, 0.12);
  color: var(--logo-white);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.64px;
  color: var(--primary);
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-mute);
  font-size: 15px;
}

/* Spotlight split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.split__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.split__visual img {
  max-height: 180px;
  width: auto;
}

.split__content h2 {
  margin-bottom: 16px;
}

.split__content p {
  margin-bottom: 24px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--logo-white-mute);
  font-size: 15px;
}

.feature-list i {
  color: var(--accent-teal);
  margin-top: 3px;
}

/* CTA band */
.cta-band {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  margin-bottom: 28px;
}

/* Values / about */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-item {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}

.value-item i {
  color: var(--accent-teal);
  font-size: 22px;
  margin-bottom: 16px;
}

.value-item h3 {
  margin-bottom: 8px;
}

.value-item p {
  color: var(--ink-mute);
}

/* FAQ accordion — PS support-row feel */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item:first-child {
  border-top: 1px solid var(--hairline);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.4;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--ink-mute);
  font-size: 16px;
  line-height: 1.5;
  max-width: 680px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Contact */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-details--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 720px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-bg-subdued);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact-detail a,
.contact-detail p {
  color: var(--ink-mute);
  font-size: 15px;
}

.contact-detail a:hover {
  color: var(--primary);
}

.social-links--contact {
  margin-top: 40px;
}

.social-links--contact a {
  border-color: var(--hairline);
  color: var(--primary);
}

.social-links--contact a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* Footer */
.site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--on-primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--on-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-size: 16px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.social-links a:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--on-primary);
}

/* Service detail blocks */
.service-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--hairline);
}

.service-block:first-of-type {
  border-top: 1px solid var(--hairline);
}

.service-block__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-bg-subdued);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.service-block h3 {
  margin-bottom: 8px;
}

.service-block > div > p {
  color: var(--ink-mute);
  margin-bottom: 16px;
  max-width: 680px;
}

.service-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.service-block li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.service-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-teal);
}

/* About stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat h3 {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--primary);
  margin-bottom: 8px;
  font-feature-settings: "tnum", "ss01";
}

.stat p {
  color: var(--ink-mute);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .display-xxl {
    font-size: 36px;
    letter-spacing: -0.8px;
  }

  .display-xl {
    font-size: 32px;
    letter-spacing: -0.64px;
  }

  .display-lg {
    font-size: 26px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links,
  .nav-cta .btn {
    display: none;
  }

  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 8px;
    box-shadow: rgba(0, 55, 112, 0.08) 0 8px 24px;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-panel a {
    padding: 12px 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    border-radius: var(--radius-sm);
  }

  .nav-panel a.is-active,
  .nav-panel a:hover {
    background: var(--canvas-soft);
    color: var(--primary);
  }

  .nav-panel .btn {
    display: inline-flex;
    margin-top: 8px;
    width: 100%;
  }

  .card-grid,
  .card-grid--2,
  .values-grid,
  .steps,
  .stats,
  .contact-details--grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-block {
    grid-template-columns: 1fr;
  }

  .service-block ul {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: calc(var(--header-h) + 32px) 0 48px;
  }

  .mesh-hero::before {
    height: 70%;
    min-height: 280px;
  }
}

@media (min-width: 769px) {
  .nav-panel {
    display: none !important;
  }
}
