/* ==========================================================================
   samplesonics.com — MINIMALIST FLAT STUDIO DESIGN SYSTEM
   Palette centered around #363636 (exact logo background)
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --color-logo-bg: #363636;       /* Exact background of samplesonics logo */
  --color-navbar: #363636;        /* Navbar & footer background matching logo */
  --bg-page: #1e1e1e;             /* Flat, matte pro studio workspace */
  --bg-card: #2a2a2a;             /* Flat card surface */
  --bg-card-hover: #323232;       /* Flat card hover */
  --bg-elevated: #363636;         /* Elevated surfaces */
  --bg-input: #202020;            /* Subtle dark boxes */

  /* Borders (Flat 1px clean lines) */
  --border-subtle: #333333;
  --border-default: #404040;
  --border-navbar: #444444;

  /* Typography Colors */
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #787878;
  --text-bright: #ffffff;

  /* Accents */
  --accent-blue: #38bdf8;
  --accent-green: #34d399;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace;

  /* Radius (Crisp, flat, geometric) */
  --radius-xs: 3px;
  --radius-sm: 4px;

  /* Layout */
  --max-width: 1160px;
  --transition: 150ms ease;
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

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

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

a:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   BUTTONS (FLAT, CLEAN, PROFESSIONAL)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: #121212;
  border-color: #ffffff;
}

.btn-primary:hover {
  background-color: #e5e5e5;
  border-color: #e5e5e5;
  color: #000000;
}

.btn-secondary {
  background-color: #363636;
  border-color: #4a4a4a;
  color: #f0f0f0;
}

.btn-secondary:hover {
  background-color: #424242;
  border-color: #5a5a5a;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border-color: #444444;
  color: #cccccc;
}

.btn-outline:hover {
  border-color: #777777;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 0.98rem;
}

/* ==========================================================================
   NAVIGATION BAR (#363636 Matching Logo Background)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-navbar);
  border-bottom: 1px solid var(--border-navbar);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  display: block;
  background-color: var(--color-navbar);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #c0c0c0;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 0 4.5rem;
  background-color: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.hero-waves-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  max-width: 820px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.35rem;
  color: #ffffff;
}



.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2.25rem;
  max-width: 760px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Stats Row (Flat Grid) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2.5rem;
}

.stat-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER (#363636 Matching Logo & Navbar)
   ========================================================================== */
.site-footer {
  background-color: var(--color-navbar);
  border-top: 1px solid var(--border-navbar);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  background-color: var(--color-navbar);
}

.footer-brand-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ffffff;
}

.footer-desc {
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.55;
}

.footer-col-title {
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #b8b8b8;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #484848;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #999999;
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .nav-menu {
    gap: 0.85rem;
  }
  .nav-actions {
    gap: 0.4rem;
  }
  .nav-actions .btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}
