/* ============================================
   BoreOps Landing Page
   ============================================ */

/* --- Page Loader --- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0;
  height: 100%;
  background: #d97706;
  border-radius: 3px;
  animation: loaderFill 1.2s ease-out forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

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

:root {
  --amber: #d97706;
  --amber-light: #f59e0b;
  --amber-dark: #b45309;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --red: #ef4444;
  --radius: 4px;
  --radius-lg: 6px;
  --nav-height: 80px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate-800);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 800;
}

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

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.25s, box-shadow 0.25s;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 1px 0 rgba(217, 119, 6, 0.15);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-mark {
  display: inline-block;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: contain;
}

.footer-brand .logo-mark {
  width: 52px;
  height: 52px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--slate-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-300);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 10px 22px;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  background: var(--amber-dark);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.text-amber {
  color: var(--amber);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--slate-400);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  background: var(--slate-800);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--slate-500);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--amber);
}

.waitlist-success {
  display: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--amber);
  padding: 12px 0;
}

.trust-line {
  margin-top: 24px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-illustration {
  max-width: 1140px;
  margin: 48px auto 0;
  width: 100%;
  padding: 0 12px;
}

.bore-svg {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--white);
}

.features h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 56px;
  color: var(--slate-900);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  padding: 32px 28px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--amber);
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--slate-900);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* --- Why BoreOps --- */
.why {
  padding: 100px 0;
  background: var(--slate-50);
}

.why h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 56px;
  color: var(--slate-900);
}

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

.why-card {
  position: relative;
  padding: 32px 28px;
  padding-top: 36px;
}

.why-accent {
  position: absolute;
  top: 0;
  left: 28px;
  width: 40px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* --- Tech Specs --- */
.specs {
  padding: 56px 0;
  background: var(--navy);
}

.specs-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 4px;
}

.spec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.spec-divider {
  width: 1px;
  height: 40px;
  background: var(--slate-700);
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
  background: var(--white);
}

.pricing h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--slate-900);
}

.pricing-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--slate-900);
}

.pricing-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  margin-bottom: 28px;
  line-height: 1.65;
}

.pricing-card .waitlist-form {
  margin: 0 auto;
  justify-content: center;
}

.pricing-card .waitlist-form input[type="email"] {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.pricing-card .waitlist-form input[type="email"]::placeholder {
  color: var(--slate-400);
}

.pricing-card .waitlist-form input[type="email"]:focus {
  border-color: var(--amber);
}

.pricing-card .waitlist-success {
  color: var(--amber-dark);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  background: var(--navy);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--slate-500);
}

.footer-copy a {
  color: var(--amber);
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: var(--amber-light);
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: var(--navy-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .why-grid > :last-child {
    grid-column: span 2;
    max-width: 50%;
    justify-self: center;
  }

  .specs-row {
    gap: 28px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --nav-height: 56px;
  }

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

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

  .why-grid > :last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 32px);
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero h1 br {
    display: none;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input[type="email"],
  .waitlist-form .btn {
    width: 100%;
  }

  .specs-row {
    flex-direction: column;
    gap: 24px;
  }

  .spec-divider {
    width: 40px;
    height: 1px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .feature-card {
    padding: 24px 20px;
  }
}
