/* ===================================
   AIFORTLABS - CSS PRINCIPAL
   =================================== */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a80;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-dark: #4f46e5;
  --gradient-start: #6366f1;
  --gradient-end: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #2a2a3e;
  --shadow: rgba(0, 0, 0, 0.3);
  --glow: rgba(99, 102, 241, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 4px 30px var(--shadow);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo {
  font-size: 1.8rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

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

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  box-shadow: 0 4px 20px var(--glow);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

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

/* ===================================
   HERO VISUAL (Server Diagram)
   =================================== */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.server-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.server-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 10px 40px var(--shadow);
}

.server-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-weight: 600;
}

.server-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}

.server-status.online {
  background: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  animation: pulse 2s infinite;
}

.server-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.server-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.9rem;
}

.server-icon {
  font-size: 1.2rem;
}

.server-indicator {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.server-indicator.active {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.connection-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.conn-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  opacity: 0.5;
}

.cloud-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--danger);
  font-weight: 600;
}

.cloud-icon {
  font-size: 1.5rem;
}

.cloud-status {
  margin-left: auto;
  font-size: 1.2rem;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 120px;
}

/* ===================================
   SECTIONS COMMUNES
   =================================== */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Rotating title */
#rotatingTitle,
#rotatingSubtitle {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#rotatingTitle {
  min-height: 1.1em;
}

.rotating-title {
  min-height: 1.1em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.rotating-title span {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fade-out {
  opacity: 0 !important;
  transform: translateY(10px);
}

.rotating-subtitle {
  transition: opacity 0.6s ease;
}

.rotating-subtitle.fade-out {
  opacity: 0;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
  padding: 80px 0;
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ===================================
   AVANTAGES / COMPARISON
   =================================== */

.advantages {
  padding: 80px 0;
}

.comparison {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--bg-secondary);
  padding: 16px 24px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:hover {
  background: var(--bg-card-hover);
}

.comparison-col {
  display: flex;
  align-items: center;
}

.criterion-col {
  color: var(--text-secondary);
  font-weight: 500;
}

.cloud-col {
  color: var(--text-muted);
}

.local-col {
  color: var(--success);
  font-weight: 600;
}

.local-col.highlight {
  color: var(--success);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* ===================================
   USE CASES
   =================================== */

.use-cases {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.use-case-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.use-case-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.use-case-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.use-case-metric {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================
   DEMO SECTION
   =================================== */

.demo-section {
  padding: 80px 0;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.demo-text .section-tag {
  margin-bottom: 16px;
}

.demo-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.demo-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.demo-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-feature strong {
  display: block;
  margin-bottom: 2px;
}

.demo-feature span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.demo-visual {
  display: flex;
  justify-content: center;
}

.terminal-window {
  background: #1e1e2e;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 60px var(--shadow);
  height: 400px;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #2d2d3f;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 12px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #3a3a5c #1e1e2e;
}

.terminal-line {
  margin-bottom: 0;
}

.prompt {
  color: var(--accent-light);
  font-weight: 600;
}

.output {
  color: var(--text-secondary);
}

.success {
  color: var(--success);
}

.thinking {
  color: var(--warning);
}

.result {
  color: var(--text-primary);
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ===================================
   PRICING SECTION
   =================================== */

.pricing {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 10px 40px var(--glow);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pricing-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.pricing-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-amount {
  margin-bottom: 24px;
  text-align: center;
}

.currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
}

.period {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-features li {
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ROI Calculator */
.roi-calculator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}

.roi-calculator h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.roi-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 20px;
}

.roi-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.roi-amount {
  font-size: 1.3rem;
  font-weight: 700;
}

.roi-bar {
  height: 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
}

.roi-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
}

.roi-bar-fill.danger {
  background: linear-gradient(90deg, var(--danger), #f87171);
}

.roi-bar-fill.success {
  background: linear-gradient(90deg, var(--success), #34d399);
}

.roi-savings {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.contact-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method strong {
  display: block;
  margin-bottom: 4px;
}

.contact-method a {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

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

.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.success-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--success);
  font-weight: 600;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-links h4 {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-content {
    grid-template-columns: 1fr;
  }

  .demo-text .section-title {
    text-align: center;
  }

  .demo-text {
    text-align: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }

  .contact-methods {
    align-items: center;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand .footer-logo {
    justify-content: center;
  }

  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.2fr 1fr 1fr;
    font-size: 0.85rem;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .pricing-amount .amount {
    font-size: 2.5rem;
  }

  .server-box {
    width: 100%;
  }
}

/* ===================================
   REFONTE — sections ajoutées (maintenance-ia, parc, sla-box…)
   =================================== */

.maintenance-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px) { .maintenance-layout { grid-template-columns: 1fr; } }

.maintenance-copy h2 { margin-bottom: 18px; }
.maintenance-lead { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }

.sub-heading { font-size: 1.4rem; margin: 48px 0 24px; color: var(--text-primary); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 22px 22px;
  transition: transform .3s ease, border-color .3s ease;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.step-num { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; font-weight: 600; color: var(--accent); opacity: .5; display: block; line-height: 1; }
.step-card h3 { margin-top: 14px; font-size: 1.02rem; line-height: 1.4; }
.step-card p { color: var(--text-secondary); font-size: .9rem; margin-top: 8px; line-height: 1.55; }
.step-meta { display: block; margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: .72rem; color: var(--success); }

.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 960px) { .intro-grid { grid-template-columns: 1fr; } }

.intro-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.intro-icon { font-size: 1.6rem; margin-bottom: 10px; }
.intro-panel h3 { margin-bottom: 8px; font-size: 1.15rem; }
.intro-panel p { color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }

/* --- Parc Informatique --- */
.parc-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .parc-grid { grid-template-columns: 1fr; } }

.parc-cards { display: grid; gap: 18px; }
.parc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.parc-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.parc-card p { color: var(--text-secondary); font-size: .92rem; line-height: 1.6; }

/* --- SLA box --- */
.sla-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; margin-top: 48px; }
.sla-box h3 { font-size: 1.15rem; margin-bottom: 20px; }

.sla-row { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sla-row:last-child { border-bottom: none; }
.sla-key { color: var(--text-secondary); font-size: .95rem; flex-shrink: 0; }
.sla-val { font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--success); text-align: right; }

/* --- Photos / crédits --- */
.photo-frame { position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); }
.photo-frame img { display: block; width: 100%; height: auto; }

.photo-frame figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10, 10, 15, .9));
  color: var(--text-muted);
  font-size: .72rem;
  padding: 14px 18px;
}

.image-credits { margin-top: 64px; padding: 18px 24px; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); border-radius: 8px; font-size: .75rem; color: var(--text-muted); }
.image-credits ul { margin: 6px 0 0 24px; }

/* --- Pricing extras --- */
.pricing-badge-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--accent), #ec4899); color: white; font-size: .7rem; font-weight: 600; padding: 5px 14px; border-radius: 20px; letter-spacing: .3px; }
.pricing-card { position: relative; }
.tarifs-note { margin-top: 28px; font-size: .78rem; color: var(--text-muted); line-height: 1.6; }

/* --- FAQ --- */
.faq-section .container { max-width: 780px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 0 24px; margin-bottom: 12px; }

.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; position: relative; padding-right: 34px; }
.faq-item summary::after { content: '+'; position: absolute; right: 24px; top: 18px; font-size: 1.3rem; color: var(--accent); transition: transform .3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-a { padding-bottom: 20px; color: var(--text-secondary); font-size: .92rem; line-height: 1.7; }

/* --- Mobile overlay (nav) --- */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(10, 10, 15, .6); z-index: 999; }
@media (max-width: 768px) {
  .mobile-overlay.active { display: block; }
  .nav-menu.open { position: fixed; top: 70px; left: 0; right: 0; background: var(--bg-primary); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--border); }
}

/* --- check icon (pricing) --- */
.check { color: var(--success); font-weight: 700; }

/* --- Refonte: classes restantes --- */
.nav-name { font-weight: 700; color: var(--text); letter-spacing: .2px; }
.hero-content { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.header-col { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .35px; color: var(--text-muted); padding: 8px 0; border-bottom: 2px solid var(--border); margin-bottom: 14px; }
.maintenance-ia { background: linear-gradient(160deg, rgba(0,205,253,.05) 0%, transparent 40%), var(--bg-secondary); padding: 88px 0; }
.maintenance-photo { max-width: 480px; margin-top: 0; }
.methode { background: var(--bg-primary); padding: 88px 0; }
.faq-q { font-weight: 600; color: var(--text); }
