/* ==========================================================================
   GPU Landing — Component Styles
   Shared between styleguide.html and index.html
   ========================================================================== */

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--w-100);
  background: var(--dark-blue);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background glow — covers full width, fades to dark-blue at bottom */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: url('../../design-system/assets/back-dark.png') top center / cover no-repeat;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay — only near the glow area, gradient fade */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background-image:
    repeating-linear-gradient(0deg, var(--w-5) 0px, transparent 1px, transparent var(--s-40)),
    repeating-linear-gradient(90deg, var(--w-5) 0px, transparent 1px, transparent var(--s-40));
  mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 10%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Typography — Hero
   ========================================================================== */

.hero-heading {
  font-family: var(--font-sans);
  font-size: clamp(var(--s-64), 8vw, var(--s-72));
  font-weight: var(--fw-semibold);
  line-height: clamp(var(--s-72), 9vw, var(--s-80));
  letter-spacing: clamp(var(--ls-n4), -0.4vw, var(--ls-n3));
}

.hero-heading--white { color: var(--w-100); }
.hero-heading--green { color: var(--green-100); }
.hero-heading--blue { color: var(--light-blue); }

/* ==========================================================================
   Typography — Subtitle (mono)
   ========================================================================== */

.subtitle {
  font-family: var(--font-mono);
  font-size: var(--s-24);
  font-weight: var(--fw-regular);
  line-height: var(--s-28);
  color: var(--gr-80);
}

.subtitle__accent {
  color: var(--green-100);
}

/* ==========================================================================
   Badge / Label
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-22);
  color: var(--w-90);
  text-transform: uppercase;
  padding: var(--s-6) var(--s-16);
  border: 1px solid var(--blue-30);
  border-radius: var(--s-100);
  background: var(--blue-5);
}

.badge__dot {
  width: var(--s-10);
  height: var(--s-10);
  background: var(--blue-100);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--blue-30); }
  50% { opacity: 0.7; box-shadow: 0 0 var(--s-8) var(--s-4) var(--blue-15); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-stroke {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-12) var(--s-24);
  font-family: var(--font-mono);
  font-size: var(--s-14);
  font-weight: var(--fw-semibold);
  line-height: var(--s-22);
  letter-spacing: var(--ls-05);
  color: var(--w-100);
  background: transparent;
  border: 1px solid var(--w-10);
  border-radius: var(--s-2);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn-stroke:hover {
  border-color: var(--w-40);
  background: var(--w-5);
}

.btn-stroke:active {
  background: var(--w-10);
}

/* ==========================================================================
   Form — Label
   ========================================================================== */

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-medium);
  line-height: var(--s-20);
  letter-spacing: var(--ls-075);
  color: var(--gr-80);
  text-transform: uppercase;
  margin-bottom: var(--s-8);
}

/* ==========================================================================
   Form — Input / Select (base state)
   ========================================================================== */

.form-input {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--s-12) var(--s-14);
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-16);
  color: var(--dark-gr-100);
  background: var(--w-100);
  border: 1px solid var(--blue-30);
  border-radius: var(--s-2);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--dark-gr-50);
}

/* Focus */
.form-input:focus {
  border-color: var(--green-100);
  box-shadow: 0 0 0 var(--s-2) var(--green-100);
}

/* Error */
.form-input--error {
  border-color: var(--pink);
  box-shadow: 0 0 0 var(--s-2) var(--pink);
}

.form-input--error:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 var(--s-2) var(--pink);
}

.form-error {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-20);
  color: var(--pink);
  margin-top: var(--s-6);
}

/* ==========================================================================
   Form — CTA Button (green)
   ========================================================================== */

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  width: 100%;
  padding: var(--s-16) var(--s-24);
  font-family: var(--font-mono);
  font-size: var(--s-14);
  font-weight: var(--fw-semibold);
  line-height: var(--s-22);
  letter-spacing: var(--ls-05);
  text-transform: uppercase;
  color: var(--dark-blue);
  background: var(--green-100);
  border: none;
  border-radius: var(--s-2);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Loading */
.btn-cta--loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-cta__spinner {
  display: none;
  width: var(--s-16);
  height: var(--s-16);
  border: 2px solid var(--dark-blue);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-cta--loading .btn-cta__spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Form — Success State
   ========================================================================== */

.form-success {
  padding: var(--s-32) var(--s-24);
  background: var(--w-5);
  border: 1px solid var(--green-30);
  border-radius: var(--s-6);
  text-align: center;
}

.form-success__icon {
  width: var(--s-40);
  height: var(--s-40);
  margin: 0 auto var(--s-16);
  background: var(--green-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success__icon::after {
  content: '';
  width: var(--s-12);
  height: var(--s-20);
  border: 3px solid var(--dark-blue);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-2px);
}

.form-success__title {
  font-family: var(--font-sans);
  font-size: var(--s-20);
  font-weight: var(--fw-semibold);
  line-height: var(--s-28);
  color: var(--w-100);
  margin-bottom: var(--s-12);
}

.form-success__text {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-20);
  color: var(--gr-60);
}

/* ==========================================================================
   Form — Helper / Legal text
   ========================================================================== */

.form-helper {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-20);
  color: var(--green-100);
}

.form-legal {
  font-family: var(--font-mono);
  font-size: var(--s-10);
  font-weight: var(--fw-regular);
  line-height: var(--s-16);
  color: var(--gr-40);
}

.form-legal a {
  color: var(--gr-60);
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-legal a:hover {
  color: var(--gr-80);
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */

.pricing {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

/* Card */
.pricing__card {
  border: 1px solid var(--w-10);
  border-left: 3px solid var(--w-10);
  border-radius: 3px;
  background: var(--w-5);
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.pricing__card--green {
  border-left-color: var(--green-100);
}

.pricing__card--blue {
  border-left-color: var(--blue-100);
}

.pricing__card--pink {
  border-left-color: var(--pink);
}

.pricing__card:hover {
  background: var(--w-10);
}

.pricing__card--selected {
  background: var(--w-10);
  border-color: var(--gr-40);
}

.pricing__card--selected.pricing__card--green {
  background: var(--green-10);
  border-color: var(--green-100);
  border-left-color: var(--green-100);
}

.pricing__card--selected.pricing__card--blue {
  background: var(--blue-5);
  border-color: var(--blue-100);
  border-left-color: var(--blue-100);
}

.pricing__card--selected.pricing__card--pink {
  background: rgba(247, 99, 163, 0.1);
  border-color: var(--pink);
  border-left-color: var(--pink);
}

/* Badge */
.pricing__badge {
  padding: var(--s-8) var(--s-16);
  font-family: var(--font-mono);
  font-size: var(--s-10);
  font-weight: var(--fw-bold);
  line-height: var(--s-16);
  letter-spacing: var(--ls-075);
  text-transform: uppercase;
}

.pricing__badge--green {
  background: var(--green-10);
  color: var(--green-100);
}

.pricing__badge--blue {
  background: var(--blue-15);
  color: var(--light-blue);
}

.pricing__badge--pink {
  background: rgba(247, 99, 163, 0.1);
  color: var(--pink);
}

/* Card body */
.pricing__card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--s-16) var(--s-20);
  gap: var(--s-16);
}

/* Info (left) */
.pricing__card-info {
  flex: 1;
  min-width: 0;
}

.pricing__tier-name {
  font-family: var(--font-sans);
  font-size: var(--s-18);
  font-weight: var(--fw-bold);
  line-height: var(--s-24);
  color: var(--w-100);
}

.pricing__specs {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-medium);
  line-height: var(--s-20);
  color: var(--gr-60);
  margin-top: var(--s-4);
}

/* Tags */
.pricing__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-12);
}

.pricing__tag {
  font-family: var(--font-mono);
  font-size: var(--s-10);
  font-weight: var(--fw-regular);
  line-height: var(--s-16);
  color: var(--gr-50);
  padding: var(--s-4) var(--s-10);
  border: 1px solid var(--w-10);
  border-radius: 3px;
}

/* Price (right) */
.pricing__card-price {
  text-align: right;
  flex-shrink: 0;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: var(--s-18);
  font-weight: var(--fw-bold);
  line-height: var(--s-24);
  color: var(--green-100);
}

.pricing__price-unit {
  font-size: var(--s-18);
  font-weight: var(--fw-bold);
}

.pricing__hours {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-medium);
  line-height: var(--s-20);
  color: var(--gr-100);
  margin-top: var(--s-4);
}

/* ==========================================================================
   Logo
   ========================================================================== */

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: var(--s-28);
  width: auto;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-18) var(--s-40);
}

/* ==========================================================================
   Section Header (reusable: label + title)
   ========================================================================== */

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-16);
  text-align: center;
}

.section-header__label {
  font-family: var(--font-mono);
  font-size: var(--s-14);
  font-weight: var(--fw-medium);
  line-height: var(--s-20);
  color: var(--blue-100);
}

.section-header__title {
  font-family: var(--font-sans);
  font-size: var(--s-40);
  font-weight: var(--fw-medium);
  line-height: var(--s-56);
  letter-spacing: var(--ls-n2);
  color: var(--gr-100);
  text-wrap: balance;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--blue-30);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  width: 100%;
  padding: var(--s-20) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--s-16);
  font-weight: var(--fw-semibold);
  line-height: var(--s-24);
  color: var(--gr-100);
  transition: color 0.2s ease;
}

.faq__question:hover {
  color: var(--gr-80);
}

.faq__icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--w-5);
  border-radius: var(--s-8);
  color: var(--gr-60);
}

.faq__icon svg {
  width: var(--s-14);
  height: var(--s-14);
  transition: transform 0.3s ease;
}

.faq__item--open .faq__icon svg {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer-inner {
  padding-bottom: var(--s-20);
  font-family: var(--font-sans);
  font-size: var(--s-16);
  font-weight: var(--fw-regular);
  line-height: var(--s-24);
  color: var(--gr-60);
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer__logo {
  height: 24px;
}

.footer__address {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-18);
  color: var(--gr-50);
}

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

.footer__cert {
  height: 48px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.footer__cert:hover {
  opacity: 1;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-18);
  color: var(--w-10);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--s-12);
  font-weight: var(--fw-regular);
  line-height: var(--s-18);
}

.footer__links a {
  color: var(--w-10);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--gr-80);
}

.footer__links-sep {
  color: var(--w-10);
}

@media (max-width: 767px) {
  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-16);
  }
}
