/*=============================================
=            ElecGraph Design System          =
=   Brand: ElecGraph | Owner: ElectroMertic   =
=============================================*/

:root {
  /* Brand Colors Derived from ElecGraph Logo */
  --primary: #0B2545;
  --primary-light: #133E6D;
  --primary-dark: #071727;
  --accent: #F38118;
  --accent-hover: #E06F0B;
  --accent-glow: rgba(243, 129, 24, 0.25);
  
  --electric-blue: #0078D7;
  --electric-cyan: #00B4D8;
  --electric-glow: rgba(0, 120, 215, 0.2);

  /* Status Colors */
  --pass: #10B981;
  --warning: #F59E0B;
  --fail: #EF4444;
  --info: #3B82F6;

  /* Neutrals & Surfaces */
  --bg-body: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-alt: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-dark: #0B192C;
  --bg-darker: #06101E;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-dark: rgba(11, 25, 44, 0.85);

  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  --border-light: #E2E8F0;
  --border-medium: #CBD5E1;
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Shadows & Transitions */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  --shadow-glow: 0 0 25px rgba(243, 129, 24, 0.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background-color: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--electric-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

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

.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/*=============================================
=            Typography                     =
=============================================*/
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-body);
}

.lead {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(243, 129, 24, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag-blue {
  color: var(--electric-blue);
  background: rgba(0, 120, 215, 0.1);
}

/*=============================================
=            Buttons & CTAs                 =
=============================================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.96rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-white);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(243, 129, 24, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 129, 24, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border-medium);
  background: var(--bg-body);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--bg-subtle);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-dark:hover {
  background-color: var(--primary-light);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-white {
  background-color: var(--text-white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: var(--bg-subtle);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--text-white);
  color: var(--text-white);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/*=============================================
=            Header & Navigation            =
=============================================*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

header.scrolled {
  height: 72px;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

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

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--primary);
  cursor: pointer;
  padding: 8px;
}

/*=============================================
=            Hero Section                   =
=============================================*/
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 120, 215, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(243, 129, 24, 0.06) 0%, transparent 45%),
              linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-body) 100%);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--electric-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 2rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-meta-item i {
  color: var(--pass);
}

/* Software Preview Mockup in Hero */
.hero-mockup {
  position: relative;
}

.mockup-window {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 120, 215, 0.15);
  overflow: hidden;
}

.mockup-header {
  background: #081321;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.mockup-title {
  color: #94A3B8;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 1.5rem;
  color: white;
}

.mockup-diagram {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.sld-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.sld-node {
  background: #112842;
  border: 1px solid var(--electric-blue);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.sld-node span {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
}

.sld-line {
  flex: 1;
  height: 2px;
  background: var(--electric-blue);
  position: relative;
}

.sld-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.mockup-waveform {
  background: #06101E;
  border-radius: var(--radius-sm);
  padding: 12px;
  height: 140px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--pass);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: var(--bg-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-light);
  animation: float 4s ease-in-out infinite;
}

.floating-badge-1 {
  top: -15px;
  right: -15px;
}

.floating-badge-2 {
  bottom: -20px;
  left: -20px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/*=============================================
=            Trust & Standards Bar          =
=============================================*/
.standards-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 1.8rem 0;
}

.standards-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.5rem;
}

.standard-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.standard-item i {
  font-size: 1.1rem;
  color: var(--primary-light);
}

/*=============================================
=            Section & Layout Grids         =
=============================================*/
section {
  padding: 5.5rem 0;
}

.bg-light { background-color: var(--bg-subtle); }
.bg-white { background-color: var(--bg-body); }
.bg-dark { background-color: var(--bg-dark); color: var(--text-white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--text-white); }
.bg-dark p { color: #CBD5E1; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

/*=============================================
=            Feature Cards                  =
=============================================*/
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--electric-blue);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(0, 120, 215, 0.08);
  color: var(--electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--accent);
  color: var(--text-white);
  transform: scale(1.05);
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--electric-blue);
}

.card-link:hover {
  color: var(--accent);
  gap: 10px;
}

/* Dark Card Variant */
.card-dark {
  background: #0E2038;
  border-color: rgba(255, 255, 255, 0.08);
}

.card-dark .card-title {
  color: var(--text-white);
}

.card-dark .card-text {
  color: #94A3B8;
}

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

/*=============================================
=      Interactive Module Tabs              =
=============================================*/
.module-tabs-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.module-nav-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.module-tab-btn {
  flex: 1;
  padding: 1.2rem 1.5rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.module-tab-btn i {
  font-size: 1.1rem;
}

.module-tab-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.module-tab-btn.active {
  color: var(--accent);
  background: var(--bg-card);
  border-bottom-color: var(--accent);
}

.module-tab-content {
  padding: 2.5rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/*=============================================
=     Interactive Waveform Playground       =
=============================================*/
.playground-container {
  background: var(--bg-darker);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  color: var(--text-white);
}

.playground-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: space-between;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 0.82rem;
  color: #94A3B8;
  font-weight: 500;
}

.select-custom {
  background: #0E2038;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.85rem;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  background: #030812;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 120, 215, 0.2);
  overflow: hidden;
}

#waveformCanvas {
  width: 100%;
  height: 100%;
}

.playground-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.metric-box {
  background: #0E2038;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.metric-title {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--electric-cyan);
}

/*=============================================
=            Workflow Timeline / Steps      =
=============================================*/
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.workflow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  position: relative;
  transition: var(--transition);
}

.workflow-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.workflow-step:hover .step-num {
  background: var(--accent);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/*=============================================
=            Download & Lead Capture        =
=============================================*/
.download-card {
  background: linear-gradient(135deg, var(--primary) 0%, #081B33 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3.5rem;
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.download-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 129, 24, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.download-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.download-form .form-group {
  margin-bottom: 1.2rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-body);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 129, 24, 0.15);
}

/*=============================================
=            FAQ Accordion                  =
=============================================*/
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  user-select: none;
}

.faq-question i {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-answer {
  padding: 0 1.75rem 1.5rem;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent);
}

/*=============================================
=            Page Header (Subpages)         =
=============================================*/
.subpage-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.subpage-header h1 {
  color: var(--text-white);
  margin-bottom: 1rem;
}

.subpage-header p {
  color: #CBD5E1;
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.2rem;
}

/*=============================================
=            Footer                         =
=============================================*/
footer {
  background: var(--bg-darker);
  color: #94A3B8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: #94A3B8;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.93rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: #94A3B8;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.social-links-row {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-btn:hover {
  background: var(--accent);
  color: var(--text-white);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-ownership {
  font-weight: 500;
  color: #CBD5E1;
}

/*=============================================
=            Responsive Styles              =
=============================================*/
@media (max-width: 1024px) {
  .hero-grid, .download-grid, .grid-2 {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .grid-3, .grid-4, .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  body { padding-top: 70px; }
  header { height: 70px; }

  .mobile-toggle { display: block; }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-card);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-actions {
    display: none;
  }

  .grid-3, .grid-4, .workflow-grid, .playground-metrics {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 2.5rem 1.5rem;
  }

  .floating-badge {
    display: none;
  }
}
