:root {
  --bg-body: #050814;
  --bg-alt: #0b1020;
  --card-bg: #111728;
  --card-bg-alt: #151c30;
  --accent: #4f46e5;   /* main accent color */
  --accent-soft: #6366f1;
  --accent-contrast: #f9fafb;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --danger: #ef4444;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.55);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #111827 0, #020617 52%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #050816 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.section-header.align-left {
  text-align: left;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(55,65,81,0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1.5rem;
}

/* Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f9fafb;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Nav */

.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.main-nav a:hover {
  color: var(--accent-contrast);
}

/* Header CTAs */

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  display: block;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(88, 80, 236, 0.55);
}

.btn-outline {
  border-color: rgba(148,163,184,0.6);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent-soft);
  color: var(--accent-contrast);
}

.btn-ghost {
  border-color: transparent;
  color: var(--text-muted);
  background: rgba(15,23,42,0.7);
}

.btn-ghost:hover {
  color: var(--accent-contrast);
  background: rgba(30,64,175,0.55);
}

.full-width {
  width: 100%;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta span {
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.7);
}

/* Hero visual */

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.4);
  max-width: 360px;
}

.hero-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.hero-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.hero-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

.hero-small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Grids & cards */

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
}

.feature-card h3,
.product-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.feature-card p,
.product-card p {
  color: var(--text-muted);
}

/* Bullet list */

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

/* Steps */

.steps .step {
  text-align: left;
}

.step-badge {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #f9fafb;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Pricing */

.pricing-grid {
  align-items: stretch;
}

.pricing-card h3 {
  margin-top: 0;
}

.pricing-tag {
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

.pricing-card-featured {
  border-color: var(--accent-soft);
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  position: relative;
}

.pricing-card-featured::before {
  content: "Most Popular";
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f9fafb;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}

/* Links */

.text-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.text-link:hover {
  text-decoration: underline;
}

/* FAQ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.8);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out, padding 0.2s ease-out;
  padding: 0 1rem;
}

.faq-answer p {
  margin: 0.75rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 0.75rem;
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 2.25rem;
  align-items: flex-start;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
}

.contact-list li {
  margin-bottom: 0.4rem;
}

.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.form-row {
  margin-bottom: 0.85rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.9);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
}

/* Footer */

.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(31,41,55,0.9);
  background: #020617;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-text {
  margin: 0;
  max-width: 320px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-soft);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(55,65,81,0.8);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.75rem;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
/* --- Compact SaaS Navbar Upgrade --- */

.compact-header {
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle {
  margin-left: 12px;
}

/* shrink auth buttons */
.small-btn {
  padding: 6px 14px;
  font-size: 14px;
}

/* hide hamburger on desktop */
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

/* desktop: hide mobile auth */
@media (min-width: 901px) {
  .mobile-auth { display: none !important; }
}

/* mobile: hide desktop login/register */
@media (max-width: 900px) {
  .desktop-auth { display: none !important; }
}

/* slide-in nav for mobile */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 64px;
    right: 0;
    width: 70%;
    max-width: 260px;
    background: #111827;
    padding: 20px;
    border-radius: 10px 0 0 10px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .main-nav a {
    font-size: 16px;
  }
}




