/* Landing Page CSS -- Integrated with Tokens.css & Shadcn/ui Patterns */
@import "tokens.css";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  background-image: radial-gradient(circle at 50% 50%, #1a0a2e 0%, var(--bg-app) 100%);
  color: var(--text-main);
  font-family: var(--primitive-font-sans);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient glow elements */
.glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.glow-1 {
  background: var(--color-primary);
  top: 15%;
  left: 10%;
}

.glow-2 {
  background: var(--color-secondary);
  bottom: 20%;
  right: 10%;
}

/* Glassmorphism utility */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 16px 0;
  margin-bottom: 40px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-family: var(--primitive-font-display);
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: white;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--primitive-font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  box-shadow: var(--btn-shadow);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--border-muted);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--primitive-radius-sm);
}

/* Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--primitive-font-display);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #ffffff 30%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Section base */
.section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--primitive-font-display);
  font-size: 36px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
}

/* Steps Grid (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: var(--border-active);
}

.step-num {
  font-family: var(--primitive-font-display);
  font-size: 24px;
  font-weight: 800;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 24px auto;
}

.step-card h3 {
  font-family: var(--primitive-font-display);
  font-size: 20px;
  margin-bottom: 16px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 30px;
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--primitive-font-display);
  font-size: 18px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Tech Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  text-align: center;
}

.tech-item {
  padding: 30px;
}

.tech-item h3 {
  font-family: var(--primitive-font-display);
  font-size: 18px;
  margin-bottom: 8px;
}

.tech-item p {
  color: var(--text-muted);
  font-size: 12px;
}

/* Footer */
footer {
  margin-top: 120px;
  padding: 40px 0;
  border-radius: 16px 16px 0 0 !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 13px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 44px;
  }
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
