/* =============================================
   KIOSQUE — styles.css
   Dark modern SaaS landing page
   ============================================= */

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

:root {
  --primary:    #0F172A;
  --card:       #1E293B;
  --accent:     #6366F1;
  --accent2:    #818CF8;
  --success:    #10B981;
  --warning:    #F59E0B;
  --danger:     #EF4444;
  --text:       #F8FAFC;
  --text-muted: #94A3B8;
  --border:     #334155;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

h1,h2,h3,h4 { font-family: 'Archivo Black', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── CONTAINER ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.4); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; }

/* ── BADGE ── */
.badge {
  display: inline-block;
  background: rgba(99,102,241,.15);
  color: var(--accent2);
  border: 1px solid rgba(99,102,241,.3);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: rgba(15,23,42,.95);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
}
.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo { font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; color: var(--text); flex-shrink: 0; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin-left: auto; }
.nav-links a { color: var(--text-muted); font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 1rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; margin-left: auto; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #1E293B; padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
}

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section--dark { background: #0B1120; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); text-align: center; margin-bottom: 1rem; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 1.05rem; margin-bottom: 3rem; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 6rem 1.5rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.hero-content { flex: 1 1 480px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin-bottom: 2rem; line-height: 1.75; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.stat-value { display: block; font-family: 'Archivo Black', sans-serif; font-size: 1.5rem; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-muted); }
.hero-stat-sep { width: 1px; height: 36px; background: var(--border); }

/* Hero mockup */
.hero-mockup { flex: 1 1 380px; }
.mockup-window {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.mockup-bar { display: flex; gap: .4rem; padding: .75rem 1rem; background: #0F172A; }
.mockup-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.mockup-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; padding: 1rem; }
.mockup-chart { padding: 0 1rem 1rem; }

/* ── METRIC CARDS ── */
.metric-card {
  background: #0F172A;
  border-radius: 8px;
  padding: .85rem;
  border: 1px solid var(--border);
}
.metric-card.predicted { border-color: rgba(99,102,241,.5); background: rgba(99,102,241,.08); }
.metric-label { display: block; font-size: .7rem; color: var(--text-muted); margin-bottom: .3rem; }
.metric-value { display: block; font-family: 'Archivo Black', sans-serif; font-size: 1.1rem; }
.metric-trend { display: block; font-size: .7rem; margin-top: .2rem; color: var(--text-muted); }
.metric-trend.up { color: var(--success); }

/* ── CHART BARS ── */
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; flex: 1; height: 100%; }
.chart-bar {
  width: 100%;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  transition: height .6s ease;
  opacity: .7;
}
.chart-bar.active { opacity: 1; background: var(--accent); }
.chart-bar.predicted-bar { background: #F59E0B; opacity: .8; }
.chart-label { font-size: .55rem; color: var(--text-muted); text-align: center; }

/* ── PROBLEM / SOLUTION ── */
.ps-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.ps-item { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.ps-pain, .ps-solution {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.ps-solution { border-color: rgba(99,102,241,.3); }
.ps-pain h3, .ps-solution h3 { font-size: 1rem; margin: .5rem 0; }
.ps-pain p, .ps-solution p { font-size: .9rem; color: var(--text-muted); }
.ps-icon { font-size: 1.5rem; display: block; margin-bottom: .5rem; }
.ps-arrow { font-size: 1.5rem; color: var(--accent); font-weight: bold; }
@media (max-width: 768px) {
  .ps-item { grid-template-columns: 1fr; }
  .ps-arrow { text-align: center; transform: rotate(90deg); }
}

/* ── FEATURES GRID ── */
.features-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card--premium {
  border-color: var(--accent);
  background: linear-gradient(135deg, #1E293B 0%, rgba(99,102,241,.12) 100%);
  grid-column: span 2;
}
@media (max-width: 600px) { .feature-card--premium { grid-column: span 1; } }
.feature-icon { font-size: 2rem; display: block; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); }
.feature-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
}

/* ── DEMO SECTION ── */
.demo-wrapper { display: flex; flex-direction: column; gap: 2rem; align-items: center; }
.demo-dashboard {
  width: 100%;
  max-width: 780px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #0F172A;
  border-bottom: 1px solid var(--border);
}
.demo-title { font-family: 'Archivo Black', sans-serif; font-size: 1rem; }
.demo-date { color: var(--text-muted); font-size: .85rem; }
.demo-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; padding: 1rem 1.5rem; }
@media (max-width: 600px) { .demo-metrics { grid-template-columns: repeat(2,1fr); } }
.demo-chart-area { padding: 0 1.5rem 1.5rem; }
.demo-chart-title { font-size: .75rem; color: var(--text-muted); margin-bottom: .75rem; }
.demo-bars { height: 100px; }
.demo-cta-block { text-align: center; }
.demo-caption { margin-top: .75rem; font-size: .8rem; color: var(--text-muted); font-style: italic; }

/* ── PRICING ── */
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.pricing-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}
.pricing-card--highlight {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(99,102,241,.1) 0%, var(--card) 100%);
  transform: scale(1.02);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow);
}
.pricing-card--premium { border-color: #F59E0B; }
.pricing-card--custom { border-style: dashed; }
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-badge--premium { background: #F59E0B; color: #000; }
.pricing-header h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.pricing-price { display: flex; align-items: baseline; gap: .25rem; }
.price-amount { font-family: 'Archivo Black', sans-serif; font-size: 2rem; color: var(--text); }
.price-period { color: var(--text-muted); font-size: .9rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; flex: 1; }
.pricing-features li { color: var(--text-muted); }
.pricing-features li:first-child { color: var(--text); }
.pricing-card .btn { margin-top: auto; }
.pricing-install {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.pricing-modules { text-align: center; }
.pricing-modules h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-muted); }
.modules-grid { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.modules-grid span {
  background: #0F172A;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.modules-grid span strong { color: var(--accent2); }

/* ── TESTIMONIALS ── */
.testimonials-section { background: #0B1120; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.testimonial-stars { font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-card p { color: var(--text-muted); font-style: italic; margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .8rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none; color: var(--text);
  padding: 1.2rem 1.5rem;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--accent); transition: transform .3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: rgba(255,255,255,.03); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-item.open .faq-answer { padding: 0 1.5rem 1.25rem; }

/* ── CONTACT ── */
.contact-section { background: #0B1120; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 340px; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; } }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: #0F172A;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group select option { background: var(--card); }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; padding-top: .5rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.contact-info-item strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.contact-info-item p { font-size: .9rem; color: var(--text-muted); }
.contact-info-item a { color: var(--accent2); }
.contact-info-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.footer {
  background: #060D1A;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-brand { max-width: 280px; }
.footer-logo { font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; display: block; margin-bottom: .5rem; }
.footer-brand p { font-size: .9rem; color: var(--text-muted); }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); }
.footer-bottom a { color: var(--accent2); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
