/* Cosmic — Premium Software Client */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #09090b;
  --bg-card: rgba(17, 17, 24, 0.65);
  --bg-card-solid: #111118;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #6366f1;
  --accent-light: #a5b4fc;
  --accent-gold: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #818cf8 100%);
  --gradient-gold: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  --gradient-subtle: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
  --glass-blur: blur(20px);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
  --max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  display: block;
}

ul { list-style: none; }

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

/* Radial glow backgrounds */
.glow-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.4;
}

.glow-bg--hero {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, rgba(245, 158, 11, 0.05) 40%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.glow-bg--auth {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: var(--glass-blur);
  border-bottom-color: var(--border-subtle);
}

/* Floating navbar (landing page) */
.nav--floating {
  top: 20px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1080px;
  height: 64px;
  border-radius: 100px;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: top var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.nav--floating.scrolled {
  top: 12px;
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 60px rgba(16, 185, 129, 0.06);
}

.nav--floating .nav__inner {
  padding: 0 20px;
}

.nav--floating .nav__links {
  gap: 24px;
}

.nav--floating + .nav__mobile,
body:has(.nav--floating) .nav__mobile {
  top: 88px;
  border-radius: var(--radius-lg);
  margin: 0 20px;
  left: 0;
  right: 0;
  width: auto;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
}

.lang-switch__btn {
  padding: 6px 10px;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-switch__btn:hover {
  color: var(--text-secondary);
}

.lang-switch__btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Ticker strip */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 185, 129, 0.04);
  padding: 12px 0;
}

.ticker__track {
  display: flex;
  gap: 48px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  white-space: nowrap;
  color: var(--text-secondary);
}

.ticker__symbol {
  font-weight: 600;
  color: var(--text-primary);
}

.ticker__change--up {
  color: #22c55e;
}

.ticker__change--down {
  color: #ef4444;
}

.nav--floating ~ .ticker {
  margin-top: 88px;
}

.nav--floating ~ .ticker ~ .hero {
  padding-top: 60px;
}

.nav__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile a {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: rgba(255, 255, 255, 0.92);
  color: #09090b;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.06);
}

.btn--primary:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.12);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.btn--light {
  background: rgba(255, 255, 255, 0.9);
  color: #09090b;
  font-weight: 600;
}

.btn--light:hover {
  background: #ffffff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.1);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  background: var(--bg-elevated);
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.08);
}

.btn--full { width: 100%; }

.btn--lg {
  padding: 14px 32px;
  font-size: 0.9375rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn__arrow {
  transition: transform var(--transition);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + 80px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.hero__mockup {
  margin-top: 80px;
  perspective: 1200px;
  animation: fadeInUp 1s ease 0.5s forwards;
  opacity: 0;
}

.dashboard-mockup {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  transform: rotateX(8deg);
  transition: transform 0.6s ease;
}

.dashboard-mockup:hover {
  transform: rotateX(2deg) translateY(-8px);
}

.dashboard-mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-mockup__dot--red { background: #ef4444; }
.dashboard-mockup__dot--yellow { background: #eab308; }
.dashboard-mockup__dot--green { background: #22c55e; }

.dashboard-mockup__url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard-mockup__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 320px;
}

.dashboard-mockup__sidebar {
  padding: 20px 16px;
  border-right: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.dashboard-mockup__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.dashboard-mockup__nav-item--active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.dashboard-mockup__nav-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--border-subtle);
}

.dashboard-mockup__nav-item--active .dashboard-mockup__nav-icon {
  background: var(--gradient-primary);
}

.dashboard-mockup__main {
  padding: 24px;
}

.dashboard-mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-mockup__stat {
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.dashboard-mockup__stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.dashboard-mockup__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-mockup__stat-change {
  font-size: 0.75rem;
  color: #22c55e;
  margin-top: 4px;
}

.dashboard-mockup__chart {
  height: 140px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.dashboard-mockup__bar-chart {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 4px 4px 0 0;
  opacity: 0.7;
  animation: barGrow 1.5s ease forwards;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-light);
}

.feature-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
}

.testimonial-card__stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #eab308;
}

.testimonial-card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-card__name {
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-item__question:hover {
  color: var(--accent-light);
}

.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-item__answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
  background: rgba(0, 0, 0, 0.5);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__legal a:hover {
  color: var(--text-secondary);
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
}

.auth-brand {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.auth-brand__icon-wrap {
  position: relative;
  display: inline-flex;
  margin-bottom: 16px;
}

.auth-brand__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.auth-brand__icon {
  width: 32px;
  height: 32px;
  position: relative;
}

.auth-brand__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.auth-brand__subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-notice {
  max-width: 420px;
  width: 100%;
  padding: 16px 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.auth-footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer-link a {
  color: var(--text-primary);
  font-weight: 500;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

.auth-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #fca5a5;
  display: none;
}

.auth-error.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.auth-success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: #6ee7b7;
  display: none;
}

.auth-success.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 32px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pricing-card--popular {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow-glow);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--gradient-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card__plan {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-card__features {
  margin-bottom: 32px;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-card__features li svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

/* Checkout */
.checkout-page {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 0 80px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.checkout-card {
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.checkout-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.payment-divider span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.paypal-area {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  transition: border-color var(--transition);
  cursor: pointer;
}

.paypal-area:hover {
  border-color: var(--border-hover);
}

.paypal-area__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.paypal-area__logo span:first-child {
  color: #003087;
}

.paypal-area__logo span:last-child {
  color: #009cde;
}

.paypal-area__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.checkout-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.checkout-security__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-security__item svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

.checkout-disclosure {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  text-align: center;
}

.checkout-disclosure a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.order-summary__item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.order-summary__item span:last-child {
  color: var(--text-secondary);
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.checkout-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  text-align: center;
  display: none;
}

.checkout-message.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.checkout-message--processing {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-light);
}

.checkout-message--error {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: #eab308;
}

.checkout-message--success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.checkout-loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-info {
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  height: fit-content;
}

.contact-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-info__item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.contact-info__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: #86efac;
  display: none;
}

.contact-success.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* Legal pages */
.legal-page {
  padding: calc(var(--nav-height) + 60px) 0 80px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-content__updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 40px 0 16px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content ul li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--text-primary);
}

/* Page header (inner pages) */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 40px;
  text-align: center;
  position: relative;
}

.page-header__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.page-header__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .dashboard-mockup__body {
    grid-template-columns: 1fr;
  }

  .dashboard-mockup__sidebar {
    display: none;
  }

  .dashboard-mockup__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__actions .btn--ghost {
    display: none;
  }

  .nav--floating .nav__actions .lang-switch {
    display: none;
  }

  .nav--floating {
    width: calc(100% - 24px);
  }

  .nav__toggle {
    display: block;
  }

  .section {
    padding: 64px 0;
  }

  .hero__mockup {
    margin-top: 48px;
  }

  .dashboard-mockup {
    transform: none;
  }

  .dashboard-mockup:hover {
    transform: translateY(-4px);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .auth-card {
    padding: 24px;
  }
}

/* Toast notifications — top right */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  width: calc(100% - 40px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--exit {
  opacity: 0;
  transform: translateX(28px);
}

.toast--success { border-color: rgba(99, 102, 241, 0.35); box-shadow: 0 0 24px rgba(99, 102, 241, 0.08); }
.toast--error { border-color: rgba(239, 68, 68, 0.35); }
.toast--info { border-color: rgba(255, 255, 255, 0.12); }

.toast__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast--success .toast__icon { color: #34d399; }
.toast--error .toast__icon { color: #f87171; }
.toast--info .toast__icon { color: var(--text-secondary); }

.toast__msg {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.toast__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color var(--transition);
}

.toast__close:hover { color: var(--text-primary); }
