/* CPEC Technologies LLC - Stylesheet */
:root {
  --bg-dark: #060a12;
  --bg-card: rgba(15, 23, 42, 0.80);
  --bg-card-hover: rgba(23, 35, 62, 0.94);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-cyan: #38bdf8;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  background-attachment: fixed;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 18, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-title span {
  color: var(--accent-amber);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

nav a:hover,
nav a.active {
  color: #ffffff;
  border-bottom-color: var(--accent-amber);
}

.nav-cta {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 6px;
}

.nav-cta:hover,
.nav-cta.active {
  background: var(--accent-amber);
  color: #060a12 !important;
}

/* Hero Section with Embedded Rocket Launch Banner */
.hero {
  position: relative;
  padding: 6rem 1.5rem 5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  background-color: #060a12;
  background-image:
    linear-gradient(90deg, rgba(6, 10, 18, 0.93) 0%, rgba(6, 10, 18, 0.76) 55%, rgba(6, 10, 18, 0.48) 100%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.35) 0%, rgba(6, 10, 18, 0.95) 100%),
    url('hero-launch.jpg');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.hero-subpage {
  padding: 4.25rem 1.5rem 3.5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.18;
  max-width: 850px;
  margin-bottom: 1.25rem;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero p {
  font-size: 1.12rem;
  color: #cbd5e1;
  max-width: 780px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent-amber);
  color: #060a12;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-amber-glow);
}

.btn-secondary {
  display: inline-block;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.95);
}

/* Main Content Containers */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

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

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.section-header p {
  color: var(--text-muted);
  max-width: 780px;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--bg-card-hover);
}

.card-accent {
  border-top: 3px solid var(--accent-amber);
}

.card-cyan {
  border-top: 3px solid var(--accent-cyan);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
  margin-top: 0.75rem;
}

.card ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-amber);
  font-weight: bold;
}

/* Highlight Banner */
.highlight-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}

.highlight-box h3 {
  color: var(--accent-amber);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* SVG Schematic Container */
.schematic-wrapper {
  background: rgba(10, 15, 28, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3.5rem;
  text-align: center;
}

.schematic-wrapper h3 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.schematic-wrapper p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.schematic-svg {
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Contact Form & Status Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.alert-success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #a7f3d0;
}

.alert-error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fecaca;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #e2e8f0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
}

.hp-field {
  display: none !important;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(4, 7, 14, 0.95);
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

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

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