/*----------------------------------------------
* Scalty AI Studio - Landing Page Styles
* Design system matching portal (graphite + green/cyan gradient)
----------------------------------------------*/

/*----------------------------------------------
1. CSS Variables
----------------------------------------------*/
:root {
  --background: hsl(220 15% 6%);
  --foreground: hsl(220 9% 96%);
  --card: hsl(220 15% 8%);
  --muted: hsl(220 15% 13%);
  --muted-foreground: hsl(220 9% 52%);
  --border: hsl(220 15% 20%);
  --graphite-darker: hsl(220 15% 4%);
  --graphite-base: hsl(220 15% 8%);
  --graphite-light: hsl(220 15% 16%);
  --gradient-primary: linear-gradient(135deg, #92FE9D, #00C9FF);
  --gradient-primary-hover: linear-gradient(135deg, #7EFE8A, #00B8E6);
  --green-500: #6BEBA4;
  --glow-gradient: 0 4px 20px rgba(146, 254, 157, 0.15), 0 0 0 1px rgba(146, 254, 157, 0.1);
  --glow-gradient-hover: 0 8px 32px rgba(146, 254, 157, 0.25), 0 0 0 1px rgba(146, 254, 157, 0.2);
  --radius: 0.75rem;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*----------------------------------------------
2. Reset & Base
----------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/*----------------------------------------------
3. Typography
----------------------------------------------*/
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; color: var(--foreground); }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 500; }
p { color: var(--muted-foreground); }
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/*----------------------------------------------
4. Layout
----------------------------------------------*/
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; max-width: 600px; margin: 0 auto; }

/*----------------------------------------------
5. Buttons
----------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: hsl(220 9% 72%); color: var(--background); }
.btn-primary:hover { background: hsl(220 9% 62%); }
.btn-gradient { background: var(--gradient-primary); color: var(--background); box-shadow: var(--glow-gradient); }
.btn-gradient:hover { background: var(--gradient-primary-hover); box-shadow: var(--glow-gradient-hover); }
.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); }
.w-full { width: 100%; }

/*----------------------------------------------
6. Header
----------------------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(17, 16, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 600; }
.logo img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: var(--transition-smooth); }
.nav-links a:hover { color: var(--foreground); }
@media (max-width: 768px) { .nav-links { display: none; } }

/*----------------------------------------------
7. Hero Section
----------------------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--green-500); }
.hero h1 { max-width: 800px; margin: 0 auto 1.5rem; }
.hero-subtitle { max-width: 650px; margin: 0 auto 2.5rem; font-size: 1.125rem; line-height: 1.7; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(146, 254, 157, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/*----------------------------------------------
8. Stats Section
----------------------------------------------*/
.stats {
  padding: 4rem 0;
  background: var(--graphite-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-card { text-align: center; }
.stat-value { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/*----------------------------------------------
9. Workflow Section
----------------------------------------------*/
.workflow { background: var(--background); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.workflow-card {
  position: relative;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}
.workflow-card:hover { border-color: rgba(146, 254, 157, 0.3); transform: translateY(-4px); }
.workflow-number {
  position: absolute;
  top: -12px;
  left: 20px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--background);
}
.workflow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--muted);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.workflow-icon svg { width: 24px; height: 24px; color: var(--green-500); }
.workflow-card h3 { margin-bottom: 0.75rem; }
.workflow-card p { font-size: 0.9375rem; margin-bottom: 1rem; }
.workflow-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.workflow-tags span {
  padding: 0.25rem 0.625rem;
  background: var(--muted);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (max-width: 992px) { .workflow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .workflow-grid { grid-template-columns: 1fr; } }

/*----------------------------------------------
10. Features Section
----------------------------------------------*/
.features { background: var(--graphite-base); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}
.feature-card:hover { border-color: rgba(146, 254, 157, 0.3); box-shadow: var(--glow-gradient); }
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--background); }
.feature-card h3 { margin-bottom: 0.75rem; }
.feature-card p { font-size: 0.9375rem; margin: 0; }
@media (max-width: 992px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .features-grid { grid-template-columns: 1fr; } }

/*----------------------------------------------
11. Data Sources Section
----------------------------------------------*/
.data-sources { background: var(--background); padding: 5rem 0; }
.sources-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.source-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
  text-align: center;
}
.source-card:hover { border-color: rgba(146, 254, 157, 0.3); transform: translateY(-4px); }
.source-card svg { width: 32px; height: 32px; color: var(--green-500); }
.source-card span { font-weight: 500; }
.source-card small { font-size: 0.75rem; color: var(--muted-foreground); }
@media (max-width: 768px) { .sources-grid { grid-template-columns: repeat(2, 1fr); } }

/*----------------------------------------------
12. Pricing Section
----------------------------------------------*/
.pricing { background: var(--graphite-base); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card {
  position: relative;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition-smooth);
}
.pricing-card:hover { border-color: rgba(146, 254, 157, 0.2); }
.pricing-card.featured { border-color: rgba(146, 254, 157, 0.5); box-shadow: var(--glow-gradient); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem;
  background: var(--gradient-primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--background);
  white-space: nowrap;
}
.pricing-header { text-align: center; margin-bottom: 1.5rem; }
.pricing-header h3 { margin-bottom: 0.5rem; }
.pricing-header p { font-size: 0.875rem; margin: 0; }
.pricing-price {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.pricing-price .currency { font-size: 1.5rem; color: var(--muted-foreground); vertical-align: top; }
.pricing-price .amount { font-size: 3rem; font-weight: 700; color: var(--foreground); }
.pricing-price .period { font-size: 1rem; color: var(--muted-foreground); }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}
.pricing-features svg { width: 16px; height: 16px; color: var(--green-500); }
@media (max-width: 992px) { .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; } }

/*----------------------------------------------
13. CTA Section
----------------------------------------------*/
.cta {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: var(--background);
}
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 600px; margin: 0 auto; }
.cta h2 { margin-bottom: 1rem; }
.cta > .container > .cta-content > p { font-size: 1.125rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1.5rem; }
.cta-note { font-size: 0.875rem; color: var(--muted-foreground); }
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(146, 254, 157, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/*----------------------------------------------
14. Footer
----------------------------------------------*/
footer {
  padding: 4rem 0 2rem;
  background: var(--graphite-darker);
  border-top: 1px solid var(--border);
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9375rem; color: var(--muted-foreground); max-width: 280px; }
.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-column h4 { margin-bottom: 1rem; color: var(--foreground); }
.footer-column a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: var(--transition-smooth);
}
.footer-column a:hover { color: var(--foreground); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-bottom a { color: var(--foreground); font-weight: 500; }
.footer-bottom a:hover { color: var(--green-500); }

@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
  .footer-links-group { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-links-group { grid-template-columns: 1fr; }
}

/*----------------------------------------------
15. Animations
----------------------------------------------*/
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/*----------------------------------------------
16. Responsive Adjustments
----------------------------------------------*/
@media (max-width: 768px) {
  section { padding: 4rem 0; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; }
}

/*----------------------------------------------
17. Highlight Badge (gradient background like buttons)
----------------------------------------------*/
.highlight-badge {
  display: inline-block;
  padding: 0.1em 0.4em;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  color: var(--background);
  -webkit-text-fill-color: var(--background);
}

/*----------------------------------------------
19. Logo Badge
----------------------------------------------*/
.logo-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  background: var(--gradient-primary);
  border-radius: 6px;
  color: var(--background);
  font-weight: 600;
  margin-left: 0.15em;
}
