/* ==========================================================================
   Audiomorph Design System & Core Styles
   ========================================================================== */

:root {
  /* Stealth Backgrounds */
  --bg-base: #0A0B0E;
  --bg-surface: #16181D;
  --bg-elevated: #24272E;

  /* Waveform Accents */
  --accent-cyan: #00D2FF;
  --accent-orange: #FF7A00;
  --accent-amber: #FFB800;

  /* Typography Colors */
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Gradients */
  --gradient-waveform: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-cyan) 100%);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-base);
  background-image: url('../assets/img/bg_body.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  background: var(--gradient-waveform);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; color: var(--text-primary); }

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-title {
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-nav {
  padding: 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-banner-img {
  height: 140px;
  width: auto;
  border-radius: 8px; 
}

.main-nav {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Components (Buttons & Cards)
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.btn-primary:hover {
  background-color: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.surface-card {
  background-color: rgba(22, 24, 29, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 2.5rem;
}

/* Product Card specific */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.product-card-content {
  padding: 3rem;
}

.product-card-visual {
  height: 100%;
  min-height: 300px;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.05);
}

.visual-placeholder {
  color: var(--text-secondary);
  font-family: monospace;
}

.product-ui-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top; /* Show the top-left portion of the UI which usually has the most action */
  display: block;
}

/* Workflow Steps */
.workflow-step {
  text-align: left;
  transition: transform 0.3s ease;
}

.workflow-step:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.2);
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.1);
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 122, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: auto;
  padding: 4rem 0;
  background-color: var(--bg-base);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
}

.footer-brand p {
  font-size: 0.875rem;
  margin-top: 1rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.link-column h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.link-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.link-column a:hover {
  color: var(--accent-cyan);
}

/* Responsive basics */
@media (max-width: 768px) {
  .product-card {
    grid-template-columns: 1fr;
  }
  .product-card-visual {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  .footer-content {
    flex-direction: column;
  }
}
