/* ==============================================
   HIGH-VISIBILITY 45° PCB TRACE PATTERN
   ============================================== */
body {
  background-color: #080d14;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(0, 243, 255, 0.08) 0%, transparent 60%),
    linear-gradient(to right, rgba(30, 48, 77, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 48, 77, 0.35) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-repeat: no-repeat, repeat, repeat;
  background-attachment: fixed;
  color: #e6edf3;
  margin: 0;
  padding: 0;
}
/* Unified Cyber-Terminal Typography */
h1, h2, h3, .brand-name, .section-tag, .tier-label {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: -0.02em;
  font-weight: 700;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

/* Give section tags that clean terminal HUD look */
.section-tag {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00f3ff;
  font-weight: 600;
}

p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.6;
}
/* ==============================================
   HEADER & NAVIGATION
   ============================================== */
/*.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--clr-surface, #ffffff);
  border-bottom: 1px solid var(--clr-border, #e2e8f0);
}*/

/* --- Global Site Header Bar --- */
/* --- Brand Title (Pelican Script) --- */
site-header a,
site-header .brand-title,
site-header span {
  color: #5ce1e6 !important; /* Faint neon cyan baseline */
  text-shadow: 0 0 4px rgba(0, 243, 255, 0.25);
  transition: all 0.25s ease-in-out;
}

site-header a:hover,
site-header .brand-title:hover {
  color: #00f3ff !important; /* Vivid neon cyan */
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.75), 0 0 20px rgba(0, 243, 255, 0.4);
}

/* --- Header Navigation Links --- */
site-header nav a {
  color: #5ce1e6 !important; /* Readable faint neon cyan */
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  display: inline-block;
  opacity: 0.85; /* Soft faint appearance */
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
  transition: all 0.25s ease-in-out;
}

/* Hover: Bright Neon Glow */
site-header nav a:hover,
site-header nav a.active {
  opacity: 1;
  color: #ffffff !important; /* Shifts to brilliant white-cyan core */
  text-shadow: 
    0 0 8px #00f3ff,
    0 0 16px #00f3ff,
    0 0 24px rgba(0, 243, 255, 0.6);
  transform: translateY(-1px);
}
/* --- Adjust container padding so a taller logo fits comfortably --- */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 1.5rem; /* Reduced top/bottom padding to give the logo room */
  max-width: 72rem;
  margin-inline: auto;
  position: relative;
}

/* --- Scale up the logo --- */
.brand-logo {
  width: auto;             /* Lets the width calculate naturally */
  height: 3.5rem;          /* Scales from 36px up to 56px */
  max-height: 60px;
  object-fit: contain;
  display: block;
}

/* --- Keep the brand text vertically centered with the larger icon --- */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  line-height: 1;          /* Prevents unwanted text descent spacing */
}

/* --- Mobile Hamburger Button --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--clr-heading, #0f172a);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ==============================================
   MOBILE NAVIGATION & HAMBURGER (CYBER HUD THEME)
   ============================================== */

/* --- Mobile Hamburger Button --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1001;
}

/* Neon Cyan Hamburger Lines */
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: #00f3ff;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 243, 255, 0.7);
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

/* --- Mobile Navigation Drawer (Closed) --- */
.primary-navigation {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(14, 22, 34, 0.98); /* Deep cyber surface #0e1622 with subtle translucency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2e42;
  border-top: 1px solid #1f2e42;
  padding: 1.5rem 1rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Hidden state */
  display: none;
  box-sizing: border-box;
}

/* --- Drawer Opened State (Matches components.js .nav-open) --- */
.primary-navigation.nav-open {
  display: block;
}

.primary-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.primary-navigation a {
  text-decoration: none;
  color: #5ce1e6 !important;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  display: block;
  transition: all 0.2s ease;
}

.primary-navigation a:hover {
  color: #ffffff !important;
  background-color: rgba(0, 243, 255, 0.08);
  text-shadow: 0 0 10px #00f3ff, 0 0 20px rgba(0, 243, 255, 0.4);
}

/* --- Hamburger 'X' Morph Animation when Opened --- */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* ==============================================
   DESKTOP VIEWPORT (min-width: 768px)
   ============================================== */
@media (min-width: 768px) {
  /* Hide the hamburger button on desktop */
  .nav-toggle {
    display: none;
  }

  /* Reset navigation drawer back into the header flow */
  .primary-navigation {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    margin-left: auto; /* Pushes the navigation links to the far right */
  }

  /* If you prefer links centered instead of to the right, swap margin-left: auto with:
     margin-inline: auto;
  */

  .primary-navigation ul {
    flex-direction: row;
    gap: 2rem;
    text-align: left;
  }

  .primary-navigation a {
    font-size: 0.95rem;
  }
}

/* ==============================================
   SECTION HEADERS & CONTAINERS
   ============================================== */
.container {
  width: min(100% - 2.5rem, 75rem);
  margin-inline: auto;
}

.gallery-section,
.pricing-section {
  padding-block: 5rem;
}

/* Ensure sticky header doesn't cut off the pricing section on jump */
#pricing,
.pricing-section {
  scroll-margin-top: 5rem; /* ~80px clearance below your header */
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent, #00f7ff);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--clr-heading, #fff);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--clr-body-muted, #fff);
  line-height: 1.6;
}

.operator-name {
      font-family: 'JetBrains Mono', monospace;
      font-size: 1.35rem;
      font-weight: 700;
      color: #ffffff;
      margin: 0 0 0.5rem 0;
    }

    .operator-name a {
      color: inherit;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      transition: color 0.2s ease, text-shadow 0.2s ease;
    }

    .operator-name a:hover {
      color: #00f3ff;
      text-shadow: 0 0 12px rgba(0, 243, 255, 0.45);
    }

/* ==============================================
   GALLERY SHOWCASE GRID
   ============================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: var(--clr-surface, #ffffff);
  border: 1px solid var(--clr-border, #e2e8f0);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
}

.gallery-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.gallery-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.metric-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.gallery-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-heading, #0f172a);
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.9375rem;
  color: var(--clr-body-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.gallery-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border, #f1f5f9);
}

.tech-tag {
  font-size: 0.75rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* ==============================================
   PRICING 3D HOVER & FLIP CARDS
   ============================================== */
.pricing-matrix {
  display: grid;
  /* Auto-fit columns with 20rem minimum; clean row and column separation */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 2.5rem;
  align-items: stretch;
  margin-top: 2rem;
}

/* 1. Parent card container MUST have a fixed height so the absolute faces don't collapse */
.flip-card {
  perspective: 1200px;
  height: 28rem; /* Concrete height anchors the grid row so cards cannot overlap */
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Inner wrapper handles both the slight lift and 3D rotation */
.flip-card-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  border-radius: 1rem;
}

/* 3. Mobile & Universal Class Flip (Driven strictly by tap) */
.flip-card.is-flipped .flip-card-inner {
  transform: translateY(-6px) rotateY(180deg);
}

/* 4. Desktop-Only Hover (Only for real mouse pointers, never mobile touches) */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    transform: translateY(-6px) rotateY(180deg);
  }
}

/* 5. Front & Back faces locked strictly to parent boundaries */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
  padding: 2rem 1.5rem; /* Balanced horizontal padding gives the button breathing room */
  display: flex;
  flex-direction: column;
  align-items: stretch; /* Forces full-width child elements to center and span symmetrically */
  overflow: visible;
  box-sizing: border-box;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  line-height: 1.6;
}
/* Front Face Styling */
.flip-card-front {
  background: var(--clr-surface, #ffffff);
  border: 1px solid var(--clr-border, #e2e8f0);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transform: rotateY(0deg);
  color: #0f172a;
  text-align: center;
  position: relative;
}

.flip-card.featured .flip-card-front, .flip-card.featured .flip-card-back {
  border: 4px solid var(--clr-accent, #d9ff00);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15);
}

.recommended-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0070f3, #00d4ff);
  color: #030712;
  font-family: 'Silkscreen', monospace;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  z-index: 5;
}

.recommended-badge strong {
  font-weight: 700;
}

.flip-hint {
  font-size: 0.75rem;
  color: #0f172a;
  margin-top: auto; /* Pushes the hint to the bottom of the card */
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

/* Back Face Styling */
.flip-card-back {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #1e293b;
  transform: rotateY(180deg);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.25);
}

.back-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.spec-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.spec-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 0.75rem;
}

.btn-block {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--clr-accent, #3b82f6);
  color: #ffffff;
  transition: background 0.2s ease;
  margin-top: auto; /* keeps it pinned neatly to the bottom of the card */
}

.btn-block:hover {
  background: #2563eb;
}
/* ==============================================
   CLOSING CTA SECTION
   ============================================== */
/*.cta-section {
  padding-block: 1rem 6rem;
  background-color: var(--clr-surface, #ffffff);
  border-top: 1px solid var(--clr-border, #e2e8f0);
}*/

.cta-section, .metrics-section {
  background-color: rgba(5, 11, 20, 0.7); /* Deep dark blue-black with 70% opacity */
  backdrop-filter: blur(8px);             /* Blurs the circuits slightly underneath */
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-block: 5rem 1.5rem;
}

.cta-section h2 {
  color: #f8fafc;
}

.cta-section p {
  color: #94a3b8;
}*/

/* Replace .cta-section with your actual class name */
.cta-section {
  background: transparent; /* Lets the body circuit background show right through */
  padding: 5rem 1.5rem;
}

.cta-section h2 {
  color: #f8fafc; /* Crisp white for the pixel heading */
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.2); /* Optional subtle cyan glow */
}

.cta-section p {
  color: #94a3b8; /* Muted tech grey/cyan for high-legibility body text */
}

.cta-container {
  display: flex;
  justify-content: center;
}

.cta-content {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}

.cta-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--clr-heading, #0f172a);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-lead {
  font-size: 1.125rem;
  color: var(--clr-body-muted, #64748b);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* Button Row - Side-by-side on desktop, stacked on mobile */
.cta-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

/* Secondary Button Styling */
.btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==============================================
   SITE FOOTER
   ============================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding-block: 2rem;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-container {
    flex-direction: row;
    text-align: left;
  }
}

/* Mobile Stretch for CTA Buttons */
@media (max-width: 480px) {
  .cta-action-row {
    flex-direction: column;
    width: 100%;
  }

  .cta-btn {
    width: 100%;
  }
}
/* Mobile/Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner {
    transition: transform 0.01ms;
  }
}

/* ==============================================
   SHOWCASE CTA - CYBER GLOW PULSE BUTTON
   ============================================== */

/* Wrapper gives it proper breathing room between card and metrics */
.showcase-action-wrapper {
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-cyan-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background: rgba(14, 22, 34, 0.85); /* Dark terminal surface */
  border: 1.5px solid #00f3ff;
  border-radius: 9999px;
  color: #00f3ff !important;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.2), inset 0 0 10px rgba(0, 243, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

/* Arrow micro-interaction */
.btn-cyan-pulse .pulse-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* --- Hover Glow Pulse --- */
.btn-cyan-pulse:hover {
  background: #00f3ff;
  color: #080d14 !important; /* Inverts text to deep dark for high contrast */
  box-shadow: 
    0 0 20px rgba(0, 243, 255, 0.65),
    0 0 40px rgba(0, 243, 255, 0.35);
  transform: translateY(-2px);
}

.btn-cyan-pulse:hover .pulse-arrow {
  transform: translateX(4px);
}

/* Active click state */
.btn-cyan-pulse:active {
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.5);
}