/* Blainestorm.com - Design System */
/* Dark theme with emerald green accents */

/* ===== CSS Custom Properties ===== */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #121212;
  --color-bg-card: #1a1a1a;
  --color-border: #2a2a2a;
  --color-border-light: #333333;

  --color-emerald: #00d47e;
  --color-emerald-dim: #00b86b;
  --color-emerald-bg: rgba(0, 212, 126, 0.08);
  --color-emerald-border: rgba(0, 212, 126, 0.2);
  --color-emerald-glow: rgba(0, 212, 126, 0.2);
  --color-emerald-muted: rgba(0, 212, 126, 0.3);

  --color-text-primary: #ffffff;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #666666;

  --color-accent-gold: #d4a800;
  --color-accent-blue: #0088d4;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 126, 0.15);

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

@media (max-width: 768px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

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

a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-emerald-dim); }

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-16) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--space-12) 0; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-emerald);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-emerald-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-elevated);
}

/* ===== Cards ===== */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
}

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

/* ===== Grid ===== */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text-primary);
}

.logo-mark {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-emerald);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-emerald);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    display: none;
  }

  .nav.open { display: flex; }

  .mobile-menu-btn { display: block; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--color-emerald-bg) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(212, 168, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-emerald);
  margin-bottom: var(--space-6);
}

.hero h1 {
  margin-bottom: var(--space-6);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Product Cards ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

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

.product-card {
  position: relative;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(15, 15, 15, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-accent-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card:hover::before { opacity: 1; }
.product-card:hover::after { opacity: 1; }
.product-card:hover {
  border-color: var(--color-emerald-border);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.08),
    var(--shadow-lg),
    var(--shadow-glow);
  transform: translateY(-6px);
}

.product-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.product-icon img { width: 36px; height: 36px; object-fit: contain; }

.product-card h3 { margin-bottom: var(--space-2); }
.product-card .tagline { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.product-card .description { color: var(--color-text-secondary); line-height: 1.7; margin-bottom: var(--space-6); }
.product-card .features { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.product-card .features li {
  font-size: var(--text-xs);
  padding: var(--space-1) var(--space-3);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

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

.footer-brand .logo { margin-bottom: var(--space-4); }
.footer-brand p { max-width: 300px; }

.footer-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a { color: var(--color-text-secondary); font-size: var(--text-sm); }
.footer-links a:hover { color: var(--color-emerald); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-social { display: flex; gap: var(--space-4); }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.footer-social a:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp var(--transition-slow) ease forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 100ms; }
.animate-delay-2 { animation-delay: 200ms; }
.animate-delay-3 { animation-delay: 300ms; }
.animate-delay-4 { animation-delay: 400ms; }
.animate-delay-5 { animation-delay: 500ms; }

/* ===== Focus States ===== */
:focus-visible {
  outline: 2px solid var(--color-emerald);
  outline-offset: 2px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-emerald);
  color: var(--color-bg);
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus { top: var(--space-4); }

/* ===== Page Hero (subpages) ===== */
.page-hero {
  padding: var(--space-20) 0 var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--color-emerald-bg) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(212, 168, 0, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  display: inline-block;
  padding: var(--space-2) var(--space-5);
  background: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-emerald);
  margin-bottom: var(--space-5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-emerald) 50%, var(--color-text-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroTextShimmer 6s ease-in-out infinite;
}

@keyframes heroTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: var(--space-4) auto 0;
  line-height: 1.6;
}

/* ===== Product Detail ===== */
.product-detail {
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.product-detail:nth-of-type(even) {
  background: var(--color-bg-elevated);
}

.product-detail:nth-of-type(even)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 80% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.product-detail:nth-of-type(odd)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 20% 50%, rgba(212, 168, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.product-detail-content {
  display: flex;
  flex-direction: column;
}

.product-detail-label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-emerald);
  margin-bottom: var(--space-3);
  align-self: flex-start;
}

.product-detail-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
}

.product-detail-tagline {
  font-size: var(--text-lg);
  color: var(--color-emerald);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.product-detail-desc {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.product-detail-visual {
  position: sticky;
  top: var(--space-16);
}

.product-detail-image {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.product-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.product-feature {
  position: relative;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(20, 20, 20, 0.6) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.product-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-emerald), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-feature::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-feature:hover {
  border-color: var(--color-emerald-border);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(16, 185, 129, 0.08);
}

.product-feature:hover::before {
  opacity: 1;
}

.product-feature:hover::after {
  opacity: 1;
}

.product-feature:hover .product-feature-icon {
  background: linear-gradient(135deg, var(--color-emerald-bg), rgba(16, 185, 129, 0.15));
  border-color: var(--color-emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transform: scale(1.05);
}

.product-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-emerald);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-feature h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.product-feature p {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ===== Fusion Engine Diagram ===== */
.fusion-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.fusion-diagram::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-emerald) 0%,
    var(--color-emerald-muted) 50%,
    transparent 100%
  );
  opacity: 0;
  animation: fusionLine 3s ease-in-out infinite;
  transform: translateX(-50%);
}

@keyframes fusionLine {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

.fusion-level {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--level-color) 15%, transparent);
  background: var(--level-bg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.fusion-level::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(16, 185, 129, 0.04),
    transparent
  );
  animation: fusionSweep 4s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 0.2s);
}

@keyframes fusionSweep {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.fusion-level:hover {
  border-color: color-mix(in srgb, var(--level-color) 40%, transparent);
  background: color-mix(in srgb, var(--level-color) 12%, var(--color-bg-elevated));
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateX(4px);
}

.fusion-level-label {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  min-width: 140px;
  color: var(--level-color);
}

.fusion-level-desc {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

/* ===== Architecture Cards (Technology page) ===== */
.arch-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.arch-card {
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(20, 20, 20, 0.8) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.arch-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-accent-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.arch-card:hover {
  border-color: var(--color-emerald-border);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(16, 185, 129, 0.06);
}

.arch-card:hover::after {
  opacity: 1;
}

.arch-card:hover .arch-card-icon {
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.15);
  transform: scale(1.05);
}

.arch-card-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.arch-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.arch-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-1);
}

.arch-card-label {
  font-size: var(--text-sm);
  color: var(--color-emerald);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.arch-card p:last-child {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

/* ===== Timeline (Company page) ===== */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-emerald), var(--color-emerald-muted), transparent);
}

.timeline::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald), 0 0 20px rgba(16, 185, 129, 0.3);
  animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { transform: translateY(0); opacity: 1; box-shadow: 0 0 10px var(--color-emerald), 0 0 20px rgba(16, 185, 129, 0.3); }
  50% { transform: translateY(4px); opacity: 0.8; box-shadow: 0 0 16px var(--color-emerald), 0 0 30px rgba(16, 185, 129, 0.4); }
}

.timeline-item {
  position: relative;
  padding: var(--space-4) var(--space-4) var(--space-8);
  margin-bottom: var(--space-4);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
  border-color: var(--color-emerald-border);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(0, 212, 126, 0.1);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--color-emerald);
  border: 2px solid var(--color-bg);
  z-index: 1;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  box-shadow: 0 0 16px var(--color-emerald), 0 0 30px rgba(16, 185, 129, 0.4);
}

.timeline-year {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-emerald-bg);
  border: 1px solid var(--color-emerald-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-emerald);
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-year {
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.timeline-content p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}

.form-input {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px var(--color-emerald-glow);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

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

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ===== Contact Cards ===== */
.contact-card {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(20, 20, 20, 0.5) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover {
  border-color: var(--color-emerald-border);
  box-shadow: 0 8px 32px rgba(0, 212, 126, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 126, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

/* ===== News Cards ===== */
.news-card {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-emerald), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover {
  border-color: var(--color-emerald-border);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08), 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.news-card:hover::before { opacity: 1; }

.news-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.news-card p:last-child {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.featured-news h2 {
  font-family: var(--font-display);
}

/* ===== Mission / Values ===== */
.mission-card {
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(15, 15, 15, 0.9) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mission-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-emerald), var(--color-accent-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.mission-card:hover {
  border-color: var(--color-emerald-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.06);
}

.mission-card:hover::after { opacity: 1; }

.value-card {
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.7) 0%, rgba(20, 20, 20, 0.5) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  text-align: center;
}

.value-card:hover {
  border-color: var(--color-emerald-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 20px rgba(16, 185, 129, 0.06);
}

.value-card p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ===== Grid helpers ===== */
.grid {
  display: grid;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .product-detail-visual {
    position: static;
    order: -1;
  }

  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  .fusion-level {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .fusion-level-label {
    min-width: auto;
  }

  .page-hero {
    padding: var(--space-12) 0 var(--space-8);
  }
}

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

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