:root {
  --bg: #020617;
  --bg-2: #0f172a;
  --card: rgba(15, 23, 42, 0.75);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --label: #64748b;
  --accent-a: #22c55e;
  --accent-b: #14b8a6;
  --border: rgba(255, 255, 255, 0.08);
  --input-bg: #0b1220;
  --input-border: #1e293b;
  --error: #ef4444;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #19304e, transparent 30%),
              radial-gradient(circle at 80% 0%, #0d5f66, transparent 30%),
              radial-gradient(circle at 70% 70%, #2a2450, transparent 25%),
              linear-gradient(160deg, var(--bg-2), var(--bg));
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-brand:hover {
  color: var(--accent-a);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-a);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* Main Content */
.main-content {
  flex: 1;
  width: 100%;
}

/* Footer */
.footer {
  background: rgba(11, 18, 36, 0.95);
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-section h3,
.footer-section h4 {
  margin: 0 0 16px 0;
  color: var(--text);
}

.footer-section p {
  color: var(--muted);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--accent-a);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.shell {
  width: min(720px, 100%);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
}

header {
  margin-bottom: 20px;
}

h1 {
  margin: 6px 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent-a);
}

.stack {
  display: grid;
  gap: 14px;
}

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

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--label);
}

input,
select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

input:focus,
select:focus {
  border-color: var(--accent-a);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.label-hint {
  color: var(--muted);
  font-size: 12px;
}

button.download-btn {
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #04111f;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

button.download-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

button.download-btn:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.03);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.35);
}

.status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.status.error {
  color: var(--error);
}

.error-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--error);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 14px;
}

.hidden {
  display: none;
}

.preview {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  position: relative;
  border: 1px solid var(--input-border);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.thumb-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
  text-align: center;
  background: linear-gradient(120deg, rgba(34, 197, 94, 0.08), rgba(20, 184, 166, 0.08));
}

.meta-title {
  margin: 2px 0 6px;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
}

.meta-sub {
  margin: 0;
  color: var(--muted);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.4);
  animation: spin 0.9s linear infinite;
}

.fine-print {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.fine-print {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

@media (max-width: 540px) {
  .card {
    padding: 22px;
  }

  h1 {
    font-size: 24px;
  }

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

/* Home Page Styles */
.hero {
  padding: 100px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  margin: 0 0 16px;
  background: linear-gradient(120deg, var(--text), var(--accent-a));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 32px;
}

.hero-btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #04111f;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.28);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.features-preview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin: 0 0 48px;
}

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

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(15px);
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.how-it-works {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  background: rgba(15, 23, 42, 0.4);
}

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

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #04111f;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cta-section {
  max-width: 700px;
  margin: 80px auto;
  padding: 60px 24px;
  text-align: center;
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 20px;
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.cta-section p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #04111f;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.2s;
}

.cta-btn:hover {
  transform: scale(1.05);
}

/* Page Styles */
.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 48px;
  margin: 0 0 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.feature-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(15px);
}

.feature-detail-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.feature-detail h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.feature-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about-content .about-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(15px);
}

.about-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.about-section ul {
  color: var(--muted);
  line-height: 1.8;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.tech-item {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 20px;
}

.tech-item h4 {
  margin: 0 0 12px;
  color: var(--accent-a);
}

.tech-item ul {
  margin: 0;
  padding-left: 20px;
}

.faq-content .faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(15px);
}

.faq-item h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--accent-a);
}

.faq-item p,
.faq-item ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item ul {
  margin-top: 8px;
  padding-left: 24px;
}

.legal-content .legal-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(15px);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
  color: var(--accent-a);
}

.legal-section h3 {
  margin: 24px 0 12px;
  font-size: 20px;
}

.legal-section p,
.legal-section ul {
  color: var(--muted);
  line-height: 1.8;
}

.legal-section a {
  color: var(--accent-a);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
  font-size: 18px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-form-section,
.contact-info-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(15px);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea:focus {
  border-color: var(--accent-a);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.contact-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}

.contact-method {
  margin-bottom: 24px;
}

.contact-method h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-method p {
  margin: 0 0 8px;
  color: var(--muted);
}

.contact-method a {
  color: var(--accent-a);
  text-decoration: none;
  font-weight: 500;
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-notice {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}

.contact-notice h4 {
  margin: 0 0 8px;
  color: var(--error);
}

.contact-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.shell {
  padding: 32px 16px;
  display: grid;
  place-items: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-menu li {
    padding: 12px 24px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 32px;
  }

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
