/* ============================================
   BLACK MOUNTAIN TECHNOLOGIES
   Apple-inspired minimal design system
   Black & white, clean, lots of white space
   ============================================ */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --font-main: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --section-padding: 80px 24px;
}

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

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
}

h2 {
  font-size: clamp(32px, 4vw, 56px);
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
}

h4 {
  font-size: 20px;
}

p {
  color: var(--gray-600);
  max-width: 640px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-padding);
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

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

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-home {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
  cursor: pointer;
}

.nav-home span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links .btn-nav {
  background: var(--black);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-links .btn-nav:hover {
  background: var(--gray-800);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--gray-800);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--gray-300);
}

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

.btn-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.btn-text {
  background: none;
  color: var(--black);
  padding: 0;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-text::after {
  content: '\2192';
  transition: transform 0.2s;
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 20px;
  position: relative;
}

.hero h1 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
}

.hero .hero-sub {
  font-size: 19px;
  margin: 0 auto 40px;
  max-width: 520px;
  color: var(--gray-500);
}

/* Origins section */
.origins-label {
  text-align: center;
}

.origins-heading {
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
  padding: 0 0 16px;
}

.origins-intro {
  text-align: center;
  margin: 0 auto;
}

.hero p {
  font-size: 17px;
  margin: 0 auto 32px;
  max-width: 520px;
  color: var(--gray-500);
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-video-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 0;
}

.hero-video-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero-video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  background: var(--gray-50);
  text-align: center;
}

.problem h2 {
  margin-bottom: 24px;
}

.problem > .container > p {
  margin: 0 auto 64px;
  font-size: 19px;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 200px;
  margin: 0 auto;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
  text-align: center;
}

.products h2 {
  margin-bottom: 24px;
}

.products > .container > p {
  margin: 0 auto 80px;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.product-card {
  text-align: left;
  padding: 48px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s;
}

.product-card:hover {
  border-color: var(--gray-400);
}

.product-card h3 {
  margin-bottom: 16px;
  font-size: 28px;
}

.product-card .product-target {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.product-card p {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 1.7;
}

.product-card .feature-list {
  list-style: none;
  margin-bottom: 40px;
}

.product-card .feature-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-card .feature-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--black);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.product-card .card-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   AI SECTION
   ============================================ */
.ai-section {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.ai-section .section-label {
  color: var(--gray-500);
}

.ai-section h2 {
  margin-bottom: 24px;
}

.ai-section > .container > p {
  color: var(--gray-400);
  margin: 0 auto 64px;
  font-size: 19px;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.ai-card {
  padding: 40px;
  border-radius: 16px;
  background: var(--gray-900);
  border: 1px solid var(--gray-800);
}

.ai-card h4 {
  margin-bottom: 12px;
  color: var(--white);
}

.ai-card p {
  color: var(--gray-400);
  font-size: 15px;
}

/* ============================================
   DEMO SECTION
   ============================================ */
.demo-section {
  text-align: center;
  background: var(--gray-50);
}

.demo-section h2 {
  margin-bottom: 24px;
}

.demo-section > .container > p {
  margin: 0 auto 48px;
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.demo-tab {
  padding: 10px 24px;
  border-radius: 980px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
}

.demo-tab.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.demo-tab:hover:not(.active) {
  border-color: var(--black);
}

.demo-preview {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-preview img {
  width: 100%;
  height: auto;
}

.demo-placeholder {
  color: var(--gray-400);
  font-size: 15px;
  padding: 80px;
}

/* ============================================
   FUTURE / VISION SECTION
   ============================================ */
.future {
  text-align: center;
}

.future h2 {
  margin-bottom: 24px;
}

.future > .container > p {
  margin: 0 auto 64px;
  font-size: 19px;
}

.future-timeline {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.timeline-item {
  padding: 32px 0;
  border-top: 1px solid var(--gray-200);
}

.timeline-item h4 {
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 15px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  text-align: center;
  background: var(--gray-50);
}

.cta h2 {
  margin-bottom: 20px;
}

.cta p {
  margin: 0 auto 40px;
  font-size: 19px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 24px;
  border-top: 1px solid var(--gray-200);
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 28px;
  width: auto;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
  padding: 160px 24px 80px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 20px;
}

.page-hero p {
  margin: 0 auto;
  font-size: 20px;
  color: var(--gray-500);
}

.story-section {
  padding: var(--section-padding);
}

.story-section .container {
  max-width: 720px;
}

.story-section h2 {
  margin-bottom: 32px;
  font-size: 32px;
}

.story-section p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.8;
}

/* ============================================
   PRODUCT PAGES
   ============================================ */
.product-hero {
  padding: 160px 24px 80px;
  text-align: center;
}

.product-hero h1 {
  margin-bottom: 20px;
}

.product-hero p {
  margin: 0 auto;
  font-size: 20px;
  color: var(--gray-500);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.feature-card h4 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
}

.product-cta {
  text-align: center;
  padding: var(--section-padding);
  background: var(--gray-50);
}

.product-cta h2 {
  margin-bottom: 20px;
}

.product-cta p {
  margin: 0 auto 40px;
  font-size: 19px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-form-section {
  padding: var(--section-padding);
}

.contact-form-section .container {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-main);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .product-cards {
    grid-template-columns: 1fr;
  }

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

  .problem-stats {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-home {
    z-index: 10;
  }

  .hero {
    padding: 120px 20px 60px;
    min-height: auto;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .hero-video-container {
    max-width: 100%;
  }

  .product-card {
    padding: 32px;
  }

  .ai-card {
    padding: 28px;
  }

  footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .page-hero {
    padding: 120px 20px 60px;
  }
}

@media (max-width: 480px) {
  .demo-tabs {
    flex-wrap: wrap;
  }

  .product-card .card-buttons {
    flex-direction: column;
  }
}
