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

body {
  min-height: 100vh;
  background: #050508;
  color: #e8e8ec;
  font-family: 'Sora', 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ——— Animations ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse-glow {
  0%,100% { opacity: 0.4; }
  50%     { opacity: 0.8; }
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10%  { transform: translate(-5%,-10%); }
  30%  { transform: translate(3%,-15%); }
  50%  { transform: translate(12%,9%); }
  70%  { transform: translate(9%,4%); }
  90%  { transform: translate(-1%,7%); }
}

/* ——— Grain Overlay ——— */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}

/* ——— Navigation ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.05);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #6C5CE7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.nav-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-link {
  font-size: 13.5px;
  color: #888;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link:hover { color: #a855f7 !important; }

/* ——— Buttons ——— */
.cta-btn {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,85,247,0.3);
}
.cta-btn:active { transform: scale(0.98); }

.cta-btn-primary {
  padding: 8px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.cta-btn-hero {
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.cta-btn-secondary {
  padding: 14px 32px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 15px;
  font-weight: 500;
  color: #ccc;
}

.skin-btn {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  padding: 8px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 12.5px;
  font-weight: 500;
  color: #666;
  font-family: inherit;
}
.skin-btn:hover { transform: translateY(-2px); }
.skin-btn.active {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.3);
  color: #c4b5fd;
}
.skin-btn.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  border-radius: 2px;
  background: currentColor;
}

/* ——— Hero ——— */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 40px 80px;
}
.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(168,85,247,0.08) 0%, transparent 70%);
  animation: pulse-glow 6s ease infinite;
  pointer-events: none;
}
.hero-badge {
  animation: fadeUp 0.8s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(168,85,247,0.08);
  border: 1px solid rgba(168,85,247,0.15);
  margin-bottom: 32px;
  font-size: 13px;
  color: #a855f7;
  font-weight: 500;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a855f7;
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 800;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #a855f7, #ec4899, #38bdf8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: #777;
  text-align: center;
  max-width: 560px;
  line-height: 1.65;
  margin-top: 24px;
  animation: fadeUp 0.8s ease 0.2s both;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ——— Demo ——— */
.demo-wrapper {
  margin-top: 64px;
  width: 100%;
  max-width: 680px;
  animation: fadeUp 0.8s ease 0.4s both;
}
.demo-skin-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.demo-chat-container {
  height: 420px;
  animation: float 6s ease-in-out infinite;
}
.demo-hint {
  text-align: center;
  font-size: 12px;
  color: #555;
  margin-top: 16px;
  font-style: italic;
}

/* ——— Chat Preview ——— */
.chat-preview {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chat-titlebar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chat-dots {
  display: flex;
  gap: 6px;
}
.chat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.chat-dot-red   { background: #ff5f57; }
.chat-dot-yellow { background: #febc2e; }
.chat-dot-green  { background: #28c840; }
.chat-titlebar-text {
  font-size: 12px;
  margin-left: 8px;
  letter-spacing: 0.5px;
}
.chat-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chat-bubble-user {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  color: #fff;
}
.chat-bubble-bot {
  align-self: flex-start;
  border-radius: 16px 16px 16px 4px;
}
.chat-input-area {
  padding: 12px 16px;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chat-input-bar {
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 10px 14px;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chat-input-placeholder {
  font-size: 12.5px;
  flex: 1;
}
.chat-send-btn {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.6s cubic-bezier(0.4,0,0.2,1);
}
.chat-send-btn svg { fill: #fff; }

/* ——— Sections ——— */
.section {
  padding: 100px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
}
.section-label-purple { color: #a855f7; }
.section-label-blue   { color: #38bdf8; }
.section-label-green  { color: #00e676; }
.section-label-pink   { color: #ec4899; }

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 12px;
  margin-bottom: 0;
}
.section-subtitle {
  font-size: 16px;
  color: #666;
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.6;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

/* ——— Feature Cards ——— */
.feature-card {
  transition: all 0.3s ease;
  cursor: default;
  padding: 32px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.3) !important;
}
.feature-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

/* Why SkinChat grid */
.why-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.why-grid .feature-card {
  flex: 1 1 220px;
  max-width: 240px;
}

/* ——— How It Works ——— */
.steps-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.step-card {
  flex: 1 1 200px;
  max-width: 230px;
  text-align: center;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 16px;
  margin: 0 auto 20px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
.step-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.step-links a {
  font-size: 12px;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.step-links a:hover { color: #a855f7; }

/* ——— Security Grid ——— */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.security-card {
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.3s ease;
  cursor: default;
}
.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.3) !important;
}
.security-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00e676;
  flex-shrink: 0;
}
.security-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}
.security-card p {
  font-size: 13.5px;
  color: #777;
  line-height: 1.6;
  margin: 0;
}

/* ——— Features Grid ——— */
.features-section {
  padding: 120px 40px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features-grid .feature-card {
  padding: 32px 28px;
  text-align: left;
}
.features-grid .feature-card-icon {
  margin: 0 0 16px;
  width: auto; height: auto;
  color: #38bdf8;
}
.features-grid .feature-card h3 {
  font-size: 17px;
  margin: 0;
}
.features-grid .feature-card p {
  margin-top: 8px;
}

/* ——— Creator CTA ——— */
.creator-cta {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 64px 48px;
  background: linear-gradient(135deg, rgba(168,85,247,0.06), rgba(236,72,153,0.04));
  border: 1px solid rgba(168,85,247,0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.creator-cta-glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,0.08), transparent 70%);
  pointer-events: none;
}
.creator-cta p {
  font-size: 16px;
  color: #777;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}
.cta-btn-pink {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: #e8e8ec;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
}
.faq-question svg {
  color: #666;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 200px;
  opacity: 1;
}
.faq-answer p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  margin: 0;
  padding-bottom: 24px;
}

/* ——— Footer ——— */
.footer {
  padding: 60px 40px 40px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #a855f7, #6C5CE7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo span {
  font-weight: 700;
  font-size: 16px;
}
.footer-desc {
  font-size: 13px;
  color: #555;
  max-width: 280px;
  line-height: 1.5;
}
.footer-columns {
  display: flex;
  gap: 60px;
}
.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footer-col-link {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  font-weight: 400;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-col-link:hover { color: #a855f7; }

.footer-bottom {
  padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  font-size: 12px;
  color: #333;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-links .nav-link { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .demo-skin-switcher { flex-wrap: wrap; }
  .section { padding: 60px 20px; }
  .why-grid, .steps-grid { flex-direction: column; align-items: center; }
  .why-grid .feature-card, .step-card { max-width: 100%; }
  .security-grid { grid-template-columns: 1fr; }
  .features-section { padding: 60px 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .creator-cta { padding: 40px 24px; }
  .footer { flex-direction: column; gap: 40px; }
  .footer-columns { gap: 32px; }
}
