:root {
  --apple-white: #ffffff;
  --apple-black: #1d1d1f;
  --apple-gray-1: #f5f5f7;
  --apple-gray-2: #e8e8ed;
  --apple-gray-3: #d2d2d7;
  --apple-gray-4: #86868b;
  --apple-gray-5: #515154;
  --apple-gray-6: #1d1d1f;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --success-green: #30d158;
  --error-red: #ff3b30;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.04);
  --glass-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--apple-gray-1);
  color: var(--apple-black);
}

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

.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: 56px;
  display: flex;
  align-items: center;
}

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

.brand {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-black);
}

.nav-links {
  display: flex;
  gap: 16px;
  color: var(--apple-gray-5);
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

.nav-meta {
  font-size: 13px;
  color: var(--apple-gray-4);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 40px;
  max-width: 100%;
  margin: 0 auto;
}

.hero-inner {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 0 48px;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
}

.seo-blurb {
  max-width: 900px;
  margin: 16px auto 32px;
  padding: 0 12px;
}

.seo-blurb p {
  margin: 0;
  color: var(--apple-gray-5);
  font-size: 15px;
  line-height: 1.6;
}

.hero-copy h1 {
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 8px 0 16px;
  color: #1d1d1f;
}

.text-blue {
  color: #0071e3;
}

.lede {
  font-size: 18px;
  line-height: 1.38;
  font-weight: 400;
  color: var(--apple-gray-5);
  margin: 0 0 18px;
  max-width: 520px;
}

.sublede {
  color: var(--apple-gray-5);
  margin: 12px 0 0;
  max-width: 520px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-gray-4);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 10px;
}

.pill {
  background: var(--apple-gray-2);
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--apple-gray-5);
}

.upload-stack {
  display: flex;
  justify-content: flex-end;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-stack.has-files {
  grid-column: 1 / -1;
  justify-content: center;
}

.hero-inner.files-active {
  align-items: flex-start;
  min-height: 80vh;
}

.hero-inner.files-active .hero-copy {
  padding-top: 0;
}

.hero-inner.files-active .hero-copy .eyebrow {
  font-size: 10px;
  margin-bottom: 4px;
}

.hero-inner.files-active .hero-copy h1 {
  font-size: clamp(24px, 2.8vw, 36px);
  margin: 4px 0 8px;
  line-height: 1.1;
}

.hero-inner.files-active .hero-copy .lede {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  max-width: 420px;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  border-radius: 18px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), 0 8px 24px rgba(0, 0, 0, 0.08);
}

.upload-card {
  width: 100%;
  max-width: 520px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-card.full-width {
  max-width: 1200px;
}

.upload-card:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.upload-zone {
  border: 2px dashed var(--apple-gray-3);
  border-radius: 12px;
  padding: 32px 24px;
  background: var(--apple-gray-1);
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.upload-zone:hover {
  border-color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.04);
}

.upload-zone.dragging,
.upload-zone.dragover {
  border-color: var(--apple-blue);
  background: rgba(0, 113, 227, 0.08);
  transform: scale(1.02);
}

.upload-icon {
  width: 80px;
  height: 80px;
}

.upload-copy strong {
  font-size: 18px;
  color: var(--apple-black);
}

.upload-copy p {
  margin: 4px 0 0;
  color: var(--apple-gray-5);
  font-size: 15px;
}

.file-list {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list.hidden {
  display: none;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--apple-white);
  border: 1px solid var(--apple-gray-2);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.file-item.oversized,
.file-item.excess {
  border-color: var(--error-red);
  background: rgba(255, 59, 48, 0.04);
}

.file-item.oversized .file-size,
.file-item.excess .file-size {
  color: var(--error-red);
  font-weight: 600;
}

.file-thumbnail {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.file-thumbnail svg {
  width: 100%;
  height: 100%;
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 2px;
}

.file-size {
  font-size: 12px;
  color: var(--apple-gray-4);
  margin: 0;
}

.file-remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--apple-gray-2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.file-remove:hover {
  background: var(--error-red);
  transform: scale(1.1);
}

.file-remove svg {
  width: 14px;
  height: 14px;
  stroke: var(--apple-gray-5);
  transition: stroke 0.2s ease;
}

.file-remove:hover svg {
  stroke: white;
}

.upload-actions {
  display: flex;
  gap: 12px;
  margin: 16px 0 10px;
}

.primary-btn {
  background: var(--apple-blue);
  color: #fff;
  border: none;
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
}

.primary-btn:hover {
  background: var(--apple-blue-hover);
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: scale(0.98);
}

.primary-btn:disabled {
  background: var(--apple-gray-3);
  color: var(--apple-gray-4);
  cursor: not-allowed;
  box-shadow: none;
}

.ghost-btn {
  background: transparent;
  color: var(--apple-blue);
  border: 1px solid var(--apple-gray-3);
  border-radius: 980px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ghost-btn:hover {
  background: var(--apple-gray-1);
  border-color: var(--apple-gray-4);
}

.status-row {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--apple-gray-2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(245,245,247,0.9) 0%, rgba(232,232,237,0.8) 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.status-text {
  color: var(--apple-gray-4);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.9;
}

.status-text.success {
  color: var(--apple-gray-5);
}

.status-text.error {
  color: var(--error-red);
  font-weight: 500;
}

.status-row.complete {
  opacity: 0.7;
}

.progress {
  height: 4px;
  background: var(--apple-gray-2);
  border-radius: 2px;
  overflow: hidden;
  display: none;
}

.progress.active {
  display: block;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--apple-blue);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

.progress-fill span {
  display: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.result-panel {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--apple-gray-2);
  background: var(--apple-gray-1);
}

.result-panel.hidden {
  display: none;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-header h3 {
  margin: 4px 0 0;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#apply-speed-btn {
  min-width: 120px;
}

.result-subhead {
  font-size: 14px;
  color: var(--apple-gray-4);
  margin: 8px 0 12px;
}

.result-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.result-card {
  border: 1px solid var(--apple-gray-2);
  border-radius: 12px;
  padding: 12px;
  background: var(--apple-white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  gap: 8px;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.result-card.active {
  border-color: var(--apple-blue);
  box-shadow: 0 12px 24px rgba(0, 113, 227, 0.14);
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--apple-black);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card-status {
  font-size: 12px;
  color: var(--apple-gray-4);
}

.result-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--apple-gray-1);
  color: var(--apple-gray-5);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.result-chip.dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-gray-4);
}

.result-chip.success {
  color: var(--success-green);
  background: rgba(48, 209, 88, 0.12);
}

.result-chip.success.dot::before {
  background: var(--success-green);
}

.result-chip.error {
  color: var(--error-red);
  background: rgba(255, 59, 48, 0.12);
}

.result-chip.error.dot::before {
  background: var(--error-red);
}

.result-card .primary-btn {
  padding: 8px 12px;
  min-width: 0;
}

.player-stack {
  display: grid;
  gap: 10px;
  scroll-margin-top: 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.stat {
  background: var(--apple-gray-1);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.stat:hover {
  background: var(--apple-gray-2);
  transform: translateY(-2px);
}

.stat .label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-gray-4);
  margin-bottom: 6px;
}

.stat .value {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-black);
}

.stat.success .value {
  color: var(--success-green);
}

/* Preview Player */
.preview-player {
  margin: 20px 0;
  background: var(--apple-white);
  border-radius: 14px;
  overflow: hidden;
}

.preview-stage {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  transition: background 0.3s ease;
}

#lottie-player {
  width: 100%;
  height: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#gif-player {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#gif-player.hidden {
  display: none;
}

/* Player Controls */
.player-controls {
  padding: 16px 20px;
  background: var(--apple-white);
  border: 1px solid var(--apple-gray-2);
  border-radius: 14px;
}

.player-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

/* Control Buttons */
.control-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--apple-gray-5);
  transition: all 0.2s ease;
  padding: 0;
}

.control-icon-btn:hover {
  background: var(--apple-gray-1);
  color: var(--apple-black);
}

.control-icon-btn.active {
  color: var(--apple-blue);
}

.control-icon-btn.active:hover {
  background: rgba(0, 113, 227, 0.08);
}

.control-text-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-gray-5);
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.control-text-btn:hover {
  background: var(--apple-gray-1);
  color: var(--apple-black);
}

.color-picker-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.color-picker-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}

.color-picker-input::-webkit-color-swatch,
.color-picker-input::-moz-color-swatch {
  border: none;
  padding: 0;
  background: transparent;
}

.color-picker-input:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 2px;
}

/* Time Display */
.time-display {
  font-size: 12px;
  font-weight: 500;
  color: var(--apple-gray-4);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

/* Playback Slider with Blue Fill */
.playback-slider-wrapper {
  position: relative;
  flex: 1;
  height: 16px;
  min-width: 100px;
  display: flex;
  align-items: center;
  border-radius: 999px;
}

.playback-slider-wrapper::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #f8f8fa 0%, #e8e8ed 100%);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.playback-slider {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  z-index: 3;
  margin: 0;
  padding: 0;
}

.playback-slider-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 6px;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  pointer-events: none;
  z-index: 2;
  transform: translateY(-50%);
}

.playback-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--apple-blue);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.playback-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.4);
}

.playback-slider::-webkit-slider-runnable-track {
  background: transparent;
  height: 100%;
}

.playback-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--apple-blue);
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.3);
  transition: all 0.2s ease;
}

.playback-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.4);
}

.playback-slider::-moz-range-track {
  background: transparent;
  height: 100%;
}

.playback-slider::-moz-range-progress {
  background: transparent;
}

/* Speed Control & Dropdown */
.speed-control-wrapper {
  position: relative;
  min-width: 68px;
}

.speed-control-wrapper #speed-value {
  display: inline-block;
  min-width: 36px;
  text-align: center;
}

.speed-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--apple-white);
  border: 1px solid var(--apple-gray-2);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 4px;
  min-width: 80px;
  z-index: 1000;
}

.speed-dropdown.hidden {
  display: none;
}

.speed-option {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-gray-5);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.speed-option:hover {
  background: var(--apple-gray-1);
  color: var(--apple-black);
}

.speed-option.active {
  background: var(--apple-blue);
  color: white;
}


/* Responsive Player Controls */
@media (max-width: 768px) {
  .player-controls-bar {
    gap: 8px;
  }

  .time-display {
    font-size: 11px;
    min-width: 32px;
  }

  .control-icon-btn,
  .control-text-btn {
    width: 28px;
    height: 28px;
  }

  .control-text-btn {
    padding: 0 8px;
    font-size: 12px;
  }
}

/* Privacy Notice */
.privacy-notice {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  max-width: 520px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.08) 0%, rgba(48, 209, 88, 0.03) 100%);
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-inner.files-active .privacy-notice {
  max-width: 1200px;
  margin: 24px auto 0;
}

.privacy-notice:hover {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.1) 0%, rgba(48, 209, 88, 0.04) 100%);
  border-color: rgba(48, 209, 88, 0.3);
}

.privacy-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success-green);
  opacity: 0.9;
}

.privacy-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--apple-gray-5);
}

@media (max-width: 600px) {
  .privacy-notice {
    padding: 14px 16px;
    gap: 12px;
  }

  .privacy-notice p {
    font-size: 13px;
  }
}

/* Privacy Notice Simple */
.privacy-notice-simple {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.08) 0%, rgba(48, 209, 88, 0.03) 100%);
  border: 1px solid rgba(48, 209, 88, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.3s ease;
}

.privacy-notice-simple:hover {
  background: linear-gradient(135deg, rgba(48, 209, 88, 0.1) 0%, rgba(48, 209, 88, 0.04) 100%);
  border-color: rgba(48, 209, 88, 0.3);
}

.privacy-notice-simple .privacy-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success-green);
  opacity: 0.9;
}

.privacy-notice-simple p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--apple-gray-5);
}

@media (max-width: 768px) {
  .privacy-notice-simple {
    padding: 16px 20px;
    gap: 12px;
  }

  .privacy-notice-simple p {
    font-size: 14px;
  }
}

.preview-section {
  margin-top: 32px;
}

.preview-header h2 {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 4px;
}

.section-copy {
  color: var(--apple-gray-5);
  max-width: 540px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.preview-card {
  padding: 18px;
}

.preview-title {
  font-weight: 600;
  color: var(--apple-black);
  margin-bottom: 8px;
}

.preview-body {
  background: var(--apple-gray-1);
  border-radius: 12px;
  border: 1px solid var(--apple-gray-2);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.preview-media {
  max-width: 100%;
  max-height: 260px;
  display: none;
}

.preview-body.active .preview-media {
  display: block;
}

.placeholder {
  color: var(--apple-gray-4);
  text-align: center;
  padding: 0 12px;
}

.lottie-player {
  width: 100%;
  height: 240px;
}

.features-section {
  margin: 80px 0 40px;
}

.features-header h2 {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-item {
  text-align: center;
  padding: 32px 18px;
  background: var(--apple-gray-1);
  border-radius: 18px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: var(--apple-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-item h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 6px;
  color: var(--apple-black);
}

.feature-item p {
  font-size: 16px;
  color: var(--apple-gray-5);
  margin: 0;
}

.section-header h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 8px;
}

.specs-section {
  margin: 60px 0 40px;
}

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

.spec-card {
  background: var(--apple-white);
  border: 1px solid var(--apple-gray-2);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.spec-card .label {
  color: var(--apple-gray-4);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spec-card .value {
  display: block;
  font-weight: 600;
  font-size: 20px;
  color: var(--apple-black);
}

.spec-card p {
  color: var(--apple-gray-5);
  margin-top: 6px;
}

.meta-note {
  color: var(--apple-gray-5);
  font-size: 14px;
  margin-top: 12px;
  max-width: 640px;
}

/* FAQ Section */
.faq-section {
  margin: 80px 0 40px;
  padding: 60px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-header h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
  color: var(--apple-black);
}

.faq-header .section-copy {
  max-width: 600px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.47;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--apple-white);
  border-radius: 16px;
  border: 1px solid var(--apple-gray-2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--apple-gray-3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-question {
  position: relative;
  display: block;
  padding: 24px 72px 24px 28px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--apple-black);
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question::before,
.faq-question::after {
  content: '';
  position: absolute;
  right: 28px;
  top: 50%;
  height: 2px;
  width: 13px;
  background: var(--apple-gray-4);
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1), background 0.18s ease;
  transform-origin: center;
  will-change: transform;
}

.faq-question::before {
  transform: rotate(45deg);
  right: 36px;
}

.faq-question::after {
  transform: rotate(-45deg);
}

.faq-item.content-visible .faq-question::before {
  transform: rotate(-45deg);
  background: var(--apple-blue);
}

.faq-item.content-visible .faq-question::after {
  transform: rotate(45deg);
  background: var(--apple-blue);
}

.faq-question-text {
  display: block;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 28px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: grid-template-rows 0.18s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.14s ease-out, padding 0.18s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: grid-template-rows, opacity, padding;
}

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
}

.faq-item.content-visible .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 0 28px 20px;
  pointer-events: auto;
}

.faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--apple-gray-5);
  margin: 0;
}

.contact-section {
  padding: 80px 0 60px;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 16px;
}

.contact-copy h2 {
  margin: 6px 0 8px;
}

.contact-form {
  background: var(--apple-white);
  border: 1px solid var(--apple-gray-2);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 12px;
}

.contact-form .input-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.contact-form .input-group {
  display: grid;
  gap: 6px;
}

.contact-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-gray-5);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--apple-gray-3);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--apple-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

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

.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-status {
  font-size: 13px;
  color: var(--apple-gray-4);
}

.contact-status.success {
  color: var(--success-green);
}

.contact-status.error {
  color: var(--error-red);
}

@media (max-width: 768px) {
  .faq-question {
    padding: 20px 20px;
  }

  .faq-question-text {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.content-visible .faq-answer {
    padding: 0 20px 18px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

.footer {
  background: var(--apple-gray-1);
  border-top: 1px solid var(--apple-gray-2);
  padding: 48px 24px;
  margin-top: 80px;
  text-align: center;
  color: var(--apple-gray-4);
}

.footer-copy {
  margin: 0 0 6px;
  color: var(--apple-gray-5);
}

.footer-meta {
  margin: 0;
  color: var(--apple-gray-4);
  font-size: 13px;
}

.fade-in-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 80px 0 40px;
  }

  main {
    padding: 0 18px 72px;
  }

  .upload-actions {
    flex-direction: column;
  }
}
