/* ============================================
   SpeakFit Website — Main Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #f8f9fc;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

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

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #4a90d9, #6c5ce7);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, #4a90d9 0%, #6c5ce7 50%, #a29bfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #4a90d9, #6c5ce7);
  color: #fff;
  box-shadow: 0 4px 20px rgba(74, 144, 217, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(74, 144, 217, 0.45);
}

.btn-outline {
  background: transparent;
  color: #4a90d9;
  border: 2px solid #4a90d9;
}
.btn-outline:hover { background: #4a90d9; color: #fff; }

.btn-nav {
  padding: 10px 20px;
  font-size: 14px;
  background: linear-gradient(135deg, #4a90d9, #6c5ce7);
  color: #fff;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-xl { padding: 20px 48px; font-size: 1.15rem; border-radius: 16px; }
.btn-block { width: 100%; padding: 14px 24px; font-size: 0.95rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
}
.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  transition: color 0.2s;
}
.nav-links a:hover { color: #4a90d9; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: #1a1a2e; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(180deg, #f0f4ff 0%, #f8f9fc 100%);
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.12);
  color: #6c5ce7;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9rem;
  color: #9ca3af;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #4a90d9;
  line-height: 1;
  margin-bottom: 6px;
}
.stat span {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-mockup {
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.1),
    0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mockup-toolbar {
  background: #f0f0f5;
  padding: 12px 20px;
  font-size: 8px;
  letter-spacing: 4px;
  color: #ccc;
}

.mockup-content {
  padding: 40px 32px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mockup-wave {
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60'%3E%3Cpath d='M0 30 Q 25 0, 50 30 T 100 30 T 150 30 T 200 30 T 250 30 T 300 30 T 350 30 T 400 30' fill='none' stroke='%234a90d9' stroke-width='2' opacity='0.3'/%3E%3Cpath d='M0 30 Q 25 10, 50 30 T 100 30 T 150 30 T 200 30 T 250 30 T 300 30 T 350 30 T 400 30' fill='none' stroke='%236c5ce7' stroke-width='2.5' opacity='0.7'/%3E%3C/svg%3E") repeat-x center/contain;
}

.mockup-subtitle {
  font-size: 1rem;
  font-style: italic;
  color: #4b5563;
  padding: 16px 20px;
  background: #f8f9fc;
  border-radius: 10px;
  border-left: 4px solid #6c5ce7;
}

.mockup-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  align-self: flex-start;
}
.mockup-score strong { font-size: 1.4rem; }

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Features ---------- */
.features {
  padding: 100px 0;
  background: #fff;
}

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

.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}

.feature-card.highlight {
  border-color: #c7d2fe;
  box-shadow: 0 8px 40px rgba(74, 144, 217, 0.1);
}

.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border-radius: 16px;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card > p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-points li {
  font-size: 0.88rem;
  color: #4b5563;
  padding-left: 24px;
  position: relative;
}
.feature-points li::before {
  content: "✓";
  position: absolute; left: 0;
  color: #6c5ce7;
  font-weight: 700;
}

/* ---------- Highlight Banner ---------- */
.highlight-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  padding: 64px 0;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.banner-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4a90d9, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.banner-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: 100px 0;
  background: #f8f9fc;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  min-width: 220px;
  max-width: 260px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s;
}
.step:hover { transform: translateY(-4px); }

.step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4a90d9, #6c5ce7);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 12px;
  margin: 0 auto 20px;
}

.step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: #6b7280; line-height: 1.7; }

.step-arrow {
  display: flex; align-items: center;
  font-size: 1.5rem; color: #cbd5e1;
  padding-top: 40px;
  font-weight: 300;
}

/* ---------- Social Sharing ---------- */
.social {
  padding: 100px 0;
  background: #fff;
}

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

.social-card {
  background: #f8f9fc;
  border-radius: 20px;
  padding: 40px 32px;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: all 0.3s ease;
}
.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-color: #c7d2fe;
}

.social-card.highlight {
  border-color: #6c5ce7;
  box-shadow: 0 8px 40px rgba(108, 92, 231, 0.12);
  background: linear-gradient(135deg, #faf5ff, #eff6ff);
}

.social-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.social-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.social-card > p {
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a90d9;
  background: rgba(74, 144, 217, 0.08);
  border-radius: 10px;
  padding: 10px 16px;
}
.social-flow .flow-arrow { color: #cbd5e1; font-weight: 400; }

.social-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.social-tags span {
  background: linear-gradient(135deg, #dfe6fd, #e8e0ff);
  color: #5b4fd9;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

.social-cta {
  text-align: center;
  margin-top: 48px;
  padding: 20px 32px;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
  border-radius: 16px;
  font-weight: 600;
  color: #4b5563;
}



/* ---------- Testimonials ---------- */
.testimonials {
  padding: 100px 0;
  background: #fff;
}

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

.testimonial-card {
  background: #f8f9fc;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid #e5e7eb;
}

.testimonial-stars {
  font-size: 1rem;
  margin-bottom: 16px;
}

.testimonial-card > p {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90d9, #6c5ce7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: #9ca3af; }

/* ---------- Download ---------- */
.download {
  padding: 100px 0;
  background: linear-gradient(180deg, #f8f9fc, #f0f4ff);
}

.download-card {
  background: #fff;
  border-radius: 24px;
  padding: 64px 48px;
  text-align: center;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.download-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.download-card > p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 40px;
}

.download-buttons {
  margin-bottom: 28px;
}

.download-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #9ca3af;
}

.download-requirements {
  margin-top: 28px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.download-requirements summary {
  cursor: pointer;
  color: #6c5ce7;
  font-weight: 600;
  font-size: 0.9rem;
}
.download-requirements ul { margin-top: 12px; padding-left: 20px; }
.download-requirements li { font-size: 0.85rem; color: #6b7280; margin-bottom: 6px; }

/* ---------- Footer ---------- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
  line-height: 1.7;
}
.footer-brand strong { color: #fff; font-size: 1.2rem; }

.footer-links h5 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #a29bfe; }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1a1a2e;
}
.mobile-menu.open { display: flex; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 130px 0 80px; text-align: center; }
  .hero h1 { font-size: 2.6rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 500px; margin: 0 auto; }

  .features-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .social-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .social-card.highlight { transform: none; }
  .social-card.highlight:hover { transform: translateY(-4px); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: 1fr; }

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

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

  .hero h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.7rem; }
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; }
  .step-arrow { transform: rotate(90deg); padding-top: 0; }

  .download-card { padding: 40px 24px; }
  .download-meta { flex-direction: column; align-items: center; gap: 8px; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.social-card {
  animation: fadeInUp 0.6s ease backwards;
}

