/*
  Shared site styling.
  Colors, layout, nav, cards, buttons, and responsive rules.
*/
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  /* Base background colors: dark navy for the page and deeper navy for layered depth. */
  --bg: #090B14;
  --bg-deep: #120B1F;

  /* Accent colors: purple for glow/focus and cyan for action highlights. */
  --glow: #7B2CBF;
  --container: #121825CC;
  --panel: #181E2EE6;
  --text: #EFF3FF;
  --muted: #CFD7F3;
  --border: #FFFFFF1F;
  --cta: #00F0FF;
  --cta-dark: #00C8D9;
  --shadow: #7B2CBF8C;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  /* Dark layered gradients create the neon tech look with purple glow and cyan highlights. */
  background:
    radial-gradient(circle at top left, #7B2CBF61, #00000000 28%),
    radial-gradient(circle at bottom right, #00F0FF1F, #00000000 26%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  /* Soft purple glow behind the page for atmosphere without blocking content. */
  background: radial-gradient(circle at 50% 30%, #7B2CBF33, #00000000 35%);
  filter: blur(30px);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
}

p,
li,
a,
button,
input,
textarea,
select {
  font-family: 'Inter', sans-serif;
}

code,
.price,
.accent,
.badge,
.tag {
  font-family: 'Fira Code', monospace;
}

/* Header and nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  /* Dark translucent header keeps nav readable while preserving the background glow. */
  background: #080A12B3;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #10141EB3;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 10px 30px #00000040;
}

.logo {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.3rem;
  text-shadow: 0 0 20px #00F0FF59;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--cta);
  text-shadow: 0 0 12px #00F0FFB3;
}

/* Pricing card layout */
.card-row,
.pricing-container {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  align-items: flex-start;
}

.pricing-container {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 4rem;
  min-height: 420px;
}

.card,
.pricing-container,
main {
  background: var(--container);
  color: var(--text);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1rem 0.9rem;
  flex: 1 1 170px;
  width: 100%;
  max-width: 250px;
  height: 260px;
  overflow: hidden;
  /* Dark card surfaces keep content readable against the background while staying subtle. */
  background: linear-gradient(180deg, #141924F5, #0E121CE8);
  box-shadow: 0 8px 30px #00000038, 0 0 0 1px #00F0FF14;
  transition: height 0.35s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, overflow 0.25s ease;
  z-index: 1;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #00F0FF80 transparent;
}

.card::-webkit-scrollbar {
  width: 8px;
}

.card::-webkit-scrollbar-thumb {
  background: #00F0FF66;
  border-radius: 999px;
}

.card:hover,
.card:focus-within {
  height: 430px;
  overflow-y: auto;
  z-index: 12;
  border-color: #00F0FF85;
  box-shadow: 0 18px 40px #7B2CBF73, 0 0 24px #00F0FF38;
}

.card h3,
.card h4 {
  color: var(--text);
  font-size: 1.06rem;
  margin-top: 0;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.9rem;
}

.card p {
  margin-top: 0;
}

.card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease 0.15s, transform 0.25s ease 0.15s;
  margin-bottom: 0.5rem;
}

.card:hover .btn,
.card:focus-within .btn {
  opacity: 1;
  transform: translateY(0);
}

.price {
  color: var(--cta);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0.8rem 0;
  text-shadow: 0 0 10px #00F0FF99;
}

.btn {
  /* Cyan button/CTA color highlights the primary actions and stands out against the dark layout. */
  background: linear-gradient(135deg, var(--cta), #6EE7FF);
  color: #07141A;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 18px #00F0FF80;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 24px #00F0FFBF;
  filter: brightness(1.06);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

button,
input,
textarea,
select {
  font-family: 'Inter', sans-serif;
}

/* Mobile layout */
@media (max-width: 700px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pricing-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .card {
    min-height: 0;
    max-width: 100%;
  }
}
