/* ============================================================
   Clary AI — Landing Page Styles
   Brand: dark-first, premium, pill-shaped actions
   ============================================================ */

/* --- Tokens --- */
:root {
  --bg:           #080510;
  --surface:      #0F0A14;
  --card-bg:      #140C20;
  --border:       #1A1028;
  --card-border:  #1E1230;
  --text:         #F5F5F7;
  --text-muted:   rgba(245, 245, 247, 0.35);
  --text-faint:   rgba(255, 255, 255, 0.10);
  --blue:         #328CB5;
  --coral:        #EE6860;
  --purple:       #C878C0;
  --green:        #3CB371;
  --gradient:     linear-gradient(90deg, #328CB5, #EE6860);
  --gradient-3:   linear-gradient(135deg, #328CB5, #C878C0, #EE6860);
  --radius:       13px;
  --radius-pill:  22px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- Layout --- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }

/* --- Section Headings --- */
.section-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-badge,
.section-title,
.section-sub { text-align: center; }
.section-title, .section-badge { display: block; }

/* --- Gradient Text --- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-ghost {
  border: 1px solid var(--card-border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 16px; }
.btn-full { width: 100%; }

/* ===================== NAV ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 5, 16, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img { height: 32px; width: auto; }
.nav-logo-text { font-size: 20px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--blue); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-label { letter-spacing: 0.5px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 900px;
  background: radial-gradient(ellipse, rgba(50, 140, 181, 0.12) 0%, rgba(200, 120, 192, 0.06) 30%, rgba(238, 104, 96, 0.04) 55%, transparent 75%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-content { position: relative; }
.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Store Badges */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 10px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.store-badge:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.store-small { font-size: 10px; color: var(--text-muted); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.5px; }
.store-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--card-border);
}

/* ===================== FEATURES ===================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-blue   { background: rgba(50, 140, 181, 0.12); color: var(--blue); }
.icon-coral  { background: rgba(238, 104, 96, 0.12); color: var(--coral); }
.icon-purple { background: rgba(200, 120, 192, 0.12); color: var(--purple); }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ===================== MODES ===================== */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mode-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.mode-card:hover { transform: translateY(-4px); }
.mode-card:nth-child(1):hover { border-color: var(--blue); }
.mode-card:nth-child(2):hover { border-color: var(--purple); }
.mode-card:nth-child(3):hover { border-color: var(--coral); }

.mode-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 20px;
}
.mode-blue   { background: linear-gradient(135deg, var(--blue), #4ba8d4); }
.mode-purple { background: linear-gradient(135deg, var(--purple), #d89cd4); }
.mode-coral  { background: linear-gradient(135deg, var(--coral), #f08e88); }

.mode-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.mode-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }

.mode-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}
.tag-blue   { background: rgba(50, 140, 181, 0.12); color: var(--blue); }
.tag-purple { background: rgba(200, 120, 192, 0.12); color: var(--purple); }
.tag-coral  { background: rgba(238, 104, 96, 0.12); color: var(--coral); }

/* ===================== STEPS ===================== */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 20px;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.step-line {
  width: 60px;
  height: 2px;
  background: var(--card-border);
  margin-top: 24px;
  flex-shrink: 0;
}

/* ===================== PRICING ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
}
.pricing-featured {
  border-color: var(--blue);
  box-shadow: 0 0 40px rgba(50, 140, 181, 0.10);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
}
.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.price {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 4px;
}
.price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.price-note {
  font-size: 14px;
  color: var(--green);
  margin-bottom: 8px;
}
.pricing-features {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(50, 140, 181, 0.15);
  border: 2px solid var(--blue);
}
.pricing-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 32px;
}

/* ===================== CTA ===================== */
.cta-section { text-align: center; position: relative; overflow: hidden; }
.cta-content { position: relative; }
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(238, 104, 96, 0.10) 0%, rgba(50, 140, 181, 0.08) 50%, transparent 80%);
  pointer-events: none;
}
.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 36px; width: auto; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--text-muted); max-width: 260px; }
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}
.footer-bottom p { margin-bottom: 4px; }
.footer-bottom a { color: var(--blue); }
.footer-bottom a:hover { text-decoration: underline; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .nav-links a:not(.btn):not(.lang-toggle) { display: none; }
  .nav-links { gap: 12px; }
  .store-badges { flex-direction: column; align-items: center; }
  .features-grid { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-line { width: 2px; height: 40px; margin: 0; }
  .hero { padding: 120px 0 80px; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
