/* ==========================================================================
   TEDDOPS.COM — CORE DESIGN SYSTEM & HIGH-LEVEL STYLING
   Brand: Teddops | Autonomous Software & Scalable Web Systems
   Zero-cost static hosting on Cloudflare Pages ($0/mo)
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-primary: #070b14;
  --bg-secondary: #0b1220;
  --bg-surface: #10192e;
  --bg-surface-elevated: #16223d;
  --bg-glass: rgba(16, 25, 46, 0.7);
  --bg-glass-strong: rgba(11, 18, 32, 0.88);

  /* Teddops Brand Accents */
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-glow: rgba(37, 99, 235, 0.35);
  
  --brand-cyan: #06b6d4;
  --brand-cyan-glow: rgba(6, 182, 212, 0.4);
  
  --brand-brown: #7b4b27;
  --brand-amber: #f59e0b;
  --brand-amber-glow: rgba(245, 158, 11, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.35);
  --border-card: rgba(255, 255, 255, 0.1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets & Global Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(123, 75, 39, 0.06) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, -1px -1px, -1px -1px;
}

::selection {
  background-color: var(--brand-blue);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 108px;
  padding-bottom: 108px;
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* Badges & Section Headers */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-cyan);
  margin-bottom: 18px;
}

.section-badge.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.section-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #ffffff;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.68;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fef3c7 20%, #f59e0b 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px var(--brand-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline-cyan {
  background: rgba(6, 182, 212, 0.08);
  color: #38bdf8;
  border-color: rgba(6, 182, 212, 0.35);
}
.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--brand-cyan);
  box-shadow: 0 0 18px var(--brand-cyan-glow);
  transform: translateY(-2px);
}

/* Glass Card */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.brand-mascot-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.brand-text {
  display: flex;
  align-items: center;
}
.brand-text .tedd {
  color: #bfa084;
}
.brand-text .ops {
  color: #3b82f6;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-blue));
  border-radius: var(--radius-full);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edge-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.76rem;
  font-weight: 600;
  color: #34d399;
}
.edge-status-pill .pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 992px) {
  .nav-links, .edge-status-pill {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  gap: 20px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}
.mobile-nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 170px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

.hero-glow-orb {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
}
.glow-orb-1 {
  top: 5%;
  left: -10%;
  background: #2563eb;
}
.glow-orb-2 {
  top: 20%;
  right: -8%;
  background: #06b6d4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

.hero-headline {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.68;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-metrics-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}
.metric-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.metric-num span {
  color: var(--brand-cyan);
}
.metric-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   LIVE TELEMETRY / TERMINAL CONSOLE WIDGET
   ========================================================================== */
.terminal-window {
  background: #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(37, 99, 235, 0.18);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

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

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #38bdf8;
  font-size: 0.74rem;
}

.terminal-tabs {
  display: flex;
  background: #0d1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 12px 0 12px;
  gap: 8px;
  overflow-x: auto;
}

.terminal-tab-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.terminal-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}
.terminal-tab-btn.active {
  color: #ffffff;
  background: #0a0f1d;
  border-top: 2px solid var(--brand-cyan);
}

.terminal-body {
  padding: 20px;
  min-height: 270px;
  max-height: 320px;
  overflow-y: auto;
  line-height: 1.65;
}

.terminal-line {
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  animation: fadeIn 0.3s ease-out;
}

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

.t-time { color: var(--text-dim); font-size: 0.76rem; }
.t-agent { color: var(--brand-cyan); font-weight: 600; }
.t-info { color: var(--text-muted); }
.t-success { color: #34d399; font-weight: 600; }
.t-warning { color: #fbbf24; }
.t-action { color: #93c5fd; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: var(--brand-cyan);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.terminal-footer {
  background: #0c1221;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ==========================================================================
   INDUSTRY VERTICAL SOLUTIONS MATRIX
   ========================================================================== */
.vertical-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.v-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.v-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.v-tab-btn.active {
  background: rgba(37, 99, 235, 0.18);
  border-color: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 0 16px var(--brand-blue-glow);
}

.v-tab-content-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.v-tab-content-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 992px) {
  .v-tab-content-panel.active {
    grid-template-columns: 1fr;
  }
}

.v-panel-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}
.v-panel-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.v-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.v-checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.96rem;
}
.v-checklist-item svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.v-blueprint-preview {
  background: #0d1527;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.v-metric-highlight {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.v-stat {
  display: flex;
  flex-direction: column;
}
.v-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-cyan);
}
.v-stat-lbl {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   CORE CAPABILITIES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 34px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(6, 182, 212, 0.15);
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  margin-bottom: 22px;
}
.service-icon-box.amber {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.service-icon-box.cyan {
  background: rgba(6, 182, 212, 0.14);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--brand-cyan);
}

.service-title {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  font-size: 0.74rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   PHILOSOPHY: TRADITIONAL DEV VS TEDDOPS AUTOPILOT
   ========================================================================== */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

@media (max-width: 860px) {
  .comparison-container {
    grid-template-columns: 1fr;
  }
}

.comparison-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  position: relative;
}

.comparison-card.traditional {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-card.teddops {
  background: rgba(16, 25, 46, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.12);
}

.comparison-header {
  margin-bottom: 24px;
}
.comp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.traditional .comp-badge {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.teddops .comp-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--brand-cyan);
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  line-height: 1.5;
}
.comp-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.traditional .comp-item {
  color: #94a3b8;
}
.teddops .comp-item {
  color: #f8fafc;
}

/* ==========================================================================
   INTERACTIVE ROI & AUTOMATION SAVINGS CALCULATOR
   ========================================================================== */
.calc-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 992px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 36px;
  }
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.calc-val-display {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
}

.custom-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: var(--radius-full);
  background: #1e293b;
  outline: none;
  transition: background var(--transition-fast);
}
.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-cyan);
  cursor: pointer;
  box-shadow: 0 0 12px var(--brand-cyan-glow);
  transition: transform var(--transition-fast);
}
.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results-card {
  background: #090e1b;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.calc-result-box {
  display: flex;
  flex-direction: column;
}
.calc-result-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
  margin-bottom: 6px;
}
.calc-result-big {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.calc-result-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.calc-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   ARCHITECTURE BLUEPRINTS / CASE STUDIES
   ========================================================================== */
.blueprint-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.bp-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
}
.bp-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.bp-industry-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-amber);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.bp-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.bp-summary {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.bp-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px;
  background: #090e1c;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.bp-m-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #34d399;
}
.bp-m-lbl {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   ENGINEERING PROCESS (4 STEPS)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.process-step {
  padding: 30px 24px;
  background: rgba(16, 25, 46, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
}

.step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SUBDOMAINS ECOSYSTEM BANNER
   ========================================================================== */
.subdomain-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-xl);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.subdomain-text h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.subdomain-text p {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 0.98rem;
}

.subdomain-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sub-chip {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-family: var(--font-mono);
  color: #93c5fd;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sub-chip .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
}

/* ==========================================================================
   CONTACT ENGINE & CONSULTATION HUB
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: flex-start;
}

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

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.email-copy-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #080d19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-top: 14px;
}

.email-address-text {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  color: #38bdf8;
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}
.copy-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 24px;
  }
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #090e1b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: #ffffff;
  font-size: 0.94rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 14px var(--brand-cyan-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status-alert {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-status-alert.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.form-status-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link-item a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}
.footer-link-item a:hover {
  color: #ffffff;
}

.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-cf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}

/* ==========================================================================
   MODALS (Privacy, Terms, Subdomains)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #0d1527;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}
.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition-fast);
}
.modal-close-btn:hover {
  color: #ffffff;
}

.modal-content-area {
  padding: 28px;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.modal-content-area h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-top: 18px;
  margin-bottom: 8px;
}
.modal-content-area p {
  margin-bottom: 14px;
}


/* ==========================================================================
   LEADERSHIP ("FACES BEHIND TEDDOPS") & PROJECTS SHOWCASE
   High-performance GPU composited styles, responsive grid, glassmorphism
   ========================================================================== */

/* Project Filters */
.project-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 36px 0 44px;
}
.project-filter-btn {
  background: rgba(16, 25, 46, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.project-filter-btn:hover {
  color: #fff;
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.1);
}
.project-filter-btn.active {
  background: linear-gradient(135deg, var(--brand-blue), #1d4ed8);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 18px var(--brand-blue-glow);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}
@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.3s ease;
  will-change: transform, opacity;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(6, 182, 212, 0.15);
}
.project-card.is-hidden {
  display: none;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 12px;
}
.project-lead-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.project-lead-badge.joint {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border-color: rgba(6, 182, 212, 0.3);
}
.project-lead-badge.maryam {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.project-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
}
.project-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-impact-box {
  background: rgba(7, 11, 20, 0.65);
  border-left: 3px solid var(--brand-blue);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.project-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.project-stack-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.project-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.15);
  color: #38bdf8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all var(--transition-fast);
}
.project-btn-primary:hover {
  background: var(--brand-blue);
  color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 4px 14px var(--brand-blue-glow);
}

/* Leadership ("Faces Behind Teddops") */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 36px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(11, 18, 32, 0.95) 100%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  will-change: transform;
}
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-amber));
  opacity: 0.8;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 99, 235, 0.15);
}

.team-avatar-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.35);
  position: relative;
}
.team-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111827;
  display: block;
}

.team-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.team-role-pill.ceo {
  background: rgba(6, 182, 212, 0.14);
  color: var(--brand-cyan);
  border: 1px solid rgba(6, 182, 212, 0.32);
}
.team-role-pill.cofounder {
  background: rgba(37, 99, 235, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.32);
}

.team-name {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.team-title-sub {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-family: var(--font-mono);
  margin-bottom: 18px;
}
.team-bio {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
}

.team-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 26px;
}
.team-comp-chip {
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.team-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.team-btn-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.team-btn-email:hover {
  background: var(--brand-blue-hover);
  box-shadow: 0 4px 16px var(--brand-blue-glow);
}
.team-btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}
.team-btn-linkedin:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* GPU Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
