/* ===================================================================
   DouyinFetch Landing Page & Privacy Policy Stylesheet
   Modern, Dark Mode, High-Converting Typography & Aesthetics
   =================================================================== */

:root {
  --bg-main: #09090b;
  --bg-card: rgba(24, 24, 27, 0.7);
  --bg-card-hover: rgba(39, 39, 42, 0.85);
  --border-subtle: rgba(63, 63, 70, 0.45);
  --border-focus: rgba(254, 9, 70, 0.6);
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent-pink: #fe0946;
  --accent-cyan: #00f2fe;
  --accent-purple: #a855f7;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 40px -10px rgba(254, 9, 70, 0.25);
  --shadow-cyan: 0 0 40px -10px rgba(0, 242, 254, 0.2);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(254, 9, 70, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatSlow 12s ease-in-out infinite alternate;
}

.ambient-blob-2 {
  position: absolute;
  top: 40%;
  right: -100px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
  filter: blur(90px);
  animation: floatSlow 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #18181b;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.brand-icon img {
  width: 24px;
  height: 24px;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-pink), #e11d48);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-main);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #db2777 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(254, 9, 70, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(254, 9, 70, 0.65);
}

.btn-secondary {
  background: rgba(39, 39, 42, 0.8);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(63, 63, 70, 0.9);
  border-color: rgba(113, 113, 122, 0.6);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 9, 70, 0.08);
  border: 1px solid rgba(254, 9, 70, 0.25);
  color: #fda4af;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, var(--accent-pink) 0%, #ff4b72 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--text-dim);
  font-size: 0.88rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  color: #10b981;
}

/* Feature Mockup Preview */
.preview-wrapper {
  margin: 40px auto 0;
  max-width: 960px;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(180deg, rgba(254, 9, 70, 0.3) 0%, rgba(0, 242, 254, 0.1) 100%);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.preview-inner {
  background: #111113;
  border-radius: calc(var(--radius-lg) - 6px);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.browser-bar {
  background: #18181b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f3f46;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.browser-address {
  flex: 1;
  background: #09090b;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
  text-align: left;
  border: 1px solid rgba(63, 63, 70, 0.3);
}

/* Mockup Content Grid */
.mockup-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 480px;
}

.mockup-main {
  padding: 24px;
  background: #09090b;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.fake-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.3);
}

.fake-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.fake-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.fake-id {
  font-size: 0.8rem;
  color: var(--text-dim);
}

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

.fake-card {
  height: 130px;
  border-radius: var(--radius-sm);
  background: #18181b;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.fake-card:nth-child(1) { background: linear-gradient(180deg, #18181b, #27272a); }
.fake-card:nth-child(2) { background: linear-gradient(180deg, #1e1b4b, #0f172a); }
.fake-card:nth-child(3) { background: linear-gradient(180deg, #311021, #18181b); }

.fake-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 600;
}

/* Side Panel Simulated UI */
.mockup-sidepanel {
  background: #121215;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.sidepanel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidepanel-logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.sidepanel-badge {
  font-size: 0.65rem;
  background: #10b981;
  color: #042f2e;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.sidepanel-card {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.8rem;
}

.sidepanel-btn {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-pink), #db2777);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(254, 9, 70, 0.4);
}

.sidepanel-progress {
  height: 6px;
  border-radius: 4px;
  background: #27272a;
  overflow: hidden;
  margin-top: 8px;
}

.sidepanel-progress-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
}

/* Features Grid */
.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--accent-pink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(254, 9, 70, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(254, 9, 70, 0.1);
  border: 1px solid rgba(254, 9, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-pink);
}

.feature-icon-box.cyan {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
}

.feature-icon-box.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--accent-purple);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Steps Section */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

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

.step-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, rgba(254, 9, 70, 0.15) 0%, rgba(0, 242, 254, 0.08) 100%);
  border: 1px solid rgba(254, 9, 70, 0.3);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Privacy Policy Layout */
.privacy-container {
  max-width: 840px;
  margin: 60px auto 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.privacy-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.privacy-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.privacy-updated {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.privacy-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-content h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-pink);
  border-radius: 2px;
}

.privacy-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.privacy-content ul {
  margin: 12px 0 20px 20px;
  color: var(--text-muted);
}

.privacy-content li {
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.compliance-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

.compliance-box h4 {
  color: #34d399;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-box p {
  color: #a7f3d0;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

th {
  background: #18181b;
  color: #fff;
  font-weight: 600;
}

td {
  color: var(--text-muted);
  background: rgba(24, 24, 27, 0.4);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: #09090b;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* Responsive */
@media (max-width: 860px) {
  .hero h1 { font-size: 2.5rem; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidepanel { display: none; }
  .privacy-container { padding: 28px 20px; }
  .nav-links { display: none; }
}
