:root {
  --bg: #eef4ff;
  --bg-strong: #e6eeff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(167, 189, 233, 0.42);
  --text: #172033;
  --muted: #62718a;
  --primary: #3b82f6;
  --secondary: #7c5cff;
  --accent-pink: #ff6fa9;
  --accent-cyan: #5bd7ff;
  --accent-green: #47c98e;
  --accent-yellow: #ffd166;
  --shadow-lg: 0 24px 60px rgba(45, 72, 126, 0.16);
  --shadow-md: 0 16px 34px rgba(52, 88, 164, 0.12);
  --shadow-sm: 0 10px 22px rgba(52, 88, 164, 0.08);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(223, 235, 255, 0.18), rgba(214, 228, 252, 0.26)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2200&q=80") center/cover fixed,
    radial-gradient(circle at 12% 14%, rgba(91, 215, 255, 0.2), transparent 20%),
    radial-gradient(circle at 86% 18%, rgba(255, 111, 169, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(124, 92, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #edf4ff 0%, var(--bg) 100%);
  background-blend-mode: multiply, normal, screen, screen, screen, normal;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1780px, calc(100% - 24px));
  margin: 26px auto 56px;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  animation: floatBlob 12s ease-in-out infinite;
}

.blob-one {
  top: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: rgba(91, 215, 255, 0.28);
}

.blob-two {
  top: 18%;
  right: -70px;
  width: 260px;
  height: 260px;
  background: rgba(255, 111, 169, 0.2);
  animation-delay: -4s;
}

.blob-three {
  bottom: -90px;
  left: 44%;
  width: 280px;
  height: 280px;
  background: rgba(124, 92, 255, 0.16);
  animation-delay: -7s;
}

.grid-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 60%);
  opacity: 0.18;
  z-index: 0;
}

.glass-card,
.feature-card,
.feature-chip,
.compressor-panel,
.apps-panel,
.upload-area,
.glass-inner,
.media-card,
.screen-card,
.floating-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero,
.feature-row,
.compressor-panel,
.apps-panel {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.hero-copy,
.hero-visual,
.compressor-panel,
.apps-panel {
  border-radius: var(--radius-xl);
}

.apps-panel {
  margin-top: 20px;
  padding: 24px;
}

.apps-panel-heading {
  margin-bottom: 16px;
}

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

.app-link-chip {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
}

.app-link-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dark {
  background: rgba(124, 92, 255, 0.1);
  color: var(--secondary);
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-button,
.primary-button,
.secondary-button {
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), opacity var(--transition);
}

.hero-button:hover,
.primary-button:hover,
.secondary-button:hover,
.feature-card:hover,
.feature-chip:hover,
.media-card:hover,
.floating-chip:hover,
.screen-card:hover {
  transform: translateY(-3px);
}

.hero-button-primary,
.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent-pink));
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.2);
}

.hero-button-secondary,
.secondary-button {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel-strong);
}

.hero-button:active,
.primary-button:active,
.secondary-button:active {
  transform: scale(0.98);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span,
.panel-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  font-weight: 700;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 420px;
}

.screen-card {
  position: relative;
  border-radius: 26px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
  animation: floatCard 5.5s ease-in-out infinite;
}

.screen-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.screen-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.screen-topbar span:nth-child(1) { background: #ff7b7b; }
.screen-topbar span:nth-child(2) { background: #ffd166; }
.screen-topbar span:nth-child(3) { background: #59d7ff; }

.screen-preview {
  height: 220px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(91, 215, 255, 0.34), rgba(255, 111, 169, 0.24)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 420'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23e7f6ff'/%3E%3Cstop offset='1' stop-color='%23efe6ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='420' rx='30' fill='url(%23g)'/%3E%3Cpath d='M0 310 C120 250 230 250 360 312 S600 360 800 240 V420 H0 Z' fill='%235bd7ff' opacity='0.46'/%3E%3Cpath d='M0 340 C120 290 260 260 430 322 S640 336 800 274 V420 H0 Z' fill='%23ff6fa9' opacity='0.3'/%3E%3Ccircle cx='620' cy='128' r='48' fill='%23ffffff' opacity='0.5'/%3E%3C/svg%3E") center/cover;
}

.screen-progress {
  height: 14px;
  margin-top: 16px;
  border-radius: 999px;
  background: #e8eefb;
  overflow: hidden;
}

.screen-progress-fill {
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), var(--secondary), var(--accent-pink));
  animation: fillPulse 2.8s ease-in-out infinite;
}

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

.screen-stats article {
  padding: 14px;
  border-radius: 16px;
  background: #f4f8ff;
  border: 1px solid #dfe8f7;
}

.screen-stats span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.screen-stats strong {
  display: block;
  font-size: 1.2rem;
}

.floating-chip {
  position: absolute;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.chip-top {
  top: 20px;
  right: 20px;
  animation: floatCard 6s ease-in-out infinite reverse;
}

.chip-middle {
  left: 20px;
  bottom: 34px;
  animation: floatCard 7s ease-in-out infinite;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.feature-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #ebf3ff, #ffeaf4);
  box-shadow: var(--shadow-sm);
  font-size: 1.5rem;
}

.compressor-panel {
  padding: 28px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 20px;
}

.left-column,
.right-column {
  display: grid;
  gap: 16px;
}

.upload-area,
.glass-inner,
.media-card {
  border-radius: var(--radius-lg);
}

.upload-area {
  padding: 28px;
  text-align: center;
  border-style: dashed;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
}

.upload-area:hover,
.upload-area.is-dragover {
  background: #fbfdff;
  border-color: var(--accent-cyan);
  box-shadow: 0 18px 30px rgba(91, 215, 255, 0.14);
}

.upload-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #e9f3ff, #ffe9f3, #fff2cf);
  box-shadow: var(--shadow-sm);
  animation: pulseIcon 3s ease-in-out infinite;
}

.upload-title {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.upload-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  margin: 0;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.media-art {
  width: 100%;
  height: 170px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.art-edit {
  background-image:
    linear-gradient(135deg, rgba(23, 32, 51, 0.08), rgba(23, 32, 51, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 500'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%237c5cff'/%3E%3Cstop offset='0.5' stop-color='%235bd7ff'/%3E%3Cstop offset='1' stop-color='%23ff6fa9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='900' height='500' rx='40' fill='url(%23g)'/%3E%3Crect x='104' y='84' width='694' height='332' rx='24' fill='%23142136' opacity='0.86'/%3E%3Crect x='150' y='128' width='226' height='150' rx='18' fill='%23253e67'/%3E%3Crect x='410' y='128' width='250' height='22' rx='11' fill='%235bd7ff'/%3E%3Crect x='410' y='172' width='198' height='18' rx='9' fill='%23ffffff' opacity='0.72'/%3E%3Crect x='410' y='208' width='168' height='18' rx='9' fill='%23ffffff' opacity='0.48'/%3E%3Crect x='150' y='320' width='512' height='22' rx='11' fill='%23ffffff' opacity='0.26'/%3E%3Crect x='150' y='360' width='360' height='18' rx='9' fill='%23ff6fa9' opacity='0.62'/%3E%3C/svg%3E");
}

.art-cloud {
  background-image:
    linear-gradient(135deg, rgba(23, 32, 51, 0.06), rgba(23, 32, 51, 0.02)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 500'%3E%3Cdefs%3E%3ClinearGradient id='g2' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%235bd7ff'/%3E%3Cstop offset='1' stop-color='%237c5cff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='900' height='500' rx='40' fill='%23edf5ff'/%3E%3Cpath d='M178 320c0-44 33-74 80-74 11-52 54-86 114-86 61 0 109 42 116 98 12-6 26-8 41-8 49 0 84 34 84 80s-37 80-86 80H262c-50 0-84-38-84-90z' fill='url(%23g2)'/%3E%3Crect x='198' y='134' width='510' height='28' rx='14' fill='%23ffffff' opacity='0.52'/%3E%3Crect x='198' y='184' width='344' height='18' rx='9' fill='%232563eb' opacity='0.2'/%3E%3Crect x='198' y='220' width='392' height='18' rx='9' fill='%23ff6fa9' opacity='0.22'/%3E%3Ccircle cx='660' cy='320' r='42' fill='%23ffffff' opacity='0.52'/%3E%3Cpath d='M642 320l14 14 26-30' fill='none' stroke='%232563eb' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.media-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 700;
}

.controls,
.info-grid,
.file-box {
  display: grid;
  gap: 14px;
}

.controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.status-label {
  font-weight: 800;
}

select {
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

select:focus,
button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(91, 215, 255, 0.18);
}

.action-button {
  width: 100%;
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.glass-inner {
  padding: 18px;
}

.status-text {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.file-box {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.file-item {
  padding: 16px;
  border-radius: 16px;
  background: #f7faff;
  border: 1px solid #dde7f6;
}

.file-item span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.count-up {
  font-variant-numeric: tabular-nums;
}

.reveal {
  animation: revealIn 0.7s ease both;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fillPulse {
  0%, 100% { width: 76%; }
  50% { width: 86%; }
}

@keyframes pulseIcon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(91, 215, 255, 0.16);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 14px rgba(91, 215, 255, 0);
  }
}

@media (max-width: 1180px) {
  .hero,
  .panel-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .hero-text {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(1780px, calc(100% - 16px));
    margin: 18px auto 40px;
  }

  .hero-copy,
  .hero-visual,
  .compressor-panel,
  .apps-panel,
  .upload-area,
  .glass-inner,
  .media-card {
    padding: 18px;
  }

  .controls,
  .info-grid,
  .file-box,
  .media-grid,
  .apps-links-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .app-link-chip {
    min-height: 50px;
    padding: 13px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
