/* ==========================================================================
   ez-to-ai Official Landing Page (Master Edition)
   iOS 26 3D Liquid Frosted Glass Sculpture System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* --- Root Design Tokens --- */
:root {
  /* Brand Color Palette */
  --bg-dark: #040612;
  --bg-dark-secondary: #0a0d20;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;

  /* Gradient Tokens */
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #3b82f6 100%);
  --grad-text: linear-gradient(135deg, #ffffff 0%, #c084fc 50%, #38bdf8 100%);

  /* Text Colors */
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --text-dim: rgba(255, 255, 255, 0.45);

  /* iOS 26 Glass Properties */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(35px) saturate(200%);
  --glass-border: 1px solid rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.35);

  /* Radius */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* Font Families */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- 极简深空呼吸光环背景 --- */
.minimal-breathing-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  background-color: #020204;
  overflow: hidden;
}


/* --- Master Layout --- */
.page-wrapper {
  box-sizing: border-box;
  max-width: 1280px;
  height: 100svh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 10;
}

/* --- Header / iOS Dynamic Island Navbar --- */
.header-wrapper {
  position: sticky;
  top: 20px;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 1000;
}

.navbar-island {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: calc(100vw - 32px);
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--text-main);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--grad-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b566ff 0%, #0cd1f2 50%, #4f92ff 100%);
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   化境：全息极光视界 (Holographic Aurora Typography)
   ========================================================================== */

/* 1. 极简带微晶噪点的深空背景 */
.minimal-breathing-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -2;
  background-color: #030303;
  overflow: hidden;
}

/* 全屏微晶噪点 (Film Grain) 注入物理真实感 */
.minimal-breathing-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* 低调的环境光斑 (取消动画，保持绝对静止，防止背景底色亮度变化) */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.05; /* 降低到几乎不可见，仅仅为了不至于纯黑死板 */
}

.purple-orb { width: 50vw; height: 50vw; background: #8b5cf6; top: 0%; left: 10%; }
.cyan-orb { width: 60vw; height: 60vw; background: #06b6d4; bottom: 5%; right: 10%; }

/* 2. 主体排版容器 */
.minimal-hero-container {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.holographic-text-mask {
  position: relative;
  display: inline-block;
  perspective: 1200px;
  isolation: isolate;
}

/* --- 3. EZ-TO-AI / physical glass sculpture --- */

.minimal-title {
  position: relative;
  width: min(calc(100vw - 32px), 1920px);
  aspect-ratio: 1080 / 300;
  margin: 0;
  padding: 0;
  display: block;
}

.glass-wordmark-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  contain: layout paint size;
}

.glass-wordmark-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  filter: drop-shadow(10px 18px 18px rgba(0, 0, 0, 0.72));
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-wordmark-stage[data-render-state="ready"] canvas {
  opacity: 1;
}

.glass-wordmark-fallback {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 16vw, 18rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(196, 231, 244, 0.68);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.32), 10px 18px 18px rgba(0, 0, 0, 0.72);
  transition: opacity 220ms ease-out;
  white-space: nowrap;
}

.glass-wordmark-stage[data-render-state="ready"] .glass-wordmark-fallback {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .minimal-subtitle {
    animation: none;
  }

  .glass-wordmark-stage canvas {
    transition: none;
  }
}

/* 4. 极致留白的副标题 (随呼吸变动：最暗 50%，最亮 100%；尺寸 300%；字间距紧凑 0.15em) */
.minimal-subtitle {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-indent: 0.15em;
  animation: subtitleBreathing 4s ease-in-out infinite alternate;
}

.minimal-subtitle-en {
  margin-top: 0.4rem;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1.4vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-indent: 0.28em;
  animation: subtitleBreathing 4s ease-in-out infinite alternate;
}

@keyframes subtitleBreathing {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1.0;
  }
}

/* --- Responsive Adaptations --- */
@media (max-width: 900px) {
  .real-3d-glass-cover {
    padding: 1.6rem 3rem;
    border-radius: 28px;
  }
  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }
  .stat-divider {
    width: 60%;
    height: 1px;
  }
  .code-3d-letter {
    font-size: clamp(3.5rem, 14vw, 16rem);
  }
}

@media (max-width: 640px) {
  .real-3d-glass-cover {
    padding: 1rem 1.8rem;
    border-radius: 22px;
  }
  .page-wrapper {
    padding: 16px;
    gap: 50px;
  }
  .hero-glass-card {
    padding: 28px 18px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .footer-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   iOS 26 磨砂玻璃下载弹窗 (Download Modal Styles)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
  border-radius: 28px;
  background: rgba(18, 22, 42, 0.88);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.modal-icon svg {
  width: 26px; height: 26px;
  stroke: #ffffff;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sys-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.win-icon {
  width: 32px; height: 32px;
  color: #00adef;
  flex-shrink: 0;
}

.sys-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sys-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.sys-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.sys-desc strong {
  color: #ffffff;
}

.btn-download-action {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.btn-download-action[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  filter: saturate(0.45);
  transform: none;
}

.modal-footer {
  margin-top: 18px;
  text-align: center;
}

.version-tip {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}
