/* ==============================================
   FluxOpenHome - Standalone Site Stylesheet
   ============================================== */

/* --- Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

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

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #0f9b58;
  --accent-hover: #0d8a4e;
  --secondary: #4a90d9;
  --secondary-hover: #3a7bc8;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-inverse: #ffffff;
  --text-muted: #999999;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --surface-dark: #0d1117;
  --success: #28a745;
  --warning: #f0ad4e;
  --danger: #dc3545;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);
  --max-width: 1200px;
}


/* ==============================================
   Base Typography
   ============================================== */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

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

a {
  color: var(--secondary);
  transition: color 0.15s ease;
}

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


/* ==============================================
   Layout: Container & Sections
   ============================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 64px 0;
}

.section-lg {
  padding: 96px 0;
}

.section-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverse);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-light {
  background-color: var(--bg-light);
}


/* ==============================================
   Header / Navigation
   ============================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
}

/* Desktop navigation */
.main-nav {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-light);
}

.nav-link.active {
  color: var(--accent);
  font-weight: 600;
}

/* Header actions (shop button, hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile nav toggle (hamburger) */
.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: background-color 0.15s ease;
}

.mobile-nav-toggle:hover {
  background-color: var(--bg-light);
}

.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: 100%;
  max-width: 320px;
  background-color: var(--bg-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-overlay.open + .mobile-nav-drawer,
.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-nav-close:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.mobile-nav-links {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links .nav-link {
  display: block;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

/* Desktop: show nav, hide hamburger */
@media (min-width: 1024px) {
  .main-nav {
    display: flex;
  }

  .mobile-nav-toggle {
    display: none;
  }
}


/* ==============================================
   Hero Sections
   ============================================== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 96px 0;
}

.hero-content {
  max-width: 720px;
  color: var(--text-inverse);
}

.hero-content h1 {
  color: var(--text-inverse);
  margin-bottom: 24px;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

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


/* ==============================================
   Buttons
   ============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary (green) */
.btn-primary {
  background-color: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text-inverse);
}

/* Secondary (blue) */
.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-inverse);
  border-color: var(--secondary);
}

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

/* Outline (dark border) */
.btn-outline {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--text-inverse);
}

/* Outline white (for dark backgrounds) */
.btn-outline-white {
  background-color: transparent;
  color: var(--text-inverse);
  border-color: rgba(255, 255, 255, 0.4);
}

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

/* Button sizes */
.btn-lg {
  font-size: 1rem;
  padding: 14px 28px;
}

.btn-sm {
  font-size: 0.75rem;
  padding: 6px 14px;
}


/* ==============================================
   Badges
   ============================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-accent {
  background-color: rgba(15, 155, 88, 0.12);
  color: var(--accent);
}

.badge-secondary {
  background-color: rgba(74, 144, 217, 0.12);
  color: var(--secondary);
}


/* ==============================================
   Cards (Generic)
   ============================================== */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}


/* ==============================================
   Product Highlights Grid
   ============================================== */

.flux-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flux-product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.flux-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}

.flux-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.flux-product-card:hover img {
  transform: scale(1.05);
}

.flux-product-card .card-body {
  padding: 24px;
}

.flux-product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.flux-product-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Protocol Icon Grid
   ============================================== */

.flux-protocol-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  text-align: center;
}

.flux-protocol-item img {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
}

.flux-protocol-item h4 {
  font-size: 0.875rem;
  margin: 0 0 4px;
}

.flux-protocol-item p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   GitHub Repo Cards
   ============================================== */

.flux-repo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.flux-repo-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.flux-repo-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.flux-repo-card .repo-name {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.flux-repo-card .repo-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.flux-repo-card .repo-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.repo-meta .lang-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.lang-dot.yaml { background-color: #cb171e; }
.lang-dot.python { background-color: #3572A5; }


/* ==============================================
   Feature Grid (blue icons)
   ============================================== */

.flux-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.flux-feature-item {
  padding: 24px;
}

.flux-feature-item .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(74, 144, 217, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.flux-feature-item h4 {
  margin: 0 0 8px;
}

.flux-feature-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   App Feature Grid (green icons)
   ============================================== */

.flux-app-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.flux-app-feature-item {
  padding: 24px;
}

.flux-app-feature-item .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(15, 155, 88, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.flux-app-feature-item h4 {
  margin: 0 0 8px;
}

.flux-app-feature-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Steps
   ============================================== */

.flux-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.flux-step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.flux-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--text-inverse);
  font-size: 1.25rem;
  font-weight: 700;
}

.flux-step h3 {
  margin: 16px 0 8px;
  font-size: 1.125rem;
}

.flux-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.flux-step-connector {
  width: 60px;
  height: 2px;
  background-color: var(--border);
  margin-top: 24px;
  flex-shrink: 0;
}


/* ==============================================
   Pricing Cards
   ============================================== */

.flux-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flux-pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.flux-pricing-card.featured {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.flux-pricing-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.flux-pricing-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flux-pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.flux-pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 8px 0 24px;
}

.flux-pricing-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.flux-pricing-features li {
  position: relative;
  padding: 4px 0 4px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.flux-pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}


/* ==============================================
   Trust Items
   ============================================== */

.flux-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.flux-trust-item {
  padding: 24px;
  border-left: 3px solid var(--accent);
}

.flux-trust-item h4 {
  margin: 0 0 8px;
}

.flux-trust-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Two-Path Comparison
   ============================================== */

.flux-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.flux-path-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.flux-path-card.featured {
  border-color: var(--secondary);
  box-shadow: var(--shadow-md);
}

.flux-path-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.flux-path-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-light);
}

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

.flux-path-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.5;
}


/* ==============================================
   Feature List (checkmark style)
   ============================================== */

.flux-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.flux-feature-list li {
  position: relative;
  padding: 4px 0 4px 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.flux-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.6;
}


/* ==============================================
   FAQ Accordion
   ============================================== */

.flux-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.flux-faq-item {
  border-bottom: 1px solid var(--border);
}

.flux-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.flux-faq-question:hover {
  color: var(--accent);
}

.flux-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.flux-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.flux-faq-answer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.flux-faq-item.active .flux-faq-chevron {
  transform: rotate(180deg);
}

.flux-faq-item.active .flux-faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}


/* ==============================================
   Support Link Cards
   ============================================== */

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

.flux-support-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.flux-support-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
}

.flux-support-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.flux-support-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flux-support-card li {
  margin-bottom: 4px;
}

.flux-support-card a {
  font-size: 0.875rem;
  color: var(--secondary);
  padding: 4px 0;
  display: block;
}

.flux-support-card a:hover {
  color: var(--accent);
}

.flux-support-card a::before {
  content: '\2192 ';
  font-size: 0.75rem;
}


/* ==============================================
   Footer
   ============================================== */

.site-footer {
  background-color: var(--surface-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

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

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 16px;
}

.footer-column h4 {
  color: var(--text-inverse);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease;
}

.footer-bottom a:hover {
  color: var(--text-inverse);
}


/* ==============================================
   Utility Classes
   ============================================== */

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-secondary); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-white  { color: var(--text-inverse); }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==============================================
   Responsive: Mobile (< 768px)
   ============================================== */

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .section    { padding: 48px 0; }
  .section-lg { padding: 64px 0; }
  .hero       { padding: 64px 0; }

  .hero-content p { font-size: 1rem; }

  .hero-actions {
    flex-direction: column;
  }

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

  /* Grids collapse to 1-2 columns */
  .flux-product-grid       { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .flux-protocol-grid      { grid-template-columns: repeat(2, 1fr); }
  .flux-repo-grid          { grid-template-columns: 1fr; }
  .flux-feature-grid       { grid-template-columns: 1fr; }
  .flux-pricing-grid       { grid-template-columns: 1fr; }
  .flux-pricing-card.featured { transform: none; }
  .flux-trust-grid         { grid-template-columns: 1fr; }
  .flux-paths-grid         { grid-template-columns: 1fr; }
  .flux-support-grid       { grid-template-columns: 1fr; }
  .flux-app-feature-grid   { grid-template-columns: 1fr; }

  /* Steps stack vertically */
  .flux-steps {
    flex-direction: column;
    align-items: center;
  }

  .flux-step-connector {
    width: 2px;
    height: 30px;
    margin: 0;
  }

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

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


/* ==============================================
   Responsive: Tablet (768px - 1023px)
   ============================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .flux-product-grid     { grid-template-columns: repeat(2, 1fr); }
  .flux-feature-grid     { grid-template-columns: repeat(2, 1fr); }
  .flux-pricing-grid     { grid-template-columns: repeat(2, 1fr); }
  .flux-support-grid     { grid-template-columns: repeat(2, 1fr); }
  .flux-app-feature-grid { grid-template-columns: repeat(2, 1fr); }

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


/* ==============================================
   Responsive: Desktop (1024px+)
   ============================================== */

@media (min-width: 1024px) {
  .hero-content {
    max-width: 720px;
  }
}


/* ==============================================
   Flux Sections & Badges (shared)
   ============================================== */

.flux-section {
  padding: 64px 0;
}

.flux-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.flux-section-header p {
  margin-top: 12px;
}

.flux-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flux-badge-accent {
  background-color: rgba(15, 155, 88, 0.1);
  color: var(--accent);
}

.flux-badge-secondary {
  background-color: rgba(74, 144, 217, 0.1);
  color: var(--secondary);
}

.flux-badge-dark {
  background-color: rgba(26, 26, 46, 0.08);
  color: var(--primary);
}


/* ==============================================
   Flux Hero (homepage)
   ============================================== */

.flux-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 96px 0;
  overflow: hidden;
}

.flux-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 32px 32px;
}

.flux-hero-content {
  position: relative;
  max-width: 720px;
  color: var(--text-inverse);
}

.flux-hero h1 {
  color: var(--text-inverse);
  margin-bottom: 24px;
}

.flux-hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

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


/* ==============================================
   Flux Mission / Two-Column
   ============================================== */

.flux-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.flux-mission-content p {
  margin-bottom: 16px;
}

.flux-mission-content .btn {
  margin-top: 8px;
}


/* ==============================================
   Flux Enterprise Teaser
   ============================================== */

.flux-enterprise-teaser {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.flux-enterprise-teaser-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-inverse);
}

.flux-enterprise-teaser-content h2 {
  color: var(--text-inverse);
  margin: 16px 0;
}

.flux-enterprise-teaser-content p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}


/* ==============================================
   Flux App Teaser
   ============================================== */

.flux-app-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.flux-app-teaser-content .flux-badge {
  margin-bottom: 12px;
}

.flux-app-teaser-content h2 {
  margin-bottom: 16px;
}

.flux-app-teaser-content p {
  margin-bottom: 24px;
}

.flux-app-teaser-mockup img {
  width: 100%;
  border-radius: var(--radius-lg);
}


/* ==============================================
   Flux Footer
   ============================================== */

.flux-footer {
  background-color: var(--surface-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 64px;
}

.flux-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.flux-footer-brand .logo img {
  opacity: 0.9;
}

.flux-footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-top: 16px;
}

.flux-footer-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}

.flux-footer-github:hover {
  color: var(--text-inverse);
}

.flux-footer-col h4 {
  color: var(--text-inverse);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.flux-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flux-footer-col li {
  margin-bottom: 8px;
}

.flux-footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.15s ease;
}

.flux-footer-col a:hover {
  color: var(--text-inverse);
}

.flux-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.flux-footer-bar p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}


/* ==============================================
   Product Card Body (homepage grid)
   ============================================== */

.flux-product-card-image {
  overflow: hidden;
}

.flux-product-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.flux-product-card:hover .flux-product-card-image img {
  transform: scale(1.05);
}

.flux-product-card-body {
  padding: 20px;
}

.flux-product-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.flux-product-card-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Product Detail Page
   ============================================== */

/* Breadcrumb */
.pd-breadcrumb {
  padding: 16px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pd-breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

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

.pd-breadcrumb span {
  margin: 0 6px;
  color: var(--text-muted);
}

/* Product Hero */
.pd-hero {
  padding: 48px 0 64px;
}

.pd-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pd-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.pd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pd-hero-info h1 {
  margin-bottom: 8px;
}

.pd-hero-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.pd-hero-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.pd-version-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.pd-version-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-version-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.pd-version-card h4 {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.pd-version-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Specifications Table */
.pd-specs {
  padding: 64px 0;
  background-color: var(--bg-light);
}

.pd-specs-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
}

.pd-specs-table tr {
  border-bottom: 1px solid var(--border);
}

.pd-specs-table td {
  padding: 14px 16px;
  font-size: 0.875rem;
  vertical-align: top;
}

.pd-specs-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  width: 200px;
  white-space: nowrap;
}

.pd-specs-table td:last-child {
  color: var(--text-secondary);
}

/* Feature Grid */
.pd-features {
  padding: 64px 0;
}

.pd-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pd-feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pd-feature-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.pd-feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 155, 88, 0.08);
  margin-bottom: 16px;
}

.pd-feature-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.pd-feature-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* HA Add-on Section */
.pd-addon {
  padding: 64px 0;
  background-color: var(--bg-light);
}

.pd-addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pd-addon-content h2 {
  margin-bottom: 16px;
}

.pd-addon-content > p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.pd-addon-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.pd-addon-list li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pd-addon-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.6;
}

/* iOS App Callout */
.pd-ios {
  padding: 48px 0;
}

.pd-ios-inner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.pd-ios-inner h3 {
  color: var(--text-inverse);
  margin-bottom: 8px;
}

.pd-ios-inner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  margin: 0;
}

/* Companion Products */
.pd-companions {
  padding: 64px 0;
  background-color: var(--bg-light);
}

.pd-companion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pd-companion-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pd-companion-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: inherit;
}

.pd-companion-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 16px;
}

.pd-companion-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.pd-companion-card .pd-companion-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* Resources Section */
.pd-resources {
  padding: 64px 0;
}

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

.pd-resource-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-resource-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.pd-resource-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: rgba(74, 144, 217, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-resource-card h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.pd-resource-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Product Detail Page - Responsive
   ============================================== */

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

  .pd-version-cards {
    grid-template-columns: 1fr;
  }

  .pd-feature-grid {
    grid-template-columns: 1fr;
  }

  .pd-addon-grid {
    grid-template-columns: 1fr;
  }

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

  .pd-resource-grid {
    grid-template-columns: 1fr;
  }

  .pd-ios-inner {
    flex-direction: column;
    text-align: center;
  }

  .flux-hero { padding: 64px 0; }
  .flux-hero-actions { flex-direction: column; }
  .flux-hero-actions .btn { width: 100%; }

  .flux-mission-grid { grid-template-columns: 1fr; gap: 32px; }
  .flux-app-teaser-grid { grid-template-columns: 1fr; gap: 32px; }
  .flux-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .pd-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

  .flux-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}


/* ==============================================
   Flux Breadcrumb
   ============================================== */

.flux-breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.flux-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
}

.flux-breadcrumb-list li {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.flux-breadcrumb-list li a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.flux-breadcrumb-list li a:hover {
  color: var(--accent);
}

.flux-breadcrumb-list li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.flux-breadcrumb-list li[aria-current="page"] {
  color: var(--text-primary);
  font-weight: 500;
}


/* ==============================================
   Flux Product Hero (Detail Page)
   ============================================== */

.flux-product-hero {
  padding: 48px 0 64px;
}

.flux-product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.flux-product-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.flux-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.flux-product-hero-info h1 {
  margin-bottom: 8px;
}

.flux-product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.flux-product-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}


/* ==============================================
   Flux Variant Cards
   ============================================== */

.flux-variant-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.flux-variant-cards:has(.flux-variant-card:nth-child(3)) {
  grid-template-columns: 1fr 1fr 1fr;
}

.flux-variant-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flux-variant-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.flux-variant-card h4 {
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.flux-variant-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.flux-variant-spec {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.flux-variant-recommended {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.flux-variant-tag {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-inverse);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}


/* ==============================================
   Flux Section Light
   ============================================== */

.flux-section-light {
  background-color: var(--bg-light);
}


/* ==============================================
   Flux Spec Table
   ============================================== */

.flux-spec-table-wrapper {
  overflow-x: auto;
}

.flux-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.flux-spec-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
  background-color: var(--bg-white);
}

.flux-spec-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.flux-spec-table tbody tr:last-child {
  border-bottom: none;
}

.flux-spec-table tbody td {
  padding: 12px 16px;
  color: var(--text-secondary);
  vertical-align: top;
}

.flux-spec-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  width: 200px;
}

.flux-spec-table-two-col {
  max-width: 720px;
  margin: 0 auto;
}

.flux-spec-table-two-col td:first-child {
  width: 220px;
}


/* ==============================================
   Flux Resource Links
   ============================================== */

.flux-resources-list {
  max-width: 640px;
  margin: 0 auto;
}

.flux-resource-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.flux-resource-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.flux-resource-link svg {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.flux-resource-link:hover svg {
  color: var(--accent);
}

.flux-resource-link h4 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.flux-resource-link p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Flux Integration Steps (Gophr)
   ============================================== */

.flux-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.flux-integration-step {
  text-align: center;
  padding: 24px;
}

.flux-integration-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  color: var(--text-inverse);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.flux-integration-step h4 {
  margin-bottom: 8px;
}

.flux-integration-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}


/* ==============================================
   Flux Use Case Grid (TPH Sensor)
   ============================================== */

.flux-use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.flux-use-case-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.flux-use-case-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.flux-use-case-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: rgba(15, 155, 88, 0.08);
}

.flux-use-case-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.flux-use-case-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}


/* ==============================================
   Product Detail - Responsive
   ============================================== */

@media (max-width: 767px) {
  .flux-product-hero {
    padding: 32px 0 48px;
  }

  .flux-product-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flux-variant-cards {
    grid-template-columns: 1fr;
  }

  .flux-variant-cards:has(.flux-variant-card:nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .flux-integration-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .flux-spec-table tbody td:first-child {
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .flux-product-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .flux-variant-cards:has(.flux-variant-card:nth-child(3)) {
    grid-template-columns: 1fr 1fr;
  }

  .flux-integration-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

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

/* Variant Selector */
.variant-selector { margin: 24px 0; }
.variant-option {
  position: relative;
  padding: 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.variant-option:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(15, 155, 88, 0.1);
}
.variant-option.selected {
  border-color: var(--accent);
  background-color: rgba(15, 155, 88, 0.04);
  box-shadow: 0 2px 12px rgba(15, 155, 88, 0.15);
}
.variant-option.selected::after {
  content: '\2713';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.variant-option h4 { margin: 0 0 4px; font-size: 1rem; }
.variant-option .variant-price { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.variant-option .variant-desc { font-size: 0.8rem; color: var(--text-secondary); margin: 0; }
.variant-buy-btn { margin-top: 16px; }

/* Blue variant for Direct Connect */
.variant-option.variant-blue:hover { border-color: var(--secondary); }
.variant-option.variant-blue.selected {
  border-color: var(--secondary);
  background-color: rgba(74, 144, 217, 0.04);
  box-shadow: 0 2px 12px rgba(74, 144, 217, 0.15);
}
.variant-option.variant-blue.selected::after { background: var(--secondary); }

/* Amber variant for Cellular */
.variant-option.variant-amber:hover { border-color: #f0ad4e; }
.variant-option.variant-amber.selected {
  border-color: #f0ad4e;
  background-color: rgba(240, 173, 78, 0.04);
  box-shadow: 0 2px 12px rgba(240, 173, 78, 0.15);
}
.variant-option.variant-amber.selected::after { background: #f0ad4e; }

@media (max-width: 767px) {
  .variant-selector .variant-grid { grid-template-columns: 1fr !important; }
}
