/* WebProject - Main Stylesheet */

/* CSS Variables - Light Theme */
:root {
  --wp-bg: #ffffff;
  --wp-bg-2: #f4f7fc;
  --wp-card: #ffffff;
  --wp-border: #e3e9f2;
  --wp-fg: #0b1526;
  --wp-muted: #5b6b82;
  --wp-tint: #eaf1fe;
  --wp-accent: #2563eb;
  --wp-accent-strong: #1d4ed8;
  --wp-shadow: 0 24px 60px #0f285a1a;
  --wp-glow: #2563eb1a;
  --wp-grid: #e3e9f2;
  
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  
  --ease-out-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark Theme */
html.dark {
  --wp-bg: #070c16;
  --wp-bg-2: #0b1322;
  --wp-card: #0e1728;
  --wp-border: #1c2940;
  --wp-fg: #eef3fb;
  --wp-muted: #8fa1bb;
  --wp-tint: #12203a;
  --wp-accent: #5b93ff;
  --wp-accent-strong: #82adff;
  --wp-shadow: 0 24px 60px #00000080;
  --wp-glow: #5b93ff1f;
  --wp-grid: #1c2940;
}

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

html {
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

html.dark {
  color-scheme: dark;
}

body {
  background-color: var(--wp-bg);
  color: var(--wp-fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: color-mix(in oklab, var(--wp-accent) 30%, transparent);
  color: var(--wp-fg);
}

/* Layout Utilities - Match original wp-shell */
.wp-shell {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.wp-shell-wide {
  width: min(1280px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Grid Background - positioned absolutely inside hero sections */
.wp-grid-bg {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--wp-grid) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--wp-grid) 70%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 40%, transparent 75%);
  pointer-events: none;
}

.hero-grid,
.page-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

/* Glow Effect */
.wp-glow {
  background: radial-gradient(circle, var(--wp-accent) 0%, transparent 68%);
  opacity: 0.18;
  filter: blur(64px);
  pointer-events: none;
}

.page-hero-glow {
  position: absolute;
  top: -8rem;
  right: 0;
  width: 420px;
  height: 420px;
  animation: wp-float 10s ease-in-out infinite;
}

/* Reveal Animation - scroll-triggered elegant entrance */
.wp-reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition:
    opacity 500ms var(--ease-out-smooth),
    transform 500ms var(--ease-out-smooth),
    filter 500ms var(--ease-out-smooth);
}

.wp-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Fallback: ensure content is visible if JS fails or is slow */
@media (scripting: none) {
  .wp-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Reduced motion: show immediately */
@media (prefers-reduced-motion: reduce) {
  .wp-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Staggered reveal delays */
.wp-reveal-delay-1 { transition-delay: 40ms; }
.wp-reveal-delay-2 { transition-delay: 80ms; }
.wp-reveal-delay-3 { transition-delay: 120ms; }
.wp-reveal-delay-4 { transition-delay: 160ms; }
.wp-reveal-delay-5 { transition-delay: 200ms; }
.wp-reveal-delay-6 { transition-delay: 240ms; }
.wp-reveal-delay-7 { transition-delay: 280ms; }
.wp-reveal-delay-8 { transition-delay: 320ms; }

/* Card Component */
.wp-card {
  background: var(--wp-card);
  border: 1px solid var(--wp-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--wp-shadow);
}

/* Eyebrow Text */
.wp-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp-accent);
}

/* Input Styles */
.wp-input {
  width: 100%;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--wp-border);
  background: var(--wp-bg-2);
  padding: 0 0.9rem;
  color: var(--wp-fg);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wp-input:focus {
  border-color: var(--wp-accent);
  box-shadow: 0 0 0 3px var(--wp-glow);
}

textarea.wp-input {
  height: auto;
  padding-block: 0.75rem;
  resize: vertical;
  min-height: 8rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.2s var(--ease-out-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--wp-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-primary:hover {
  background: var(--wp-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--wp-glow);
}

.btn-secondary {
  background: var(--wp-card);
  color: var(--wp-fg);
  border: 1px solid var(--wp-border);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-secondary:hover {
  background: var(--wp-tint);
  border-color: var(--wp-accent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Header - Match original exactly */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklab, var(--wp-bg) 70%, transparent);
  transition: all 0.3s;
  overflow: visible;
}

.header.scrolled,
.header.menu-open {
  border-color: var(--wp-border);
  background: color-mix(in oklab, var(--wp-bg) 95%, transparent);
  backdrop-filter: blur(12px);
}

.header.is-menu-open {
  background: var(--wp-bg);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 1.5rem;
}

/* Logo - Match original */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.logo-img {
  height: 3.4375rem;
  width: auto;
  display: block;
}

html.dark .logo-img {
  content: url("../images/logo-dark.png");
}

.logo:hover .logo-img {
  opacity: 0.8;
}

/* Navigation - Hidden on mobile, shown on lg */
.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin-left: 0.5rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp-muted);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--wp-accent);
}

/* Services Dropdown - Desktop only */
.services-dropdown {
  position: relative;
}

.services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp-muted);
  transition: color 0.2s;
}

.services-trigger:hover {
  color: var(--wp-accent);
}

.services-trigger svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s;
}

.services-dropdown:hover .services-trigger svg {
  transform: rotate(180deg);
}

.services-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: all 0.2s;
  pointer-events: none;
}

.services-dropdown:hover .services-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.services-grid {
  width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.125rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--wp-border);
  background: var(--wp-card);
  padding: 0.875rem;
  box-shadow: var(--wp-shadow);
}

.service-link {
  display: flex;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  padding: 0.625rem 0.75rem;
  transition: background 0.2s;
}

.service-link:hover {
  background: var(--wp-tint);
}

.service-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--wp-tint);
  color: var(--wp-accent);
}

.service-icon svg {
  width: 1rem;
  height: 1rem;
}

.service-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wp-fg);
}

.service-kicker {
  display: block;
  font-size: 0.75rem;
  color: var(--wp-muted);
  line-height: 1.3;
}

/* Header Actions */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--wp-muted);
  transition: all 0.2s;
}

.theme-toggle:hover {
  color: var(--wp-fg);
  background: var(--wp-tint);
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
}

.login-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp-muted);
  padding: 0 0.5rem;
  transition: color 0.2s;
  display: none;
}

@media (min-width: 640px) {
  .login-link {
    display: inline-flex;
  }
}

.btn-talk {
  display: none;
}

@media (min-width: 640px) {
  .btn-talk {
    display: inline-flex;
  }
}

/* Mobile Menu Button - Hidden on lg */
.mobile-menu-btn {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: var(--wp-fg);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile Menu - Shown when open on mobile */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--wp-border);
  background: var(--wp-card);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-inner {
  padding: 1rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp-muted);
  padding: 0.5rem;
}

.mobile-service-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-xl);
  transition: background 0.2s;
}

.mobile-service-link:hover {
  background: var(--wp-tint);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--wp-border);
  margin: 0.5rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
}

.hero-content {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--wp-bg-2);
  border-top: 1px solid var(--wp-border);
  border-bottom: 1px solid var(--wp-border);
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}

.section-desc {
  color: var(--wp-muted);
  margin-top: 0.75rem;
  max-width: 36rem;
  line-height: 1.6;
}

/* Card Grid - Responsive */
.card-grid {
  display: grid;
  gap: 0.75rem;
}

.card-grid-2 {
  grid-template-columns: 1fr;
}

.card-grid-3 {
  grid-template-columns: 1fr;
}

.card-grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Service Card */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--wp-accent);
}

.service-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--wp-tint);
  color: var(--wp-accent);
}

.service-card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.service-card-title {
  font-size: 1rem;
  font-weight: 700;
  transition: color 0.2s;
}

.service-card:hover .service-card-title {
  color: var(--wp-accent);
}

.service-card-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
  line-height: 1.6;
  flex: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--wp-accent);
}

.service-card-link svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: 0.75rem;
  border-radius: var(--radius-xl);
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp-muted);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--wp-border);
  border-bottom: 1px solid var(--wp-border);
  background: var(--wp-bg-2);
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: wp-marquee 28s linear infinite;
}

.marquee-item {
  padding: 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--wp-muted);
  white-space: nowrap;
}

/* Why Section */
.why-card {
  padding: 1.25rem;
}

.why-card-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--wp-accent);
}

.why-card-title {
  font-weight: 700;
  margin-top: 0.75rem;
}

.why-card-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Datacenter Card */
.dc-card {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
}

.dc-icon {
  width: 1rem;
  height: 1rem;
  color: var(--wp-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.dc-name {
  font-weight: 700;
}

.dc-region {
  font-size: 0.875rem;
  color: var(--wp-muted);
}

.dc-note {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--wp-muted);
  margin-top: 0.5rem;
}

/* Testimonial */
.testimonial {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--wp-fg);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.testimonial-avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wp-tint);
  color: var(--wp-accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--wp-muted);
}

/* CTA Section */
.cta-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--wp-tint);
  border-color: color-mix(in oklab, var(--wp-accent) 30%, transparent);
}

@media (min-width: 768px) {
  .cta-card {
    padding: 2rem 3rem;
    flex-direction: row;
    align-items: center;
  }
}

.cta-content {
  flex: 1;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .cta-title {
    font-size: 1.875rem;
  }
}

.cta-desc {
  color: var(--wp-muted);
  margin-top: 0.75rem;
  max-width: 36rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer - Match original 4-column grid */
.footer {
  border-top: 1px solid var(--wp-border);
  background: var(--wp-bg-2);
}

.footer-inner {
  padding: 3.5rem 0;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  max-width: 20rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-legal {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--wp-muted);
  margin-top: 1rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp-muted);
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--wp-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--wp-accent);
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--wp-muted);
  line-height: 1.8;
}

.footer-contact a {
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--wp-accent);
}

.footer-bottom {
  border-top: 1px solid var(--wp-border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--wp-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Page Hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 3.5rem;
}

.page-hero-content {
  position: relative;
}

.page-hero-title {
  max-width: 48rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .page-hero-title {
    font-size: 2.5rem;
  }
}

.page-hero-lede {
  max-width: 36rem;
  font-size: 1rem;
  color: var(--wp-muted);
  line-height: 1.6;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .page-hero-lede {
    font-size: 1.125rem;
  }
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Highlight Cards */
.highlight-card {
  padding: 1.25rem;
  height: 100%;
}

.highlight-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--wp-accent);
}

.highlight-title {
  font-weight: 700;
  margin-top: 0.75rem;
}

.highlight-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Plan Grid */
.plan-grid {
  display: grid;
  gap: 0.75rem;
}

.plan-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-popular {
  border-color: var(--wp-accent);
  box-shadow: 0 10px 34px color-mix(in oklab, var(--wp-accent) 18%, transparent);
}

.plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.plan-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--wp-accent);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.plan-name {
  font-size: 1.125rem;
  font-weight: 800;
}

.plan-blurb {
  font-size: 0.875rem;
  color: var(--wp-muted);
  margin-top: 0.25rem;
}

.plan-price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.plan-amount {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-period {
  font-size: 0.875rem;
  color: var(--wp-muted);
}

.plan-features {
  list-style: none;
  margin-top: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wp-muted);
}

.plan-feature-icon {
  width: 1rem;
  height: 1rem;
  color: var(--wp-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.plan-cta {
  margin-top: 1.5rem;
}

/* Billing Toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--wp-border);
  background: var(--wp-card);
  padding: 0.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.billing-option {
  padding: 0 1rem;
  height: 2.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--wp-muted);
  transition: all 0.15s;
}

.billing-option:hover {
  color: var(--wp-fg);
}

.billing-option.active {
  background: var(--wp-accent);
  color: white;
}

/* Process Steps */
.process-grid {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.process-step {
  padding: 1.25rem;
}

.process-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--wp-accent);
  font-weight: 700;
}

.process-title {
  font-weight: 700;
  margin-top: 0.5rem;
}

.process-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
  margin-top: 0.25rem;
}

/* Results Grid */
.results-grid {
  display: grid;
  gap: 0.75rem;
}

.result-card {
  padding: 1.25rem;
  text-align: center;
}

.result-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--wp-accent);
}

.result-label {
  font-size: 0.875rem;
  color: var(--wp-muted);
  margin-top: 0.25rem;
}

/* Case Study */
.case-card {
  padding: 1.5rem;
  overflow: hidden;
}

.case-gallery {
  position: relative;
  margin: -1.5rem -1.5rem 1.25rem;
  overflow: hidden;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  height: 240px;
  background: var(--wp-bg-2);
}

.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.case-gallery img.active {
  opacity: 1;
  pointer-events: auto;
}

.case-gallery-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 15px;
  box-sizing: border-box;
  pointer-events: none;
}

.case-gallery-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s;
}

.case-gallery-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.case-title {
  font-weight: 700;
}

.case-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.case-results {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.case-result {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wp-muted);
}

.case-result-icon {
  width: 1rem;
  height: 1rem;
  color: var(--wp-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--wp-border);
  background: var(--wp-card);
}

/* FAQ - matches original React FaqList component */
.faq-list {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--wp-border);
  background: var(--wp-card);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--wp-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp-fg);
}

.faq-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--wp-muted);
  transition: transform 0.2s, color 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--wp-accent);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--wp-muted);
}

/* Package Grid */
.package-grid {
  display: grid;
  gap: 0.75rem;
}

.package-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.package-popular {
  border-color: var(--wp-accent);
}

.package-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.package-price {
  margin-top: 1rem;
}

.package-amount {
  font-size: 1.5rem;
  font-weight: 800;
}

.package-period {
  font-size: 0.875rem;
  color: var(--wp-muted);
}

.package-features {
  list-style: none;
  margin-top: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.package-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--wp-muted);
}

.package-feature-icon {
  width: 1rem;
  height: 1rem;
  color: var(--wp-accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Benchmark Cards */
.benchmark-card {
  padding: 1.25rem;
}

.benchmark-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp-muted);
}

.benchmark-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.benchmark-desc {
  font-size: 0.875rem;
  color: var(--wp-muted);
}

/* Related Services */
.related-grid {
  display: grid;
  gap: 0.75rem;
}

.related-card {
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.related-card:hover {
  border-color: var(--wp-accent);
}

.related-icon {
  width: 1rem;
  height: 1rem;
  color: var(--wp-accent);
}

.related-name {
  font-weight: 700;
  margin-top: 0.5rem;
}

.related-kicker {
  font-size: 0.875rem;
  color: var(--wp-muted);
  margin-top: 0.25rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
}

.contact-card a {
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--wp-accent);
}

.contact-services {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact-services a {
  font-size: 0.875rem;
  color: var(--wp-muted);
  transition: color 0.2s;
}

.contact-services a:hover {
  color: var(--wp-accent);
}

.contact-icon {
  width: 1rem;
  height: 1rem;
  color: var(--wp-accent);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp-muted);
}

.contact-value {
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.contact-value a {
  transition: color 0.2s;
}

.contact-value a:hover {
  color: var(--wp-accent);
}

/* Form */
.contact-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 1.5rem 2rem;
  }
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: block;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--wp-muted);
}

.form-success {
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in oklab, var(--wp-accent) 40%, transparent);
  background: var(--wp-tint);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success--visible {
  opacity: 1;
  transform: translateY(0);
}

.form-success-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--wp-accent);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: check-draw 0.6s ease 0.2s forwards;
}

.form-success-title {
  font-weight: 700;
  color: var(--wp-fg);
  font-size: 0.9375rem;
}

.form-success-text {
  color: var(--wp-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.form-error {
  border-color: color-mix(in oklab, #ef4444 40%, transparent);
  background: color-mix(in oklab, #ef4444 8%, var(--wp-bg));
}

.form-error-icon {
  color: #ef4444;
}

.form-error-title {
  color: #ef4444;
}

.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  animation: spin 0.6s linear infinite;
}

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

@keyframes check-draw {
  to { stroke-dashoffset: 0; }
}

/* Legal Pages */
.legal-content {
  max-width: 48rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: var(--wp-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--wp-fg);
}

.legal-section h3 {
  font-weight: 700;
  color: var(--wp-fg);
  margin-top: 1rem;
}

.legal-section p {
  margin-top: 0.5rem;
}

.legal-section ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-link {
  color: var(--wp-accent);
  transition: opacity 0.2s;
}

.legal-link:hover {
  opacity: 0.8;
}

/* SLA Table */
.sla-table {
  width: 100%;
  font-size: 0.875rem;
}

.sla-table th {
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--wp-border);
}

.sla-table td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--wp-border);
}

.sla-table tr:last-child td {
  border-bottom: none;
}

.sla-table .mono {
  font-family: var(--font-mono);
}

/* Animations */
@keyframes wp-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes wp-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes wp-up {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes wp-pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.wp-enter {
  animation: wp-up 0.7s var(--ease-out-smooth) both;
}

.wp-enter-delay-1 {
  animation-delay: 80ms;
}

.wp-enter-delay-2 {
  animation-delay: 140ms;
}

.wp-enter-delay-3 {
  animation-delay: 200ms;
}

.wp-enter-delay-4 {
  animation-delay: 280ms;
}

/* Additional Layout Classes */

/* Console Panel */
.panel-tab {
  padding: 0 0.875rem;
  height: 2rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--wp-muted);
  background: none;
  transition: all 0.15s;
}

.panel-tab:hover {
  color: var(--wp-fg);
}

.panel-tab.active {
  background: var(--wp-accent);
  color: white;
}

.instance-row {
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.instance-row:hover {
  background: color-mix(in oklab, var(--wp-tint) 60%, transparent);
}

.instance-row.selected {
  background: var(--wp-tint);
}

.instance-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.instance-dot.running {
  background: var(--wp-accent);
}

.instance-dot.storage {
  background: var(--wp-muted);
}

.instance-info {
  min-width: 0;
  flex: 1;
}

.instance-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instance-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.instance-role {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp-muted);
}

.instance-specs {
  display: block;
  font-size: 0.75rem;
  color: var(--wp-muted);
  margin-top: 0.125rem;
}

.instance-id {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--wp-muted);
}

.instance-action {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--wp-border);
  color: var(--wp-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.instance-action:hover {
  border-color: var(--wp-accent);
  color: var(--wp-accent);
}

.metric-card {
  border-radius: 0.75rem;
  border: 1px solid var(--wp-border);
  background: var(--wp-bg-2);
  padding: 0.75rem;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp-muted);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

.metric-spark {
  width: 100%;
  height: 2rem;
  margin-top: 0.5rem;
}

.terminal-output {
  font-family: var(--font-mono);
  font-size: 0.78125rem;
  line-height: 1.8;
  padding: 0.75rem;
  background: var(--wp-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--wp-border);
  max-height: 14rem;
  overflow-y: auto;
}

.terminal-line {
  white-space: pre-wrap;
}

.terminal-line.command {
  color: var(--wp-accent);
  font-weight: 500;
}

.terminal-line.muted {
  color: var(--wp-muted);
}

/* Hero glow positioning */
.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
}

.hero-glow-1 {
  top: -200px;
  right: -120px;
  animation: wp-float 9s ease-in-out infinite;
}

/* Two-column layout for Why section */
.two-col-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .two-col-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Section responsive padding */
.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

/* Hero responsive padding */
.hero {
  padding: 7rem 0 4rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0 6rem;
  }
}

/* Body flex layout for sticky footer */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Footer responsive grid - remove inline style override */
.footer-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer bottom margin */
.footer-bottom {
  margin-top: 2.75rem;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wp-enter,
  .wp-glow,
  .marquee-track {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .mobile-menu,
  .theme-toggle {
    display: none !important;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .wp-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
