/* Kuku AI — Design System */
:root {
  --bg-deep: #0a0a12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #f4f2f8;
  --text-muted: #9b96ab;
  --accent-1: #ff6b4a;
  --accent-2: #a855f7;
  --accent-3: #38bdf8;
  --gradient-hero: linear-gradient(135deg, #ff6b4a 0%, #a855f7 50%, #38bdf8 100%);
  --gradient-soft: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Ambient background */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 107, 74, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(56, 189, 248, 0.1), transparent);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--accent-1);
}

/* Layout */
.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

section {
  padding: 5rem 0;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

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

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 0.55rem 1.25rem;
  background: var(--gradient-hero);
  color: #fff !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-cta:hover {
  opacity: 0.9;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero */
.hero {
  padding-top: calc(var(--nav-height) + 5rem);
  padding-bottom: 0rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  max-width: 800px;
  margin: 0 auto 1.25rem;
}

.hero h1 .gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.45);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Hero visual */
.hero-visual {
  margin-top: 4rem;
  position: relative;
}

.hero-mockup {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.mockup-inner {
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 8px);
  background: linear-gradient(145deg, #1a1528 0%, #0f0d18 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.25rem;
  overflow: hidden;
}

.mockup-card {
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(168, 85, 247, 0.3), rgba(255, 107, 74, 0.2));
  animation: float 6s ease-in-out infinite;
}

.mockup-card:nth-child(2) {
  animation-delay: -2s;
  background: linear-gradient(160deg, rgba(56, 189, 248, 0.3), rgba(168, 85, 247, 0.2));
}

.mockup-card:nth-child(3) {
  animation-delay: -4s;
}

.mockup-card:nth-child(4) {
  grid-column: span 2;
  background: linear-gradient(160deg, rgba(255, 107, 74, 0.25), rgba(56, 189, 248, 0.15));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Features */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
}

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

.feature-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: rgba(168, 85, 247, 0.15);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--gradient-hero);
  border-radius: 12px;
  color: #fff;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

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

/* Contact */
.contact-section {
  text-align: center;
}

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 100px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  transition: background 0.2s;
}

.contact-email:hover {
  background: rgba(168, 85, 247, 0.2);
  color: var(--text-primary);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Privacy page */
.privacy-page {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 4rem;
}

.privacy-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.privacy-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

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

.privacy-content {
  max-width: 780px;
}

.privacy-content > p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-content h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.privacy-content h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--text-primary);
}

.privacy-content h4 {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-muted);
}

.privacy-content ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.privacy-content li {
  margin-bottom: 0.4rem;
}

.privacy-content a {
  word-break: break-all;
}

.privacy-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.privacy-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.privacy-toc ol {
  margin-left: 1.25rem;
  font-size: 0.9rem;
}

.privacy-toc li {
  margin-bottom: 0.35rem;
}

.privacy-toc a {
  color: var(--text-muted);
}

.privacy-toc a:hover {
  color: var(--accent-3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.5rem;
    background: rgba(10, 10, 18, 0.95);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

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

  .nav-toggle {
    display: block;
  }

  section {
    padding: 3.5rem 0;
  }

  .mockup-inner {
    grid-template-columns: 1fr 1fr;
  }

  .mockup-card:nth-child(4) {
    grid-column: span 2;
  }
}
