/* ============================================ */
/* DESIGN SYSTEM — Inspired by Almetris.com     */
/* ============================================ */

:root {
  /* Colors */
  --bg-primary: #070b14;
  --bg-secondary: #0c1222;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(20, 30, 55, 0.8);

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-dark: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-glow-strong: rgba(37, 99, 235, 0.3);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  --border: rgba(37, 99, 235, 0.15);
  --border-hover: rgba(37, 99, 235, 0.4);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-py: 120px;
  --container-max: 1200px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================ */
/* RESET & BASE                                 */
/* ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

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

img {
  max-width: 100%;
  display: block;
}

/* ============================================ */
/* TYPOGRAPHY                                   */
/* ============================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 700;
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-header {
  margin-bottom: 64px;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-primary);
}

/* ============================================ */
/* BUTTONS                                      */
/* ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: white;
  box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}

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

/* ============================================ */
/* NAVBAR                                       */
/* ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  color: var(--accent);
  font-size: 1.4rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.badge-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-light);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================ */
/* STATS                                        */
/* ============================================ */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}

/* ============================================ */
/* FEATURES                                     */
/* ============================================ */
.features {
  padding: var(--section-py) 0;
}

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

.feature-card {
  position: relative;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: var(--transition);
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-number {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(37, 99, 235, 0.08);
  line-height: 1;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================ */
/* HOW IT WORKS                                 */
/* ============================================ */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-card {
  flex: 1;
  padding: 48px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.step-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.step-connector {
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step-connector::before {
  content: '';
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
}

/* ============================================ */
/* PRICING                                      */
/* ============================================ */
.pricing {
  padding: var(--section-py) 0;
}

.pricing-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 24px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  margin-top: 12px;
}

.pricing-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 36px;
}

.price {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.price-period {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-left: 4px;
}

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

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.pricing-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-extra {
  margin-top: 32px;
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pricing-extra p {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-extra span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* FAQ                                          */
/* ============================================ */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-light);
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================ */
/* CONTACT                                      */
/* ============================================ */
.contact {
  padding: var(--section-py) 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================ */
/* FOOTER                                       */
/* ============================================ */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

/* ============================================ */
/* REVEAL ANIMATIONS                            */
/* ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================ */
/* MOBILE AUTH LINKS IN HAMBURGER               */
/* ============================================ */
.mobile-auth-links {
  display: none;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */
@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active a {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: background 0.2s;
  }

  .nav-links.active a:hover {
    background: rgba(37, 99, 235, 0.1);
  }

  .nav-links.active .mobile-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .btn-mobile-auth {
    text-align: center;
    padding: 14px 24px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }

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

  .steps-grid {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    width: 100%;
    min-width: 100%;
    height: 32px;
  }

  .step-connector::before {
    width: 1px;
    height: 100%;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

@media (max-width: 640px) {
  :root {
    --section-py: 80px;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    min-width: 120px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 28px 24px;
  }

  .step-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 36px 20px;
  }

  .price {
    font-size: 3.5rem;
  }

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

  /* Register form — stack fields on mobile */
  .form-row {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .form-row>* {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Cookie banner mobile fix */
  #cookieBanner>div {
    flex-direction: column;
    text-align: center;
  }
}