/* ============================================
   Strux Labs Website — Global Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #1a5276;
  --primary-dark:#0e3a55;
  --accent:      #2ecc71;
  --accent-dark: #27ae60;
  --bg:          #f8f9fa;
  --bg-dark:     #1e1e2f;
  --text:        #333;
  --text-light:  #6c757d;
  --white:       #fff;
  --border:      #dee2e6;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --max-w:       1200px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--primary-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span.accent { color: var(--accent-dark); }

.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: .95rem;
  color: var(--text);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; stroke: var(--text); }

/* --- Hero Sections --- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
}
.hero p {
  font-size: 1.25rem;
  opacity: .9;
  max-width: 720px;
  margin: 0 auto 36px;
}
.hero-sm { padding: 60px 0 40px; }
.hero-sm h1 { font-size: 2.4rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
  border: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
section { padding: 80px 0; }
section:nth-child(even) { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Cards Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 2; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p  { color: var(--text-light); font-size: .95rem; }

/* --- Feature List --- */
.feature-row {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 60px 0;
}
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.6rem; margin-bottom: 12px; }
.feature-text p  { color: var(--text-light); margin-bottom: 16px; }
.feature-text ul { list-style: none; }
.feature-text ul li {
  padding: 4px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
}
.feature-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 700;
}
.feature-img {
  flex: 1;
  background: var(--border);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-style: italic;
  overflow: hidden;
}
.feature-img img { width: 100%; height: auto; }

/* --- Product Cards (larger) --- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  font-style: italic;
}
.product-card-body { padding: 28px 24px; }
.product-card-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.product-card-body .subtitle { color: var(--accent-dark); font-weight: 600; margin-bottom: 12px; }
.product-card-body p { color: var(--text-light); margin-bottom: 16px; }
.product-card-body .btn { width: 100%; text-align: center; }

/* --- Tutorial Steps --- */
.tutorial-step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.tutorial-step:last-child { border-bottom: none; }
.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}
.step-content { flex: 1; }
.step-content h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step-content p  { color: var(--text-light); margin-bottom: 12px; }
.step-screenshot {
  background: var(--border);
  border: 2px dashed #ccc;
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  margin-top: 12px;
}

/* --- Spec Table --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}
.spec-table tr:hover td { background: #f1f5f8; }

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px;
}
.team-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-dark));
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.4rem;
  font-weight: 700;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card .role { color: var(--accent-dark); font-weight: 600; font-size: .95rem; margin-bottom: 12px; }
.team-card p { color: var(--text-light); font-size: .9rem; }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 60px 0;
  text-align: center;
}
.stat h3 {
  font-size: 2.8rem;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.stat p {
  color: var(--text-light);
  font-size: .95rem;
  font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { font-size: 2rem; color: var(--white); margin-bottom: 16px; }
.cta-section p  { opacity: .9; max-width: 600px; margin: 0 auto 32px; font-size: 1.1rem; }

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.6; }
.site-footer h4 {
  color: var(--white);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,255,255,.6); font-size: .9rem; }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: .85rem;
}

/* --- Keyboard Shortcut Badge --- */
.kbd {
  display: inline-block;
  padding: 2px 8px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: .85em;
}

/* --- Tag Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-green  { background: #d4edda; color: #155724; }
.badge-blue   { background: #cce5ff; color: #004085; }
.badge-orange { background: #fff3cd; color: #856404; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .feature-row,
  .feature-row:nth-child(even) {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .tutorial-step { flex-direction: column; }
}

@media (max-width: 700px) {
  .hero h1 { font-size: 2rem; }
  .hero p   { font-size: 1rem; }
  section   { padding: 48px 0; }

  .nav-links { 
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}
