@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;700;800&display=swap');

:root {
  --bg-main: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-surface: #222222;
  --accent-cyan: #00e5ff;
  --accent-magenta: #ff00ff;
  --text-main: #e0e0e0;
  --text-dim: #888888;
  --border-dark: #333333;

  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.highlight-cyan { color: var(--accent-cyan); }
.highlight-magenta { color: var(--accent-magenta); }

/* Navigation */
header {
  border-bottom: 1px solid var(--border-dark);
  padding: 20px 0;
  background-color: rgba(13, 13, 13, 0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo-icon { fill: var(--accent-cyan); width: 28px; height: 28px; }

nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; font-family: var(--font-mono); font-size: 0.9rem; }
nav a { padding: 5px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--accent-cyan); border-bottom-color: var(--accent-cyan); }

/* Typography & Buttons */
.section-title { font-family: var(--font-mono); font-size: 3rem; margin-bottom: 20px; line-height: 1.2; letter-spacing: -1px; }
.section-subtitle { font-size: 1.25rem; color: var(--text-dim); margin-bottom: 40px; max-width: 800px; }

.btn {
  display: inline-block;
  background-color: var(--accent-cyan);
  color: #000;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  text-align: center;
}
.btn:hover { box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; border: 1px solid var(--accent-cyan); color: var(--accent-cyan); }
.btn-secondary:hover { background-color: rgba(0, 229, 255, 0.1); box-shadow: none; }

/* Layout Blocks */
section { padding: 100px 0; border-bottom: 1px solid var(--border-dark); }
section:last-of-type { border-bottom: none; }

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 40px;
  transition: 0.3s;
}


/* --- Upgraded Footer --- */
footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 20px 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 15px;
}

.footer-logo svg {
  fill: var(--accent-cyan);
  width: 24px;
  height: 24px;
}

.footer-links h4 {
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 15px;
  font-size: 1rem;
  margin-top: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Mobile Responsiveness for Footer */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}


/* Update these lines in your style.css */
.logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* --- Premium Download Split Panel --- */
.download-split-panel {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto 60px auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.os-panel {
  flex: 1;
  padding: 60px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.3s;
}

.os-panel:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.mac-panel {
  border-right: 1px solid var(--border-dark);
}

.os-icon {
  width: 56px;
  height: 56px;
  fill: #fff;
  margin-bottom: 24px;
}

.os-panel h3 {
  font-family: var(--font-mono);
  font-size: 2rem;
  margin: 0 0 10px 0;
  color: #fff;
}

.os-version {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.9rem;
  margin-bottom: 20px;
  background: rgba(0, 229, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.os-desc {
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* Mobile Responsiveness for Download Panel */
@media (max-width: 768px) {
  .download-split-panel { flex-direction: column; }
  .mac-panel { border-right: none; border-bottom: 1px solid var(--border-dark); }
}

/* =========================================
   MOBILE RESPONSIVENESS (Screens under 768px)
   ========================================= */
@media (max-width: 768px) {

  /* 1. Fix the Navigation Bar */
  .nav-wrapper {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
  }

  /* 2. Scale down massive text */
  .section-title {
    font-size: 2rem !important;
  }
  .section-subtitle {
    font-size: 1rem !important;
    padding: 0 15px;
  }

  /* 3. Stack all Grids vertically */
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  /* 4. Fix Hero Buttons so they don't squish */
  div[style*="display: flex; gap: 20px; justify-content: center;"] {
    flex-direction: column;
    gap: 10px !important;
    padding: 0 20px;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* 5. Fix the Deep Dive Section Order */
  /* This makes sure the Image shows BEFORE the text on mobile */
  .grid-2.reverse {
    display: flex;
    flex-direction: column-reverse;
  }

  /* 6. Stack the Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-bottom div[style*="display: flex"] {
    justify-content: center;
  }

  /* 7. Ensure Download Panel splits correctly */
  .download-split-panel {
    flex-direction: column;
  }
  .mac-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
}

/* Extra tweak for really small phones (under 480px) */
@media (max-width: 480px) {
  .os-panel {
    padding: 40px 20px;
  }
  .card {
    padding: 20px 15px !important;
  }
}


/* =========================================
   SMART COLLAPSING HEADER
   ========================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-main); /* Ensures the background is solid */
  border-bottom: 1px solid var(--border-dark);
  transition: transform 0.3s ease-in-out;
}

/* This class gets added by JavaScript to hide the bar */
.nav-hidden {
  transform: translateY(-100%);
}

/* Pushes the rest of the page down so it doesn't hide behind the floating header */
body {
  padding-top: 80px; /* Adjust this number if your header is taller/shorter */
}
