/* 1. Global Reset & Theme Tokens (Dark & Light) */
:root {
  /* Dark Theme Tokens (Default) */
  --bg: #07080f;
  --surface: #0e0f1e;
  --surface-hover: #161729;
  --border: rgba(167, 139, 250, 0.13);
  --border-light: rgba(167, 139, 250, 0.26);

  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-subtle: rgba(167, 139, 250, 0.13);

  --text-main: #f0eeff;
  --text-muted: #9d9bbf;
  --text-dim: #5e5c7a;

  --terminal-bg: #050610;
  --header-bg: rgba(7, 8, 15, 0.92);
  --footer-bg: #09091a;
  --footer-bottom-bg: #050610;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius: 8px;
  --max-width: 1160px;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg: #f5f4ff;
  --surface: #ffffff;
  --surface-hover: #ededff;
  --border: rgba(109, 40, 217, 0.1);
  --border-light: rgba(109, 40, 217, 0.2);

  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-subtle: rgba(109, 40, 217, 0.09);

  --text-main: #1a1033;
  --text-muted: #4b4476;
  --text-dim: #7c75a6;

  --terminal-bg: #1a1033;
  --header-bg: rgba(245, 244, 255, 0.93);
  --footer-bg: #1a1033;
  --footer-bottom-bg: #0e0b24;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

ul {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 2. Layout & Typography */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Ensure CSS Grid items never force tracks wider than viewport */
.hero-container > *,
.about-grid > *,
.solutions-grid > *,
.benefits-grid > *,
.usecases-grid > *,
.steps-row > *,
.spotlight-card > *,
.contact-grid > *,
.footer-container > * {
  min-width: 0;
  max-width: 100%;
}

.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-subtle);
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 4px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-intro {
  margin-bottom: 48px;
}

.section-intro.text-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-intro h2 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* 3. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.45);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
  color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%);
  box-shadow: 0 4px 20px rgba(109, 40, 217, 0.4);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
  color: var(--text-main);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* 4. Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--surface);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 38px;
  height: 38px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

.mobile-drawer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.mobile-theme-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.active {
  display: flex;
}

.mobile-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

/* 5. Hero Section */
.hero-section {
  padding: 72px 0 96px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-text {
  min-width: 0;
  max-width: 100%;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.highlight {
  color: var(--accent);
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 560px;
  width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

/* Quick command box */
.terminal-card {
  background-color: #050610;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  width: 100%;
  max-width: 560px;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: var(--font-code);
  gap: 8px;
}

.copy-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.75rem;
  font-family: var(--font-code);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  color: #ffffff;
  border-color: var(--accent);
  background-color: rgba(167, 139, 250, 0.2);
}

.terminal-code {
  display: block;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #ddd6fe;
  max-width: 100%;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  box-sizing: border-box;
}

/* Hero Image */
.hero-image-wrapper {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.image-frame {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-caption {
  padding: 14px 18px;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.image-caption strong {
  display: block;
  color: var(--text-main);
}

.image-caption span {
  font-size: 0.8rem;
  color: var(--accent);
}

/* 6. Brand Intro & About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.about-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.about-number {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* 7. Solutions Cards */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: border-color 0.2s;
}

.solution-card:hover {
  border-color: var(--border-light);
}

.solution-tag {
  font-size: 0.75rem;
  font-family: var(--font-code);
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.solution-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.feature-bullets {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-bullets li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* 8. Benefits & Table */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.benefit-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.benefit-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.benefit-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.comparison-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.comparison-heading {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.simple-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.simple-table th,
.simple-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.simple-table th {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: var(--font-code);
}

.simple-table th.table-brand,
.simple-table td.table-brand {
  background-color: rgba(167, 139, 250, 0.07);
  color: var(--accent);
}

/* 9. Use Cases */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.usecase-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.usecase-pill {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.usecase-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Architecture Spotlight */
.spotlight-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
}

.spotlight-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.spotlight-content {
  padding: 40px;
}

.spotlight-content h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.spotlight-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 10. How It Works */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-box {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--accent-subtle);
  border: 1px solid rgba(167, 139, 250, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-code);
}

.step-box h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-box p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.step-pre {
  background-color: #050610;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: #ddd6fe;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

/* 11. Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-details h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.contact-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-highlights li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-highlights strong {
  color: var(--text-main);
  display: block;
}

/* Form Card */
.form-container {
  background-color: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 36px;
}

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

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

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-wrap label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.req {
  color: var(--accent);
}

.input {
  width: 100%;
  background-color: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

[data-theme="light"] .input {
  background-color: #f0eeff;
  border-color: rgba(109, 40, 217, 0.18);
  color: #1a1033;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.22);
  outline: none;
}

[data-theme="light"] .input:focus {
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.18);
}

.input.error {
  border-color: #ef4444;
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: #ef4444;
}

.error-msg.visible {
  display: block;
}

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

/* Form Success State */
.success-card {
  display: none;
  text-align: center;
  padding: 24px 12px;
}

.success-card.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--accent);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card h3 {
  font-size: 1.4rem;
}

.success-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
}

.ref-badge {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent);
  background: #050610;
  border: 1px solid rgba(167, 139, 250, 0.28);
  padding: 4px 12px;
  border-radius: 4px;
}

/* 12. Footer (Deep Midnight Violet & Electric Purple Accents) */
.footer {
  background-color: #09091a;
  border-top: 1px solid rgba(167, 139, 250, 0.22);
  padding-top: 64px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.brand-col .logo {
  margin-bottom: 12px;
}

.brand-col .logo-text {
  color: #ede9ff;
}

.footer-tagline {
  color: #8b87b0;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 16px;
}

.footer-status {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: #a78bfa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
}

.footer-col h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  color: #ede9ff;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-family: var(--font-code);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: #b0accc;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.footer-col a:hover {
  color: #a78bfa;
  padding-left: 2px;
}

.footer-bottom {
  background-color: #050610;
  border-top: 1px solid rgba(167, 139, 250, 0.15);
  padding: 24px 0;
  font-size: 0.88rem;
  color: #8b87b0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-author {
  color: #a78bfa;
  font-weight: 600;
}

.footer-client {
  color: #ede9ff;
  font-weight: 600;
}

/* 13. Responsive Styles */

/* ─── Tablet: 1024px ─── */
@media (max-width: 1024px) {

  /* Nav Links spacing */
  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  /* Hero */
  .hero-section {
    padding: 56px 0 72px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .hero-subtitle {
    max-width: 100%;
  }

  .terminal-card {
    max-width: 100%;
  }

  /* About grid → 1 col */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Solutions → 1 col */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  /* Benefits → 2 cols */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Use cases */
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Spotlight */
  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-img {
    min-height: 260px;
    max-height: 340px;
  }

  /* Steps → 2-col grid */
  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .section-intro h2 {
    font-size: 1.9rem;
  }
}

/* ─── Tablet / Small Laptop: 900px (Switch to Hamburger) ─── */
@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .header-cta .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .theme-toggle {
    display: flex;
    width: 36px;
    height: 36px;
  }
}

/* ─── Mobile: 768px ─── */
@media (max-width: 768px) {

  /* Sections */
  .section {
    padding: 56px 0;
  }

  /* Hero */
  .hero-section {
    padding: 36px 0 52px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.25rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

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

  /* Hero image */
  .hero-img {
    aspect-ratio: 16 / 9;
  }

  /* About: 1-col */
  .about-grid {
    grid-template-columns: 1fr;
  }

  /* Solutions: 1-col */
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  /* Benefits: 1-col */
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Use cases: 1-col */
  .usecases-grid {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  /* Comparison table — smooth scrolling */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .simple-table {
    min-width: 540px;
  }

  .simple-table th,
  .simple-table td {
    padding: 12px 14px;
  }

  .comparison-card {
    padding: 22px 16px;
  }

  /* Steps: 1-col */
  .steps-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Spotlight */
  .spotlight-img {
    min-height: 200px;
    max-height: 260px;
  }

  .spotlight-content {
    padding: 24px 20px;
  }

  .spotlight-content h3 {
    font-size: 1.3rem;
  }

  /* Section headings */
  .section-intro h2 {
    font-size: 1.7rem;
  }

  .contact-details h2 {
    font-size: 1.7rem;
  }

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

  .form-container {
    padding: 24px 18px;
    border-radius: 10px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  /* Container padding */
  .container {
    padding: 0 18px;
  }
}

/* ─── Small Mobile: 480px ─── */
@media (max-width: 480px) {

  .hero-title {
    font-size: clamp(1.6rem, 5vw, 1.85rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-section {
    padding: 28px 0 44px;
  }

  .section {
    padding: 42px 0;
  }

  .section-intro h2 {
    font-size: 1.45rem;
  }

  .contact-details h2 {
    font-size: 1.45rem;
  }

  .terminal-card {
    padding: 12px 14px;
  }

  .terminal-code {
    font-size: 0.78rem;
  }

  .about-card,
  .solution-card,
  .usecase-card,
  .step-box {
    padding: 20px 16px;
  }

  .benefit-item {
    padding: 16px 14px;
  }

  .comparison-card {
    padding: 18px 14px;
  }

  .spotlight-content {
    padding: 20px 16px;
  }

  .btn-large {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Compact footer */
  .footer {
    padding-top: 40px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ─── Extra Small Mobile: 360px ─── */
@media (max-width: 360px) {

  .container {
    padding: 0 12px;
  }

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

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

  .terminal-card {
    padding: 10px 12px;
  }

  .terminal-code {
    font-size: 0.72rem;
  }

  .form-container {
    padding: 18px 12px;
  }
}

