@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --bg:            hsl(220, 20%, 6%);
  --fg:            hsl(210, 20%, 95%);
  --card:          hsl(220, 18%, 10%);
  --primary:       hsl(200, 85%, 50%);
  --primary-fg:    hsl(220, 20%, 6%);
  --secondary:     hsl(210, 10%, 25%);
  --muted:         hsl(220, 15%, 15%);
  --muted-fg:      hsl(210, 15%, 60%);
  --accent:        hsl(145, 60%, 40%);
  --border:        hsl(220, 15%, 20%);
  --destructive:   hsl(0, 70%, 50%);
  --input:         hsl(220, 15%, 18%);

  --font-display:  'Orbitron', sans-serif;
  --font-heading:  'Rajdhani', sans-serif;
  --font-body:     'Inter', sans-serif;

  --gradient-primary: linear-gradient(135deg, hsl(200, 85%, 50%) 0%, hsl(200, 100%, 60%) 100%);
  --gradient-card:    linear-gradient(180deg, hsl(220, 18%, 12%) 0%, hsl(220, 20%, 8%) 100%);
  --shadow-tactical:  0 4px 30px -5px hsla(200, 80%, 50%, 0.15);
  --shadow-card:      0 8px 40px -10px hsla(0, 0%, 0%, 0.6);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

/* ===========================
   TYPOGRAPHY HELPERS
   =========================== */
.font-display { font-family: var(--font-display); }
.font-heading  { font-family: var(--font-heading); }

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary   { color: var(--primary); }
.text-muted     { color: var(--muted-fg); }
.text-accent    { color: var(--accent); }
.text-fg        { color: var(--fg); }

/* ===========================
   LAYOUT
   =========================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

main {
  padding-top: 7rem; /* offset for fixed header */
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

/* ===========================
   TACTICAL GRID OVERLAY
   =========================== */
@keyframes grid-flow {
  0%   { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes grid-flow-dense {
  0%   { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}

@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes fade-in-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.tactical-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, hsla(200, 30%, 20%, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(200, 30%, 20%, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  animation: grid-flow 20s linear infinite;
}

.tactical-grid-dense {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, hsla(200, 30%, 20%, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(200, 30%, 20%, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 1;
  animation: grid-flow-dense 20s linear infinite;
}

/* Contour light ambience overlay (matches React TacticalGrid contour-overlay) */
.contour-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 70%, hsla(200, 85%, 50%, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, hsla(145, 55%, 45%, 0.03) 0%, transparent 50%);
  z-index: 1;
}

/* Contour overlay on tactical grid via pseudo-element */
.tactical-grid::after,
.tactical-grid-dense::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 70%, hsla(200, 85%, 50%, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, hsla(145, 55%, 45%, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ===========================
   CARD TACTICAL
   =========================== */
.card-tactical {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-tactical::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsla(200, 85%, 50%, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.card-tactical:hover {
  border-color: hsla(200, 85%, 50%, 0.5);
  box-shadow: var(--shadow-tactical);
}

.card-tactical:hover::before {
  opacity: 1;
}

/* ===========================
   HEADER
   =========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsla(220, 20%, 6%, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background: hsla(220, 20%, 4%, 0.98);
  box-shadow: 0 4px 24px hsla(0, 0%, 0%, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 7rem;
}

.header-logo img {
  height: 6rem;
  width: auto;
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

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

.desktop-nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--muted-fg);
  transition: color 0.2s;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  background: var(--primary);
  width: 0;
  transition: width 0.2s;
}

.desktop-nav a:hover         { color: var(--fg); }
.desktop-nav a:hover::after  { width: 50%; }
.desktop-nav a.active        { color: var(--primary); }
.desktop-nav a.active::after { width: 100%; }

/* Header CTA */
.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #16a34a;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  transition: background 0.2s, box-shadow 0.2s;
}

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

.header-cta:hover {
  background: #15803d;
  box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.25);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
}

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

/* Mobile nav */
.mobile-nav {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

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

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

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  color: var(--muted-fg);
  transition: color 0.2s, background 0.2s;
}

.mobile-nav a:hover {
  color: var(--fg);
  background: var(--muted);
}

.mobile-nav a.active {
  color: var(--primary);
  background: hsla(200, 85%, 50%, 0.1);
}

.mobile-nav-cta {
  display: block;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #16a34a;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  text-align: center;
  transition: background 0.2s;
}

.mobile-nav-cta:hover { background: #15803d; }

/* ===========================
   BUTTONS
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-primary svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-primary:hover {
  background: hsla(200, 85%, 44%, 1);
  box-shadow: 0 10px 30px -5px hsla(200, 80%, 50%, 0.35);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid hsla(210, 20%, 95%, 0.3);
  color: var(--fg);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  background: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-outline svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-outline:hover {
  background: hsla(210, 20%, 95%, 0.1);
  border-color: hsla(210, 20%, 95%, 0.5);
}

.btn-outline:hover svg {
  transform: translateX(4px);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-green svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.btn-green:hover {
  background: hsla(200, 85%, 44%, 1);
  box-shadow: 0 10px 30px -5px hsla(200, 80%, 50%, 0.35);
}

.btn-green:hover svg {
  transform: translateX(4px);
}

/* ===========================
   SECTIONS
   =========================== */
.section-bg   { background: var(--bg); }
.section-card { background: var(--card); }

/* ===========================
   HERO SECTIONS
   =========================== */
.hero-image-wrap {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

/* Scanline sweep animation on hero images */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, hsla(200, 85%, 50%, 0.25), transparent);
  animation: scanline 10s linear infinite;
  z-index: 5;
  pointer-events: none;
}

@media (min-width: 768px)  { .hero-image-wrap { height: 60vh; } }
@media (min-width: 1024px) { .hero-image-wrap { height: 70vh; } }

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(220,20%,6%,0.2), transparent, var(--bg));
}

.hero-image-text {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  animation: fade-in-up 0.7s ease-out 0.2s both;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--card);
  border-top: 1px solid var(--border);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

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

.footer-brand-tagline {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(to right, hsl(200, 85%, 50%) 0%, hsl(145, 60%, 40%) 50%, hsl(200, 85%, 50%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-fg);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.footer-contact-link:hover { color: var(--primary); }

.footer-contact-link svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 1rem;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-fg);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-fg);
}

/* ===========================
   ACCORDION
   =========================== */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border-radius: 0.5rem;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.accordion-item:hover {
  border-color: hsla(200, 85%, 50%, 0.5);
  box-shadow: var(--shadow-tactical);
}

.accordion-trigger {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--fg);
  text-align: left;
  gap: 1rem;
}

.accordion-trigger-content { flex: 1; }

.accordion-trigger h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}

.accordion-trigger-content {
  text-align: left;
  transition: transform 0.3s ease;
}

.accordion-item:hover .accordion-trigger-content,
.accordion-item.open  .accordion-trigger-content {
  transform: translateX(6px);
}

.accordion-item {
  border-radius: 0.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item:hover {
  border-color: hsla(200, 85%, 50%, 0.4) !important;
  box-shadow: 0 4px 20px -5px hsla(200, 80%, 50%, 0.1);
}
  color: var(--primary);
}

.accordion-trigger p {
  font-size: 0.875rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 500;
}

.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--muted-fg);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.open .accordion-content {
  max-height: 2000px;
}

.accordion-content-inner {
  padding: 0 1.5rem 1.5rem;
  animation: fade-in-up 0.35s ease-out both;
}

/* ===========================
   CHECK LISTS
   =========================== */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-fg);
  font-size: 1rem;
  line-height: 1.5;
}

.check-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 3px;
  stroke: var(--accent);
}

.check-icon-primary {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 3px;
  stroke: var(--primary);
}

/* ===========================
   FEATURE BOX
   =========================== */
.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.feature-box-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 2px;
  stroke: var(--primary);
}

/* ===========================
   ICON CIRCLE
   =========================== */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(200, 85%, 50%, 0.1);
  border: 1px solid hsla(200, 85%, 50%, 0.2);
  flex-shrink: 0;
  transition: background 0.2s;
}

.icon-circle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

.icon-circle-lg {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(200, 85%, 50%, 0.1);
  border: 1px solid hsla(200, 85%, 50%, 0.3);
  flex-shrink: 0;
}

.icon-circle-lg svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--primary);
}

.icon-circle-xl {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(200, 85%, 50%, 0.1);
  border: 2px solid hsla(200, 85%, 50%, 0.3);
  margin: 0 auto 2rem;
}

.icon-circle-xl svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--primary);
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-fg);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

/* ===========================
   ANCHOR NAV (Solutions page)
   =========================== */
.anchor-nav {
  position: sticky;
  top: 7rem;
  z-index: 40;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.anchor-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
}

.anchor-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted-fg);
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.anchor-nav a:hover,
.anchor-nav a.active {
  color: var(--primary);
  background: hsla(200, 85%, 50%, 0.1);
}

.anchor-nav svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ===========================
   FORM
   =========================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg);
}

.required { color: var(--destructive); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(200, 85%, 50%, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted-fg);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%237a8b9a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: hsl(220, 20%, 8%);
  color: var(--fg);
}

.form-input.has-error,
.form-textarea.has-error,
.form-select.has-error {
  border-color: var(--destructive);
}

.form-error {
  color: var(--destructive);
  font-size: 0.875rem;
}

.form-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.form-btn:hover {
  background: hsla(200, 85%, 44%, 1);
  box-shadow: 0 10px 30px -5px hsla(200, 80%, 50%, 0.35);
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success message */
.form-success {
  display: none;
  padding: 1.5rem;
  background: hsla(145, 60%, 40%, 0.1);
  border: 1px solid hsla(145, 60%, 40%, 0.3);
  border-radius: 0.5rem;
  text-align: center;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.form-success.visible { display: block; }

/* ===========================
   CONTACT INFO CARDS
   =========================== */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-card svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--muted-fg);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.contact-info-card a:hover { color: var(--primary); }

/* ===========================
   BADGE TAGS
   =========================== */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.badge {
  padding: 0.5rem 1.25rem;
  background: hsla(200, 85%, 50%, 0.1);
  border: 1px solid hsla(200, 85%, 50%, 0.3);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

/* ===========================
   IMAGE CARD / ROUNDED FRAME
   =========================== */
.img-frame {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(220,20%,6%,0.4), transparent);
}

/* Decorative corner elements */
.decor-corner-tr,
.decor-corner-bl {
  position: absolute;
  border: 1px solid hsla(200, 85%, 50%, 0.2);
  border-radius: 0.5rem;
  pointer-events: none;
}

.decor-corner-tr {
  top: -1rem;
  right: -1rem;
  width: 6rem;
  height: 6rem;
}

.decor-corner-bl {
  bottom: -1rem;
  left: -1rem;
  width: 8rem;
  height: 8rem;
  border-color: hsla(145, 60%, 40%, 0.2);
}

/* ===========================
   SCROLL TO TOP OFFSET for anchors
   =========================== */
[id] {
  scroll-margin-top: 10rem;
}

/* ===========================
   FADE-IN ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.fade-left {
  transform: translateX(-24px);
}

.fade-in.fade-right {
  transform: translateX(24px);
}

.fade-in.scale-in {
  transform: scale(0.9);
}

.fade-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Manifesto cycling words */
#manifesto-single {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
#manifesto-single.visible {
  opacity: 1;
  transform: translateY(0);
}
#manifesto-all {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#manifesto-all.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }
.delay-5 { transition-delay: 0.75s; }

/* ===========================
   UTILITIES
   =========================== */
.text-center { text-align: center; }
.text-left   { text-align: left; }

.py-section      { padding-top: 5rem;  padding-bottom: 5rem; }
.py-section-sm   { padding-top: 3rem;  padding-bottom: 3rem; }
.py-section-lg   { padding-top: 7rem;  padding-bottom: 7rem; }
.py-section-hero { padding-top: 8rem;  padding-bottom: 8rem; }

@media (min-width: 1024px) {
  .py-section    { padding-top: 6.25rem; padding-bottom: 6.25rem; }
  .py-section-lg { padding-top: 8.75rem; padding-bottom: 8.75rem; }
  .py-section-hero { padding-top: 10rem; padding-bottom: 10rem; }
}

.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }

.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.max-w-2xl  { max-width: 42rem;  }
.max-w-3xl  { max-width: 48rem;  }
.max-w-4xl  { max-width: 56rem;  }
.max-w-5xl  { max-width: 64rem;  }

.w-full { width: 100%; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.border-t  { border-top: 1px solid var(--border); }
.border-l  { border-left: 1px solid var(--border); }
.border-l-primary { border-left: 2px solid hsla(200, 85%, 50%, 0.3); }

.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-12 { padding: 3rem; }
.pl-4 { padding-left: 1rem; }

.text-sm  { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

@media (min-width: 768px) {
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
  .lg\:text-4xl { font-size: 2.25rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-6xl { font-size: 3.75rem; }
  .lg\:text-7xl { font-size: 4.5rem; }
}

.font-bold     { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium   { font-weight: 500; }

.leading-relaxed { line-height: 1.7; }
.leading-tight   { line-height: 1.2; }
.tracking-wide   { letter-spacing: 0.05em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Mobile order helpers */
@media (max-width: 1023px) {
  .order-first-mobile { order: -1; }
  .order-last-mobile  { order: 1;  }
}

/* Desktop order/gap helpers */
@media (min-width: 1024px) {
  .lg-order-1 { order: 1; }
  .lg-order-2 { order: 2; }
  .lg-gap-5   { gap: 5rem; }
  .py-section-sm { padding-top: 4rem; padding-bottom: 4rem; }
}

/* ===========================
   CONTACT FORM
   =========================== */
.contact-form {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 0;
}

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

.btn-primary-full {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}

.btn-primary-full:hover {
  background: hsla(200, 85%, 44%, 1);
  box-shadow: 0 10px 30px -5px hsla(200, 80%, 50%, 0.35);
}

.btn-primary-full:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-info-link {
  color: var(--fg);
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-info-link:hover { color: var(--primary); }

.form-success-msg {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: hsla(145, 60%, 40%, 0.1);
  border: 1px solid hsla(145, 60%, 40%, 0.3);
  border-radius: 0.5rem;
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
}

.form-error-msg {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: hsla(0, 70%, 50%, 0.1);
  border: 1px solid hsla(0, 70%, 50%, 0.3);
  border-radius: 0.5rem;
  color: hsl(0, 70%, 65%);
  font-size: 1rem;
  text-align: center;
}

.form-error-msg a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===========================
   CAREERS
   =========================== */
.career-domain-card {
  padding: 1.75rem;
}

.career-domain-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(200, 85%, 50%, 0.12);
  border: 1px solid hsla(200, 85%, 50%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.career-domain-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

/* CARD ICON WRAP */
.card-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(200, 85%, 50%, 0.12);
  border: 1px solid hsla(200, 85%, 50%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

/* ===========================
   CLIENT CARDS
   =========================== */
.client-card {
  padding: 2rem;
}

.client-icon-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsla(200, 85%, 50%, 0.1);
  border: 2px solid hsla(200, 85%, 50%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.client-icon-wrap svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--primary);
}

.client-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-top: 1.25rem;
}

.client-tags li {
  padding: 0.25rem 0.75rem;
  background: hsla(200, 85%, 50%, 0.08);
  border: 1px solid hsla(200, 85%, 50%, 0.2);
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
}

/* ===========================
   ENGAGEMENT PAGE
   =========================== */
.section-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsla(200, 85%, 50%, 0.12);
  border: 1px solid hsla(200, 85%, 50%, 0.3);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.step-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: hsla(200, 85%, 50%, 0.12);
  border: 1px solid hsla(200, 85%, 50%, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon-wrap svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
}

/* ===========================
   404 PAGE
   =========================== */
.not-found-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

/* ===========================
   404 PAGE
   =========================== */
.not-found-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 7rem);
  text-align: center;
  padding: 2rem;
}

.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.5rem;
}
