/* ============================================
   DimQHo Official Website
   Boss 2026-07-30 + 2026-07-31 redesign
   ============================================ */

/* CSS Variables — design tokens */
:root {
  --color-bg: #0a0c1e;
  --color-bg-2: #0f1228;
  --color-bg-3: #1a1d3a;
  --color-cyan: #4fd6ff;
  --color-cyan-bright: #8be8ff;
  --color-purple: #c77dff;
  --color-purple-bright: #d9a3ff;
  --color-gold: #d4a854;
  --color-gold-bright: #f0c878;
  --color-text: #f5f7ff;
  --color-text-2: #aab2d0;
  --color-text-3: #6f7795;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-card-bg: rgba(255, 255, 255, 0.03);
  --gradient-orb: linear-gradient(135deg, #4fd6ff 0%, #c77dff 100%);
  --shadow-glow-cyan: 0 0 40px rgba(79, 214, 255, 0.4);
  --shadow-glow-purple: 0 0 40px rgba(199, 125, 255, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1100px;
  --header-height: 64px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans TC', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-cyan-bright);
}

/* Hidden version badge */
.version-badge {
  position: fixed;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-text-2);
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  opacity: 0.6;
  user-select: none;
  pointer-events: none;
}

.version-badge.hidden {
  display: none;
}

/* Main container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 40px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(79, 214, 255, 0.15) 0%, rgba(199, 125, 255, 0.1) 35%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: relative;
  z-index: 1;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-bg-2);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow:
    var(--shadow-glow-cyan),
    var(--shadow-glow-purple),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-icon {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  letter-spacing: 0.05em;
  background: var(--gradient-orb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--color-text-2);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--color-cyan);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero-intro {
  font-size: 16px;
  color: var(--color-text-2);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.cta-button.primary {
  background: var(--gradient-orb);
  color: var(--color-bg);
  box-shadow: var(--shadow-glow-cyan);
}

.cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(79, 214, 255, 0.6);
  color: var(--color-bg);
}

.cta-button.secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.cta-button.secondary:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-3);
  font-size: 13px;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

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

.arrow {
  font-size: 20px;
  color: var(--color-cyan);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--gradient-orb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-2);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-cyan);
  box-shadow: 0 12px 48px rgba(79, 214, 255, 0.15);
}

.feature-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 48px;
}

.feature-card-wide .feature-phone {
  flex: 0 0 320px;
  max-width: 320px;
}

.feature-card-wide .feature-text {
  flex: 1;
}

.feature-phone {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  aspect-ratio: 9 / 19.5;  /* iPhone aspect */
  max-height: 540px;
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.feature-card-wide .feature-phone {
  max-width: 320px;
  max-height: 580px;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 12px;
  background: rgba(79, 214, 255, 0.12);
  color: var(--color-cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  border: 1px solid rgba(79, 214, 255, 0.3);
  margin-bottom: 4px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.feature-card p {
  font-size: 15px;
  color: var(--color-text-2);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 100px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
  background: var(--gradient-orb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: var(--color-text-2);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.feature-pills li {
  padding: 8px 16px;
  background: rgba(199, 125, 255, 0.1);
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--color-bg-2);
  padding: 24px;
  box-shadow: var(--shadow-glow-cyan), var(--shadow-glow-purple);
  animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* ============================================
   COMPANY SECTION
   ============================================ */
.company {
  padding: 80px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.company .section-title {
  text-align: center;
  margin-bottom: 48px;
}

.company-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.company-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-gold-bright);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.company-card p {
  color: var(--color-text-2);
  line-height: 1.7;
  margin: 8px 0;
}

.company-card a {
  color: var(--color-cyan);
  text-decoration: none;
}

.company-contact {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   GETAPP SECTION (Released info + download)
   ============================================ */
.getapp-section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.getapp-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: center;
}

.getapp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.getapp-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.getapp-caption {
  text-align: center;
  margin-top: 12px;
  color: var(--color-text-3);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.getapp-actions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 220px;
}

.play-button:hover {
  transform: translateY(-2px);
  border-color: var(--color-cyan);
  color: #fff;
  box-shadow: var(--shadow-glow-cyan);
}

.play-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.play-text-top {
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  text-transform: uppercase;
}

.play-text-bottom {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.getapp-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.getapp-qr a {
  display: block;
  padding: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.getapp-qr a:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(79, 214, 255, 0.4);
}

.getapp-qr img {
  width: 180px;
  height: 180px;
  display: block;
}

.release-badge {
  margin-top: 20px;
  padding: 8px 18px;
  background: rgba(212, 168, 84, 0.12);
  border: 1px solid rgba(212, 168, 84, 0.4);
  color: var(--color-gold-bright);
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  display: inline-block;
  letter-spacing: 0.02em;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-2);
  padding: 40px 24px;
  margin-top: 60px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--color-text);
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--color-text-3);
  font-size: 13px;
}

.footer-links a {
  color: var(--color-text-2);
}

.footer-sep {
  color: var(--color-text-3);
}

.footer-lang {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.lang-link {
  color: var(--color-text-3);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.lang-link.active,
.lang-link:hover {
  color: var(--color-cyan);
}

.footer-meta {
  width: 100%;
  text-align: center;
  color: var(--color-text-3);
  font-size: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 60px 16px 40px;
  }

  .hero-orb {
    width: 140px;
    height: 140px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 24px;
  }

  .feature-card-wide {
    flex-direction: column;
  }

  .feature-card-wide .feature-phone {
    flex: 0 0 auto;
    max-width: 280px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-icon {
    width: 180px;
    height: 180px;
  }

  .features, .about, .company, .getapp-section {
    padding: 60px 16px;
  }

  .getapp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .getapp-qr img {
    width: 160px;
    height: 160px;
  }

  .company-card {
    padding: 24px;
  }

  .footer-grid {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .cta-button {
    width: 100%;
  }
}
