@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #0a0f1e;
  --bg-card: rgba(22, 30, 52, 0.8);
  --bg-card-solid: #161e34;
  --bg-card-hover: #1c2744;
  --primary: #4f8cff;
  --primary-dark: #3a6fd8;
  --secondary: #a855f7;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.3);
  --warning: #f59e0b;
  --text-main: #f1f5f9;
  --text-muted: #8899b4;
  --text-bright: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --glow-blue: rgba(79, 140, 255, 0.15);
  --glow-purple: rgba(168, 85, 247, 0.15);
  --gradient-primary: linear-gradient(135deg, #4f8cff 0%, #a855f7 100%);
  --gradient-accent: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #111936 50%, #0f1629 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(79, 140, 255, 0.1);
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0;
  min-width: 0;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.generator-nav-links { gap: 0.75rem; }

.usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.48rem 0.75rem;
  white-space: nowrap;
}

.usage-pill .usage-main {
  color: var(--text-main);
  font-weight: 800;
}

.usage-pill .usage-sub {
  color: var(--text-muted);
}

.usage-pill a {
  color: var(--primary);
  font-weight: 800;
}

.usage-pill.is-pro {
  border-color: rgba(79, 140, 255, 0.3);
  color: var(--primary);
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s;
  position: relative;
}

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

.nav-cta {
  background: var(--gradient-primary) !important;
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all 0.3s !important;
  box-shadow: 0 2px 12px rgba(79, 140, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.5);
}

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

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(79, 140, 255, 0.5);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(79, 140, 255, 0.4);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--glow-blue);
  border-color: var(--primary);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* Pulse animation on CTA */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.btn-pulse { animation: pulse-ring 2s infinite; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Animated orbs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.hero::before {
  width: 500px; height: 500px;
  background: var(--glow-blue);
  top: 10%; left: -10%;
}

.hero::after {
  width: 400px; height: 400px;
  background: var(--glow-purple);
  bottom: 10%; right: -5%;
  animation-delay: -10s;
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(79, 140, 255, 0.1);
  border: 1px solid rgba(79, 140, 255, 0.2);
  border-radius: 2rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-bright);
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3.5rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat { text-align: center; }
.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
.section {
  padding: 5rem 5%;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

/* Container */
.container { max-width: 1100px; margin: 0 auto; }

/* ══════════════════════════════════════════
   STEPS (Cara Kerja)
   ══════════════════════════════════════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s;
  position: relative;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-bright);
}

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

/* ══════════════════════════════════════════
   DOCUMENT CARDS
   ══════════════════════════════════════════ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.doc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 140, 255, 0.3);
  box-shadow: var(--shadow-glow);
}

.doc-card:hover::before { opacity: 1; }

.doc-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.doc-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.doc-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s;
}

.doc-link:hover { gap: 0.8rem; }

/* ══════════════════════════════════════════
   TRUST SECTION
   ══════════════════════════════════════════ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.trust-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.trust-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.trust-item p { color: var(--text-muted); font-size: 0.8rem; }

/* ══════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 750px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(79, 140, 255, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.35rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-amount {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-bright);
  margin-bottom: 0.25rem;
}

.pricing-period { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; }

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.check { color: var(--accent); font-weight: bold; }

/* ══════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════ */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  padding: 0.5rem 0;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-q.active::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-a.show {
  max-height: 200px;
  padding-top: 0.75rem;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: #060a16;
  padding: 3rem 5% 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.disclaimer-box {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--secondary);
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.2s;
}

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

.copyright {
  text-align: center;
  color: rgba(136, 153, 180, 0.5);
  font-size: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   FLOATING WHATSAPP
   ══════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  animation: pulse-ring 2.5s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* ══════════════════════════════════════════
   GENERATOR PAGE
   ══════════════════════════════════════════ */
.generator-layout {
  display: grid;
  grid-template-columns: 260px 1fr 1fr;
  min-height: calc(100vh - 60px);
  margin-top: 60px;
}

.sidebar {
  background: var(--bg-card-solid);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  overflow-y: auto;
}

.sidebar-intro {
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.sidebar-helper {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  padding-left: 0.5rem;
  margin-top: -0.55rem;
}

.doc-type-list {
  display: block;
}

.doc-type-btn {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-main);
  border-radius: 0.75rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.25s;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.doc-type-icon {
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
}

.doc-type-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.doc-type-title {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

.doc-type-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.doc-type-btn:hover {
  background: rgba(79, 140, 255, 0.06);
  border-color: rgba(79, 140, 255, 0.1);
}

.doc-type-btn.active {
  background: rgba(79, 140, 255, 0.1);
  border-color: rgba(79, 140, 255, 0.3);
  color: var(--primary);
  font-weight: 600;
}

.doc-type-btn.active .doc-type-title {
  color: var(--primary);
}

.form-area {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  background: var(--bg-main);
}

.form-area h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}

.form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.preview-area {
  background: #e8ecf2;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.preview-header {
  padding: 0.85rem 1.25rem;
  background: var(--bg-card-solid);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.preview-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.preview-actions { display: flex; gap: 0.5rem; }
.preview-actions .btn { padding: 0.5rem 1rem; font-size: 0.8rem; border-radius: 0.5rem; }

.preview-content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
}

/* Document paper look */
.document-paper {
  background: white;
  color: #1a1a2e;
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  padding: 25mm 20mm;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  border-radius: 2px;
  position: relative;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 12pt;
  line-height: 1.8;
}

#watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 2.5rem;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
  user-select: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
}

.document-paper h1 { font-size: 1.4em; margin: 1.5em 0 0.5em; color: #111; }
.document-paper h2 { font-size: 1.2em; margin: 1.3em 0 0.4em; color: #222; }
.document-paper h3 { font-size: 1.05em; margin: 1em 0 0.3em; color: #333; }
.document-paper p { margin-bottom: 0.8em; color: #333; }
.document-paper ul, .document-paper ol { margin-bottom: 0.8em; padding-left: 1.5em; }
.document-paper li { margin-bottom: 0.3em; }

.document-paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}

.document-paper th, .document-paper td {
  border: 1px solid #ccc;
  padding: 0.5em 0.75em;
  text-align: left;
}

.document-paper th { background: #f4f4f4; font-weight: 700; }
.document-paper hr { border: none; border-top: 1px solid #ddd; margin: 1.5em 0; }
.document-paper strong { color: #111; }

/* ══════════════════════════════════════════
   FORM STYLES
   ══════════════════════════════════════════ */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-bright);
}

.form-group label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: rgba(136, 153, 180, 0.6);
  margin-top: 0.3rem;
  font-style: italic;
  line-height: 1.4;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(22, 30, 52, 0.6);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: all 0.25s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
  background: rgba(22, 30, 52, 0.8);
}

.form-control::placeholder {
  color: rgba(136, 153, 180, 0.35);
  font-style: italic;
  font-size: 0.85rem;
}

textarea.form-control { min-height: 90px; resize: vertical; }

select.form-control { appearance: none; cursor: pointer; }

/* ══════════════════════════════════════════
   LOADING & SUCCESS STATES
   ══════════════════════════════════════════ */
#loading-state {
  text-align: center;
  padding: 3rem 1rem;
}

.typing-dots {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.typing-dots span {
  width: 12px; height: 12px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.4s infinite both;
}

.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.success-flash {
  animation: flash-green 0.6s ease;
}

@keyframes flash-green {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 30px 10px rgba(34, 197, 94, 0.2); }
  100% { box-shadow: none; }
}

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeInUp 0.5s ease-out both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .generator-layout {
    grid-template-columns: 220px 1fr;
  }
  .preview-area {
    grid-column: 1 / -1;
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 58px; left: 0; right: 0;
    background: rgba(10, 15, 30, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 1rem; border-radius: 0.5rem; }
  .nav-links a:hover { background: rgba(255,255,255,0.05); }
  .menu-toggle { display: block; }
  
  .hero { padding: 6rem 1rem 3rem; min-height: auto; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .stat-num { font-size: 1.2rem; }
  
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .generator-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .sidebar {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-title { display: none; }
  .doc-type-btn {
    white-space: nowrap;
    min-width: auto;
    margin-bottom: 0;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  .form-area { padding: 1.5rem; }
  .preview-area { height: 70vh; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .section { padding: 3rem 1rem; }
  .section-title { font-size: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Generator mobile polish */
@media (max-width: 768px) {
  .generator-page .navbar {
    min-height: 58px;
    padding: 0.6rem 1rem;
    gap: 0.75rem;
  }

  .generator-page .nav-brand {
    flex: 1 1 auto;
    font-size: 1.08rem;
    line-height: 1;
    white-space: nowrap;
  }

  .generator-page .nav-links {
    display: flex;
    position: static;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.45rem;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .generator-page .usage-pill {
    max-width: 94px;
    min-height: 34px;
    padding: 0.45rem 0.6rem;
    overflow: hidden;
    justify-content: center;
    text-overflow: ellipsis;
  }

  .generator-page .usage-pill .usage-sub,
  .generator-page .usage-pill a {
    display: none;
  }

  .generator-page .nav-back {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 0;
  }

  .generator-page .nav-back::before {
    content: "<";
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
  }

  .generator-page .generator-layout {
    margin-top: 58px;
  }

  .generator-page .sidebar {
    position: static;
    display: block;
    overflow: hidden;
    padding: 0.85rem 1rem 0.7rem;
    background: #0a0f1e;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  .generator-page .sidebar-intro {
    margin-bottom: 0.65rem;
  }

  .generator-page .sidebar-title {
    display: block;
    margin-bottom: 0.25rem;
    padding-left: 0;
    color: var(--text-bright);
    font-size: 0.94rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
  }

  .generator-page .sidebar-helper {
    margin-top: 0;
    padding-left: 0;
    color: rgba(136, 153, 180, 0.9);
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .generator-page .doc-type-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.1rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .generator-page .doc-type-list::-webkit-scrollbar {
    display: none;
  }

  .generator-page .doc-type-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 124px;
    max-width: 156px;
    min-height: 50px;
    margin-bottom: 0;
    padding: 0.6rem 0.68rem;
    gap: 0.45rem;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.8rem;
    background: rgba(22, 30, 52, 0.76);
    white-space: normal;
    scroll-snap-align: start;
  }

  .generator-page .doc-type-icon {
    font-size: 1.05rem;
  }

  .generator-page .doc-type-copy {
    gap: 0;
  }

  .generator-page .doc-type-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.78rem;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .generator-page .doc-type-desc {
    display: none;
  }

  .generator-page .doc-type-btn.active {
    background: rgba(79, 140, 255, 0.14);
    border-color: rgba(79, 140, 255, 0.5);
    box-shadow: inset 0 0 0 1px rgba(79, 140, 255, 0.12);
  }

  .generator-page .form-area {
    padding: 1.35rem 1rem 2rem;
  }

  .generator-page .form-area h2 {
    font-size: 1.42rem;
    line-height: 1.18;
    margin-bottom: 0.45rem;
  }

  .generator-page .form-desc {
    margin-bottom: 1.35rem;
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .generator-page .form-group {
    margin-bottom: 1.15rem;
  }

  .generator-page .form-group label {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .generator-page .form-control {
    min-height: 52px;
    border-radius: 0.75rem;
    font-size: 16px;
  }

  .generator-page textarea.form-control {
    min-height: 104px;
  }

  .generator-page .btn-lg {
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .generator-page .navbar {
    padding-inline: 0.85rem;
  }

  .generator-page .nav-brand {
    font-size: 1rem;
  }

  .generator-page .usage-pill {
    max-width: 82px;
    padding-inline: 0.5rem;
  }

  .generator-page .doc-type-btn {
    min-width: 116px;
    max-width: 142px;
  }
}
