:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --accent: #0ea5e9;
  --card-bg: #ffffff;
  --line: #e2e8f0;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 36px rgba(15, 23, 42, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }

/* ===== HEADER ===== */
.site-header { background: #ffffff; border-bottom: 1px solid var(--line); }
.brand-stack { text-align: center; padding: 18px 0 14px; }
.site-logo { height: 60px; width: auto; margin: 0 auto; }
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* ===== NAV ===== */
.main-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 14px; font-family: inherit; }
.main-nav a { padding-bottom: 4px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s, border-color 0.2s; }
.main-nav a:hover { color: var(--primary); border-color: var(--primary); }
.main-nav a.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section.alt { background: #f1f5f9; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 12px; font-weight: 700; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); max-width: 600px; margin: 0 auto; line-height: 1.7; font-size: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 600; }
.eyebrow.primary { color: var(--primary); }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; margin: 10px 0 14px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.5vw, 36px); margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 20px; margin: 0 0 8px; font-weight: 600; }
p, li { color: var(--muted); line-height: 1.7; font-size: 15px; }

/* ===== BUTTONS ===== */
.button { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.2s; border: 1px solid transparent; }
.button.primary { background: var(--primary); color: white; }
.button.primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.button.outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.button.outline:hover { background: rgba(37,99,235,0.06); }
.button.large { padding: 14px 28px; font-size: 15px; }

/* ===== CARDS ===== */
.catalog-card, .card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); transition: all 0.25s; }
.catalog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.catalog-card img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 12px 12px 0 0; }
.catalog-body { padding: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; justify-content: center; }
.price { color: var(--primary); font-weight: 700; font-size: 22px; }
.large-price { font-size: 26px; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-row:last-child { border-bottom: none; }
.card-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.card-badge.primary { background: rgba(37,99,235,0.1); color: var(--primary); }
.card-badge.success { background: rgba(16,185,129,0.1); color: #10b981; }

/* ===== HERO ===== */
.hero-section { padding: 60px 0 40px; text-align: center; background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); }
.hero-section h1 { max-width: 800px; margin: 0 auto 16px; }
.hero-section p { max-width: 600px; margin: 0 auto 20px; font-size: 15px; color: var(--muted); }
.hero-badge { display: inline-block; background: rgba(37,99,235,0.08); color: var(--primary); padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== COMPARISON TABLE ===== */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.comparison-table th { background: #f8fafc; font-weight: 700; color: var(--text); }
.comparison-table .win { color: #10b981; font-weight: 600; }
.comparison-table .lose { color: #ef4444; font-weight: 600; }
.comparison-table .badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.comparison-table .badge.win { background: rgba(16,185,129,0.1); color: #10b981; }
.comparison-table .badge.lose { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; justify-content: center; }
.team-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 800; font-size: 18px; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.team-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.team-card .bio { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ===== CONTACT ===== */
.contact-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.contact-methods { display: grid; gap: 12px; }
.contact-method { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.contact-method-icon { font-size: 24px; flex-shrink: 0; }
.contact-method h4 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.contact-method p { margin: 0; font-size: 13px; color: var(--muted); }
.contact-form { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; color: var(--text); font-size: 14px; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 15px; transition: background 0.2s; }
.form-submit:hover { background: var(--primary-dark); }
.form-message { display: none; padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.form-message.success { display: block; background: rgba(16,185,129,0.1); color: #10b981; }
.form-message.error { display: block; background: rgba(239,68,68,0.1); color: #ef4444; }

/* ===== CTA ===== */
.cta-section { padding: 80px 0; text-align: center; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.cta-section h2 { font-size: clamp(26px, 3.5vw, 36px); color: white; }
.cta-section p { max-width: 560px; margin: 0 auto 24px; color: rgba(255,255,255,0.8); }
.cta-section .button.outline { border-color: rgba(255,255,255,0.5); color: white; }
.cta-section .button.outline:hover { background: rgba(255,255,255,0.1); }

/* ===== FOOTER ===== */
footer { background: #0f172a; border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 0 24px; color: #cbd5e1; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-inner h4 { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: #f1f5f9; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-inner a { display: block; margin-bottom: 6px; font-size: 14px; color: #94a3b8; transition: color 0.2s; }
.footer-inner a:hover { color: #f1f5f9; }
.footer-inner p { font-size: 14px; color: #94a3b8; line-height: 1.6; }
.footer-bottom { text-align: center; padding-top: 24px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: #64748b; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.6s ease; }
.fade-in.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== STATS BAR ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 800px; margin: 40px auto 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--primary); display: block; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  h1 { font-size: clamp(28px, 6vw, 38px); }
  .main-nav { gap: 12px; }
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hamburger { display: block; }
  .main-nav { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0; }
  .main-nav.open { display: flex; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 10px 8px; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}

/* ===== STEAMBA-SPECIFIC ===== */
.steam-hero { background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 30%, #f0fdf4 60%, #fafbfc 100%); }
.steam-dark { background: #0f172a; color: white; }
.steam-dark h2 { color: white; }
.steam-dark p { color: rgba(255,255,255,0.6); }
.steam-dark .eyebrow { color: #38bdf8; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 28px 24px; }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; }
.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 20px; background: rgba(255,255,255,0.04); }
.spec-row:nth-child(odd) { background: rgba(255,255,255,0.08); }
.spec-row .label { color: rgba(255,255,255,0.5); font-size: 14px; }
.spec-row .value { color: white; font-weight: 600; font-size: 14px; }
.video-wrapper { max-width: 800px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.video-wrapper video { width: 100%; display: block; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.app-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; text-align: center; }
.app-card h4 { font-size: 15px; margin: 0 0 6px; }
.app-card p { font-size: 13px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.how-step { text-align: center; }
.how-step .num { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 800; }
.how-step h4 { font-size: 16px; margin: 0 0 6px; }
.how-step p { font-size: 14px; }
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .how-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .apps-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
}

/* ===== MOBILE HEADER SHRINK ===== */
@media (max-width: 640px) {
  .brand-stack { padding: 10px 0 8px; }
  .site-logo { height: 40px; }
  .tagline { font-size: 12px; margin: 4px 0 0; }
  .main-nav { margin-top: 8px; }
  .hamburger { padding: 4px; }
  .hamburger span { width: 20px; margin: 4px 0; }
}

