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

:root {
  --primary:        #6e56cf;
  --primary-light:  #8b72e0;
  --primary-dark:   #5a43b8;
  --primary-faint:  #f0ecff;
  --primary-glow:   rgba(110, 86, 207, 0.2);

  --bg:             #ffffff;
  --bg-subtle:      #f8f7fc;
  --bg-muted:       #f1effe;

  --text:           #1a1523;
  --text-secondary: #5c5470;
  --text-muted:     #8b86a0;
  --text-inverse:   #ffffff;

  --border:         #e5e0f5;
  --border-strong:  #cdc5f0;

  --shadow-sm:      0 1px 3px rgba(110, 86, 207, 0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 16px rgba(110, 86, 207, 0.12), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 12px 40px rgba(110, 86, 207, 0.15), 0 4px 8px rgba(0,0,0,0.06);

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  --nav-height:     64px;
  --container-max:  1140px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

img, svg {
  display: block;
}

/* ── Layout helpers ────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-faint);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--primary-faint);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn-lg {
  font-size: 1rem;
  padding: 13px 28px;
}

.btn-block {
  width: 100%;
}

/* ── Navigation ────────────────────────────────────────────────────────────── */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-wrapper.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--nav-height);
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.98);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-mobile a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.nav-mobile .btn {
  margin-top: 4px;
  justify-content: center;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 0;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-faint);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 760px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 64px;
}

/* ── App preview mockup ────────────────────────────────────────────────────── */
.hero-screenshot {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  background: #fff;
}

.browser-chrome {
  background: var(--bg-subtle);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  background: var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 260px;
  margin: 0 auto;
}

.app-preview {
  display: flex;
  height: 300px;
  background: #18132d;
}

.preview-sidebar {
  width: 56px;
  background: #130f23;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.preview-logo {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.preview-nav-item {
  width: 28px;
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
}

.preview-nav-item.active {
  background: var(--primary);
}

.preview-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-title-bar {
  width: 140px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.preview-btn {
  width: 60px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}

.preview-btn.accent {
  background: var(--primary);
}

.preview-stats {
  display: flex;
  gap: 10px;
}

.preview-stat-card {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  width: 60%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
}

.stat-value {
  width: 40%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.2);
}

.stat-value.accent {
  background: var(--primary-light);
}

.preview-calendar {
  flex: 1;
  display: flex;
  gap: 8px;
}

.cal-col {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 6px;
  position: relative;
}

.cal-header {
  width: 70%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 8px;
}

.cal-event {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 5px;
  background: rgba(110, 86, 207, 0.35);
  border-left: 2px solid var(--primary);
}

.cal-event.accent {
  background: rgba(110, 86, 207, 0.6);
  border-left-color: #a78bfa;
}

/* ── Social proof ──────────────────────────────────────────────────────────── */
.social-proof {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.social-proof-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 24px;
}

.social-proof-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 40px;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

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

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  padding: 96px 0;
}

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

.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-faint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 96px 0;
  background: var(--bg-subtle);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 260px;
  padding: 0 16px;
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 1px;
  margin-top: 26px;
  opacity: 0.4;
}

.steps-cta {
  text-align: center;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.pricing-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pricing-card.featured .plan-name {
  color: var(--primary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 40px;
  line-height: 1.5;
}

.plan-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}

.plan-features li.muted {
  color: var(--text-muted);
}

.check {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

.cross {
  width: 16px;
  height: 16px;
  color: var(--border-strong);
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials {
  padding: 96px 0;
  background: var(--bg-subtle);
}

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

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-faint);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-author span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── CTA section ───────────────────────────────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding: 64px 24px 48px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: contents;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ── Language switcher ─────────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.lang-switcher-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

.lang-switcher-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: none;
  min-width: 140px;
  z-index: 100;
  margin-top: 4px;
  overflow: hidden;
}

.lang-switcher-menu.open {
  display: block;
}

.lang-option {
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: background 0.1s, color 0.1s;
}

.lang-option:hover {
  background: var(--primary-faint);
}

.lang-option.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-switcher-mobile {
  position: relative;
  padding: 4px 12px;
}

.lang-switcher-mobile .lang-switcher-menu {
  position: relative;
  top: auto;
  right: auto;
  box-shadow: none;
  border: 1px solid var(--border);
  margin-top: 8px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  .step-connector {
    width: 2px;
    height: 40px;
    margin: 0 0 0 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
  }

  .social-proof-stats {
    gap: 0;
  }

  .stat-item {
    padding: 8px 24px;
  }

  .stat-divider {
    display: none;
  }

  .social-proof-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .hero {
    padding: 60px 0 0;
  }

  .app-preview {
    height: 200px;
  }

  .preview-stats {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 40px 24px 32px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
