/* ==========================================
   EDUVOICE — main.css
   ========================================== */

/* --- Variables --- */
:root {
  --color-primary: #6C47FF;
  --color-primary-dark: #5333E0;
  --color-primary-light: #EDE9FF;
  --color-accent: #00D4FF;
  --color-bg: #0A0A0F;
  --color-bg-alt: #111118;
  --color-surface: #1A1A24;
  --color-border: #2A2A3A;
  --color-text: #F0F0F8;
  --color-text-muted: #8888A8;
  --color-white: #FFFFFF;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 80px rgba(108, 71, 255, 0.25);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

  --transition: 0.2s ease;
}

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

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}
.btn--sm  { font-size: 14px; padding: 8px 20px; }
.btn--lg  { font-size: 16px; padding: 14px 32px; }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 71, 255, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108, 71, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.highlight {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- SECTIONS --- */
.section {
  padding: 100px 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--cta {
  background: linear-gradient(135deg, rgba(108, 71, 255, 0.1), rgba(0, 212, 255, 0.05));
  text-align: center;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}
.section__title--left { text-align: left; }
.section__subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 60px;
}

/* --- STEPS --- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 32px 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.step__connector {
  width: 40px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-top: 60px;
}
.step__number {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.step__icon { font-size: 36px; margin-bottom: 16px; }
.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step__desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- FEATURES --- */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features__desc {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}
.feature-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- CHAT MOCKUP --- */
.chat-mockup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.chat-mockup__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.chat-mockup__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
}
.chat-mockup__name { font-weight: 600; font-size: 15px; }
.chat-mockup__status { font-size: 12px; color: #4CAF50; }
.chat-mockup__messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.chat-bubble--in {
  background: var(--color-border);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble--out {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* --- USE CASES --- */
.use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.use-case {
  padding: 32px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.use-case:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}
.use-case__icon { font-size: 32px; margin-bottom: 16px; }
.use-case h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.use-case p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* --- CONTACT FORM --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.input {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 15px;
  transition: border-color var(--transition);
  outline: none;
}
.input::placeholder { color: var(--color-text-muted); }
.input:focus { border-color: var(--color-primary); }
.contact-form__note {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: -4px;
}

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy { font-size: 14px; color: var(--color-text-muted); }
.footer__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-primary); }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .steps { flex-direction: column; }
  .step__connector { width: 2px; height: 32px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; gap: 48px; }
  .use-cases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero { padding: 120px 0 80px; }
  .use-cases { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}
