:root {
  --bg-page: #ffffff;
  --bg-surface: #f9fafb;
  --bg-subtle: #f3f4f6;

  --border: #e5e7eb;
  --border-soft: #f3f4f6;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;

  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --page-gutter: clamp(18px, 3vw, 48px);
  --viewport-block: 100dvh;
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(14px, 0.55vw + 8px, 18px);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: var(--viewport-block);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  display: block;
  flex-shrink: 0;
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

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

.btn-nav {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

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

/* Hero Section */
.hero {
  padding: clamp(120px, 13vw, 180px) var(--page-gutter) clamp(72px, 8vw, 100px);
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

.badge-pill {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
}

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

.btn-primary-lg {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-primary-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -10px var(--primary);
}

.btn-secondary-lg {
  background: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-block;
  text-align: center;
}

.btn-secondary-lg:hover {
  background: var(--bg-surface);
}

/* Hero Visual */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  animation: coreBreathe 8s ease-in-out infinite;
}

@keyframes coreBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.glass-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.portrait {
  width: 140px;
  height: 140px;
  border-radius: 30px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  animation: avatarGlow 6s ease-in-out infinite;
}

@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
  50% { box-shadow: 0 0 24px 8px rgba(79, 70, 229, 0.15); }
}

.portrait svg {
  width: 100%;
  height: 100%;
}

.visual-details h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.visual-details p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}

.signal {
  display: flex;
  gap: 4px;
  justify-content: center;
  height: 24px;
  align-items: center;
}

.signal span {
  display: inline-block;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
  animation: bounce 1.2s infinite ease-in-out;
}

.signal span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.signal span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.signal span:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.signal span:nth-child(5) { animation-delay: 0.4s; height: 8px; }
.signal span:first-child { height: 8px; }

@keyframes bounce {
  0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  z-index: 3;
  opacity: 0;
  animation: radialUnfold 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards, float 8s ease-in-out infinite 1.2s;
}

@keyframes radialUnfold {
  0% { transform: translate(0, 0) scale(0.85); opacity: 0; }
  100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
}

.fb-1 {
  top: 15%;
  left: -20%;
  --x: -15px;
  --y: -10px;
  animation-delay: 0.2s, 1.4s;
}

.fb-2 {
  bottom: 20%;
  right: -15%;
  --x: 15px;
  --y: 10px;
  animation-delay: 0.5s, 1.7s;
}

@keyframes float {
  0% { transform: translate(var(--x), var(--y)); }
  50% { transform: translate(var(--x), calc(var(--y) - 8px)); }
  100% { transform: translate(var(--x), var(--y)); }
}

/* Marquee Section */
.marquee-section {
  padding: 60px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.marquee-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.marquee {
  width: 100%;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 80px;
  padding: 0 40px;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  opacity: 0.6;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 40px)); }
}

/* Features */
.features {
  padding: clamp(72px, 8vw, 100px) var(--page-gutter);
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

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

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

.feature-card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 24px;
  background: white;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

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

.feature-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Pricing */
.pricing {
  padding: clamp(72px, 8vw, 100px) var(--page-gutter);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.pricing-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card.is-featured {
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.pricing-kicker {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-card h3 {
  font-size: 40px;
  margin-bottom: 12px;
}

.pricing-card h3 span {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card-header p:last-child {
  margin: 0;
  color: var(--text-secondary);
}

.pricing-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--text-secondary);
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.pricing-card .btn-primary-lg,
.pricing-card .btn-secondary-lg {
  margin-top: auto;
  width: 100%;
}

/* Testimonials */
.testimonials {
  padding: clamp(72px, 8vw, 100px) var(--page-gutter);
  background: white;
  border-top: 1px solid var(--border);
}

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

.testimonial-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.test-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.6;
}

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

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

.author-info strong {
  display: block;
  font-size: 16px;
}

.author-info span {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 32px 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

.site-footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.site-footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
}

.site-footer-logo {
  height: 28px;
  width: auto;
}

.dark-theme .site-footer-logo,
.theme-dark .site-footer-logo {
  filter: invert(1) brightness(0.9);
}

.site-footer-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.site-footer-links {
  display: flex;
  gap: 24px;
}

.site-footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .site-footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .site-footer-left {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    height: auto;
  }

  .nav-container {
    padding: 16px;
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 132px;
  }

}
