/* ========================================================================
   DEVELOPER PARTNERS PAGE - "THE 90/10 REVOLUTION"
   ========================================================================

   Custom styles for the developer partners page using the existing
   design system with minimal custom additions.

   Uses:
   - .section-midnight for dark sections
   - .gradient-text for orange highlights
   - .glass-card for FAQ items
   - Standard button classes
   - Existing calculator patterns from home.css

   ======================================================================== */

/* ===== HERO SECTION (Dark with circuit board) ===== */
.dev-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: hsl(var(--color-midnight-navy));
  color: white;
}

.dev-hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/background_texture.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.dev-hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.1), transparent 60%);
}

.dev-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.dev-hero-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: hsl(var(--color-electric-cyan));
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.dev-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Use standard orange gradient from typography.css */

.dev-hero-subhead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.dev-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.dev-hero-visual {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.dev-hero-visual img {
  width: 100%;
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 180, 216, 0.2));
  animation: float-gentle 6s ease-in-out infinite;
}

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

.dev-hero-comparison {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Courier New', monospace;
  margin-top: 2rem;
}

/* ===== CALCULATOR SECTION (Reuses home.css patterns) ===== */
.dev-calculator-card {
  background: linear-gradient(135deg, rgba(0, 182, 216, 0.05) 0%, rgba(0, 45, 98, 0.05) 100%);
  border: 2px solid hsl(var(--color-border));
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.dev-calculator-inputs {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.dev-calculator-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dev-calculator-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--color-foreground));
}

.dev-calculator-slider-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Reuse slider styles from home.css pattern */
.dev-calculator-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: hsl(var(--color-border));
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.dev-calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: hsl(var(--color-electric-cyan));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  transition: transform 0.2s;
}

.dev-calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.dev-calculator-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: hsl(var(--color-electric-cyan));
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  transition: transform 0.2s;
}

.dev-calculator-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.dev-calculator-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--color-electric-cyan));
  min-width: 100px;
  text-align: right;
}

.dev-calculator-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: hsl(var(--color-electric-cyan) / 0.05);
  border: 2px solid hsl(var(--color-electric-cyan) / 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.dev-calculator-result {
  text-align: center;
}

.dev-calculator-result-label {
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dev-calculator-result-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--color-electric-cyan));
}

.dev-calculator-footnote {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  font-style: italic;
}

@media (max-width: 768px) {
  .dev-calculator-card {
    padding: 2rem 1.5rem;
  }

  .dev-calculator-output {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* ===== STACK CARDS (Uses feature-card pattern) ===== */
.dev-stack-card {
  /* Inherits from .feature-card in components.css */
  min-height: 320px;
}

.dev-stack-icon-wrapper {
  margin-bottom: 1.5rem;
}

.dev-stack-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, hsl(var(--color-deep-royal-blue)), hsl(var(--color-electric-cyan)));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.2);
}

.dev-stack-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--color-navy));
  margin-bottom: 1rem;
}

.dev-stack-description {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--color-muted-foreground));
}

.dev-infrastructure-visual {
  margin-top: 4rem;
  text-align: center;
}

.dev-infrastructure-visual img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== CODE WINDOW ===== */
.dev-dx-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.dev-code-window {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-code-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #2d2d2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-code-dots {
  display: flex;
  gap: 0.5rem;
}

.dev-code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dev-code-title {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.dev-code-content {
  padding: 1.5rem;
  overflow-x: auto;
}

.dev-code-content pre {
  margin: 0;
  background: transparent !important;
  padding: 0 !important;
}

.dev-code-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dev-dx-specs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dev-dx-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid hsl(var(--color-border));
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.dev-dx-spec-item:hover {
  border-color: hsl(var(--color-electric-cyan));
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
  transform: translateX(4px);
}

.dev-dx-spec-item svg {
  flex-shrink: 0;
  color: hsl(var(--color-electric-cyan));
  margin-top: 2px;
}

.dev-dx-spec-item span {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--color-charcoal));
}

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

/* ===== IDEAS GRID ===== */
.dev-ideas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

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

.dev-idea-card {
  /* Inherits card styling from components.css */
  background: white;
  border: 1px solid hsl(var(--color-border));
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.dev-idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: hsl(var(--color-electric-cyan) / 0.5);
}

.dev-idea-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--color-deep-royal-blue) / 0.1), hsl(var(--color-electric-cyan) / 0.1));
  border-radius: 1rem;
  color: hsl(var(--color-electric-cyan));
}

.dev-idea-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--color-navy));
  margin-bottom: 0.75rem;
}

.dev-idea-description {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--color-muted-foreground));
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .dev-hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .dev-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    width: 100%;
  }
}

/* ===== PRISM OVERRIDE FOR CODE BLOCKS ===== */
.dev-code-content pre[class*="language-"] {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: none !important;
}

.dev-code-content code[class*="language-"] {
  background: transparent !important;
  text-shadow: none !important;
}

/* ===== SPACE UTILITY (if not in layout.css) ===== */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}
