/* ==========================================
   MachOneOS Landing Page
   Dark aviation aesthetic — navy, amber, speed
   ========================================== */

/* --- Variables --- */
:root {
  --bg: #060D18;
  --surface: #0B1829;
  --surface-2: #0F2137;
  --amber: #F5A623;
  --orange: #FF5C28;
  --text: #E8EDF3;
  --text-muted: #7A8FA6;
  --border: rgba(245, 166, 35, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 6vw, 120px);
  overflow: hidden;
}

/* Background: Speed lines + orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.speed-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.25;
  transform-origin: left center;
}
.speed-line-1 { top: 18%; width: 60%; left: -10%; transform: rotate(-8deg); opacity: 0.18; animation: drift 8s ease-in-out infinite alternate; }
.speed-line-2 { top: 35%; width: 45%; left: 20%; transform: rotate(-5deg); opacity: 0.12; animation: drift 11s ease-in-out infinite alternate-reverse; }
.speed-line-3 { top: 52%; width: 55%; left: -5%; transform: rotate(-12deg); opacity: 0.22; animation: drift 9s ease-in-out infinite alternate; }
.speed-line-4 { top: 68%; width: 40%; left: 30%; transform: rotate(-4deg); opacity: 0.15; animation: drift 13s ease-in-out infinite alternate-reverse; }
.speed-line-5 { top: 82%; width: 35%; left: 10%; transform: rotate(-9deg); opacity: 0.1; animation: drift 7s ease-in-out infinite alternate; }

@keyframes drift {
  0% { opacity: 0.08; transform: rotate(-8deg) translateX(0); }
  100% { opacity: 0.35; transform: rotate(-8deg) translateX(40px); }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,92,40,0.08) 0%, transparent 70%);
  bottom: -80px; left: 20%;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-top: 120px;
  padding-bottom: 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.headline-accent {
  color: var(--amber);
  font-style: italic;
}

.hero-lede {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-tagline {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 4px;
}

/* --- Command Section --- */
.command {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 120px);
}
.command-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.section-body {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.7;
}

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

.cmd-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.cmd-card:hover {
  border-color: rgba(245,166,35,0.35);
  background: #0e1e33;
}
.cmd-icon {
  color: var(--amber);
  margin-bottom: 18px;
  opacity: 0.9;
}
.cmd-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 8px;
}
.cmd-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Features Section --- */
.features {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) clamp(24px, 6vw, 120px);
}
.features-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.feature:last-child { border-bottom: none; }

.feature-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  color: var(--surface-2);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(245,166,35,0.2);
  transition: -webkit-text-stroke-color 0.3s;
}
.feature:hover .feature-number {
  -webkit-text-stroke: 1px rgba(245,166,35,0.5);
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
}
.feature-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
}

@media (max-width: 640px) {
  .feature { grid-template-columns: 1fr; gap: 12px; }
  .feature-number { font-size: 36px; }
}

/* --- Speed Section --- */
.speed-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(80px, 10vw, 120px) clamp(24px, 6vw, 120px);
}
.speed-inner {
  max-width: 900px;
  margin: 0 auto;
}

.speed-bar {
  margin-bottom: 64px;
}
.speed-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.speed-label-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.speed-label-val {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--amber);
}
.speed-track {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}
.speed-fill {
  height: 100%;
  width: 80%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  border-radius: 2px;
  position: relative;
}
.speed-fill::after {
  content: '';
  position: absolute;
  right: -1px; top: -2px;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
}

.speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.speed-stat {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .speed-grid { grid-template-columns: 1fr; }
}

/* --- Closing --- */
.closing {
  background: var(--bg);
  padding: clamp(100px, 12vw, 180px) clamp(24px, 6vw, 120px);
  text-align: center;
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}
.closing-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 36px;
}
.closing-headline em {
  color: var(--amber);
  font-style: italic;
}
.closing-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.closing-body p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px clamp(24px, 6vw, 120px);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.footer-tagline {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-meta strong { color: var(--text); font-weight: 500; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero { align-items: flex-start; padding-top: 80px; }
  .command-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .command-grid { grid-template-columns: 1fr; }
}
