/* ==========================================================================
   Mac Fold — Apple Landing Page Stylesheet
   Hero, Interactive Hardware Simulator, Effect Grid, Compatibility & Gatekeeper
   ========================================================================== */

/* Ambient Hero Glow */
.hero-glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle at center, rgba(255, 107, 24, 0.16) 0%, rgba(255, 107, 24, 0.04) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: clamp(60px, 10vw, 110px);
  padding-bottom: clamp(40px, 8vw, 80px);
  text-align: center;
  z-index: 1;
}

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

.hero-title {
  margin-top: 12px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.08;
}

.hero-title .gradient-text {
  background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

[data-theme="light"] .hero-title .gradient-text {
  background: linear-gradient(180deg, #1d1d1f 30%, #515154 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

/* Dual Call-to-Action Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-cta-group .btn-primary {
  min-width: 210px;
}

.hero-cta-group .btn-secondary {
  min-width: 170px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta .separator {
  color: var(--border-regular);
}

/* ==========================================================================
   Interactive MacBook Pro Hardware Showcase
   ========================================================================== */
.hardware-showcase {
  margin-top: 50px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Controls Header Above the Laptop */
.simulator-hud {
  width: 100%;
  max-width: 820px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-subtle);
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.hud-pill .sensor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--apple-green);
  box-shadow: 0 0 8px var(--apple-green);
}

/* Effect Segmented Selector */
.effect-segmented {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  overflow-x: auto;
}

[data-theme="light"] .effect-segmented {
  background: rgba(0, 0, 0, 0.06);
}

.effect-tab {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.effect-tab:hover {
  color: var(--text-primary);
}

.effect-tab.active {
  color: #ffffff;
  background: var(--accent-brand);
  box-shadow: 0 2px 8px rgba(255, 107, 24, 0.4);
}

/* Interactive Slider & Presets Bar */
.simulator-controls {
  width: 100%;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.slider-container {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-container label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.slider-container .angle-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-brand);
  min-width: 44px;
  text-align: right;
}

/* Custom Apple Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  outline: none;
  transition: background var(--transition-fast);
}

[data-theme="light"] input[type="range"] {
  background: rgba(0, 0, 0, 0.12);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--accent-brand);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.25);
}

/* Angle Presets */
.preset-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-regular);
}

.preset-btn.active {
  background: var(--accent-brand-subtle);
  color: var(--accent-brand);
  border-color: var(--accent-brand-border);
}

/* MacBook Pro Physical Enclosure */
.macbook-stage {
  perspective: 1200px;
  width: 100%;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.macbook-lid-assembly {
  width: 100%;
  height: 480px;
  max-height: 58vw;
  background: linear-gradient(180deg, #242428 0%, #121215 8%, #0a0a0c 100%);
  border-radius: 20px 20px 3px 3px;
  padding: 10px 10px 6px 10px;
  position: relative;
  transform-origin: bottom center;
  transition: transform 0.1s ease-out, filter 0.2s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid #000000;
}

/* Liquid Retina XDR Screen Bezel */
.macbook-screen {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 12px 12px 2px 2px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apple Notch with Sensors */
.macbook-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 14px;
  background: #050507;
  border-bottom-left-radius: 7px;
  border-bottom-right-radius: 7px;
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notch-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #1b385e 0%, #060d17 70%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
}

.notch-led {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background-color: var(--apple-green);
  box-shadow: 0 0 5px var(--apple-green);
}

/* Virtual macOS Desktop Screen */
.desktop-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1b1626 0%, #2e1a47 30%, #46255c 60%, #171124 100%);
}

/* Canvas for Real-Time Shader/Effect Simulation */
#simulator-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* MacBook Pro Lower Chassis (Deck & Hinge) */
.macbook-chassis {
  width: calc(100% + 24px);
  height: 12px;
  background: linear-gradient(180deg, #44444c 0%, #2b2b32 40%, #151518 100%);
  border-radius: 2px 2px 8px 8px;
  position: relative;
  display: flex;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  margin-top: -1px;
}

/* Precision CNC Thumb Groove */
.macbook-thumb-groove {
  width: 120px;
  height: 4.5px;
  background: linear-gradient(180deg, #141416 0%, #2c2c33 100%);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border: 0.5px solid rgba(0, 0, 0, 0.8);
  border-top: none;
}

.hardware-caption {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 20px;
  text-align: center;
}

/* ==========================================================================
   The Six Effects Bento Grid
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 60px auto;
}

.section-header h2 {
  margin-top: 12px;
  margin-bottom: 16px;
}

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

@media (max-width: 960px) {
  .effects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.effect-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  cursor: pointer;
}

.effect-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.effect-card-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-brand);
  letter-spacing: 0.05em;
}

.effect-card-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.effect-card-preview {
  height: 140px;
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  background: #0d0d12;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.effect-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.effect-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ==========================================================================
   Engineering & Privacy Section (Apple Style)
   ========================================================================== */
.specs-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.specs-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.spec-card-wide {
  grid-column: span 8;
}

.spec-card-narrow {
  grid-column: span 4;
}

.spec-card-half {
  grid-column: span 6;
}

@media (max-width: 900px) {
  .spec-card-wide,
  .spec-card-narrow,
  .spec-card-half {
    grid-column: span 12;
  }
}

.spec-stat {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-brand);
  margin-bottom: 12px;
}

.spec-diagram {
  margin-top: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive Compatibility Checker
   ========================================================================== */
.compat-section {
  padding: 80px 0;
}

.compat-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.compat-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0 32px 0;
}

.compat-chip {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compat-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-regular);
  color: var(--text-primary);
}

.compat-chip.active {
  background: var(--accent-brand-subtle);
  border-color: var(--accent-brand);
  color: var(--text-primary);
}

.compat-chip .chip-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.compat-chip.active .chip-sub {
  color: var(--accent-brand);
}

.compat-result-box {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-regular);
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.compat-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compat-status-icon.supported {
  background: rgba(48, 209, 88, 0.15);
  color: var(--apple-green);
  border: 1px solid rgba(48, 209, 88, 0.4);
}

.compat-status-icon.unsupported {
  background: rgba(255, 214, 10, 0.15);
  color: var(--apple-yellow);
  border: 1px solid rgba(255, 214, 10, 0.4);
}

.compat-result-text h4 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.compat-result-text p {
  font-size: 0.9375rem;
}

/* ==========================================================================
   Installation & Gatekeeper Walkthrough (3 Steps)
   ========================================================================== */
.install-section {
  padding: 80px 0;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

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

.install-step-card {
  padding: 32px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-brand-subtle);
  color: var(--accent-brand);
  border: 1px solid var(--accent-brand-border);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
}

.install-step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.install-step-card p {
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.install-callout {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Apple Style Global Footer
   ========================================================================== */
.apple-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 50px 0 30px 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
}

.footer-disclaimer {
  max-width: 820px;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

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

.footer-column h5 {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
