/* ==========================================================================
   QualityTime Official Website Stylesheet
   Theme: Pine Teal (#042F2E), Emerald & Neon Mint (#14B8A6 / #2DD4BF),
   Glassmorphism (Frosted Glass), Modern Minimalist
   ========================================================================== */

:root {
  --bg-darkest: #021a19;
  --bg-primary: #042f2e;
  --bg-radial-1: #0a403d;
  --bg-radial-2: #031e1d;
  --bg-card: rgba(6, 44, 43, 0.65);
  --bg-card-hover: rgba(9, 58, 56, 0.85);
  --bg-glass-input: rgba(2, 26, 25, 0.7);
  
  --primary: #14b8a6;
  --primary-glow: #2dd4bf;
  --primary-deep: #0f766e;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  
  --text-main: #f0fdfa;
  --text-body: #ccfbf1;
  --text-muted: #99f6e4;
  --text-dim: #5eead4;
  --text-subtle: #64748b;
  --border-glass: rgba(45, 212, 191, 0.22);
  --border-glass-light: rgba(255, 255, 255, 0.12);
  --border-focus: #2dd4bf;

  --shadow-glow: 0 0 40px -10px rgba(45, 212, 191, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, var(--bg-radial-1) 0%, var(--bg-radial-2) 45%, var(--bg-darkest) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  line-height: 1.65;
  font-size: 16px;
}

/* Subtle ambient background glow circles */
body::before {
  content: '';
  position: fixed;
  top: -10vw;
  right: -5vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: -10vw;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select {
  font-family: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }

.text-gradient {
  background: linear-gradient(135deg, #f0fdfa 20%, #2dd4bf 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-alt {
  background: linear-gradient(135deg, #2dd4bf 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.18rem;
  color: rgba(240, 253, 250, 0.85);
  line-height: 1.6;
}

.subtle {
  color: rgba(204, 251, 241, 0.65);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(4, 47, 46, 0.75);
  border-bottom: 1px solid var(--border-glass-light);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.brand-name span {
  color: var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(240, 253, 250, 0.8);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-glow);
  box-shadow: 0 0 8px var(--primary-glow);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.65);
  color: #042f2e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0fdfa;
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--primary-glow);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 10px #2dd4bf;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* Hero Section */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  position: relative;
}

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

.hero-title {
  margin: 22px 0 18px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(204, 251, 241, 0.85);
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.release-meta-bar {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  background: rgba(2, 26, 25, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: rgba(240, 253, 250, 0.9);
}

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

.release-meta-bar strong {
  color: #fff;
}

/* Hero App Showcase Visual */
.hero-visual {
  margin-top: 50px;
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.phone-mockup {
  background: #021a19;
  border: 4px solid rgba(45, 212, 191, 0.3);
  border-radius: 40px;
  padding: 14px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(45, 212, 191, 0.25);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  background: linear-gradient(180deg, #042f2e 0%, #021a19 100%);
  border-radius: 30px;
  overflow: hidden;
  padding: 24px 20px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.call-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.call-badge-live {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.call-avatar-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 30px 0;
}

.call-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #14b8a6 0%, #042f2e 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  border: 3px solid #2dd4bf;
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.5);
  position: relative;
}

.call-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  padding: 12px;
  margin-top: 24px;
}

.stat-box {
  text-align: center;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(204, 251, 241, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2dd4bf;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.ctrl-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
}

.ctrl-btn.hangup {
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(220, 38, 38, 0.5);
}

/* Feature Grid */
.features-section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

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

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: #2dd4bf;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.feature-title {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.feature-desc {
  color: rgba(204, 251, 241, 0.75);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Quality Calculator */
.calculator-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.quality-buttons {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.quality-btn {
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-body);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.quality-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--primary-glow);
}

.quality-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.calc-result-card {
  background: rgba(2, 26, 25, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.calc-rate-big {
  font-size: 3rem;
  font-weight: 800;
  color: #2dd4bf;
  margin: 10px 0;
  line-height: 1;
}

/* Download Hub */
.download-hero {
  padding: 80px 0 40px;
  text-align: center;
}

.download-card-featured {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.15) 0%, rgba(6, 44, 43, 0.8) 100%);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  text-align: left;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.platform-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.platform-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--primary-glow);
}

.platform-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 10px;
}

.badge-available {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Step-by-Step Install Guide */
.steps-wrap {
  margin: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #042f2e;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.6);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--border-glass);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.25s ease;
  color: var(--primary-glow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
  color: rgba(204, 251, 241, 0.85);
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 22px;
  transition: max-height 0.4s ease-in-out;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Notes & Checklist */
.notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.notes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(240, 253, 250, 0.9);
  font-size: 0.95rem;
}

.notes-list li::before {
  content: '✓';
  color: #2dd4bf;
  font-weight: 800;
  background: rgba(45, 212, 191, 0.15);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Legal Documents & Content formatting */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px 0 80px;
}

.legal-content h2 {
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.5rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-glass-light);
  padding-bottom: 8px;
}

.legal-content p, .legal-content ul {
  margin-bottom: 18px;
  color: rgba(204, 251, 241, 0.85);
}

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  margin-top: auto;
  background: #021a19;
  border-top: 1px solid var(--border-glass-light);
  padding: 60px 0 30px;
  font-size: 0.9rem;
  color: rgba(204, 251, 241, 0.65);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
}

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

.footer-link {
  color: rgba(204, 251, 241, 0.7);
}

.footer-link:hover {
  color: var(--primary-glow);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Code badge / Hash preview */
.code-inline {
  font-family: var(--font-mono);
  background: rgba(2, 26, 25, 0.8);
  border: 1px solid var(--border-glass-light);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary-glow);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .download-card-featured {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(2, 26, 25, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .hero {
    padding: 50px 0 30px;
  }

  .legal-content {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}
