/* StudyWingman Marketing Landing Page Styles */

:root {
  --blue: #5BA3F5;
  --indigo: #5B72F5;
  --mint: #5BF5B0;
  --cyan: #5BF5E4;
  --dark-bg: #0B1425;
  --dark-surface: #111D33;
  --dark-card: #162240;
  --dark-border: #1E3055;
  --text-primary: #E8ECF4;
  --text-secondary: #9AA8C4;
  --text-muted: #6B7A96;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- FLASH ---- */
.mkt-flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 500px;
  text-align: center;
}
.mkt-flash-info {
  background: rgba(91, 245, 176, 0.15);
  border: 1px solid rgba(91, 245, 176, 0.3);
  color: var(--mint);
}
.mkt-flash-error {
  background: rgba(245, 91, 91, 0.15);
  border: 1px solid rgba(245, 91, 91, 0.3);
  color: #F55B5B;
}

/* ---- NAV ---- */
.mkt-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 20, 37, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dark-border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--mint), var(--blue), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-cta {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: var(--dark-bg);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(91, 245, 176, 0.3);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(91,245,176,0.08) 0%, rgba(91,114,245,0.04) 40%, transparent 70%);
  pointer-events: none;
}

/* Floating star-diamonds */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  opacity: 0.15;
  animation: breathe 8s ease-in-out infinite;
}
.star:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; right: 12%; animation-delay: 2s; opacity: 0.12; animation-name: breathe-alt; animation-duration: 9s; }
.star:nth-child(3) { bottom: 35%; left: 8%; animation-delay: 4s; opacity: 0.08; animation-duration: 10s; }
.star:nth-child(4) { top: 45%; right: 6%; animation-delay: 1s; opacity: 0.1; animation-name: breathe-alt; animation-duration: 7s; }
.star:nth-child(5) { bottom: 25%; right: 20%; animation-delay: 3s; opacity: 0.06; animation-duration: 11s; }
.star:nth-child(6) { top: 60%; left: 15%; animation-delay: 5s; opacity: 0.07; animation-name: breathe-alt; animation-duration: 9.5s; }
.star:nth-child(7) { top: 10%; left: 40%; animation-delay: 2.5s; opacity: 0.05; animation-duration: 12s; }
.star:nth-child(8) { bottom: 15%; left: 35%; animation-delay: 6s; opacity: 0.09; animation-name: breathe-alt; animation-duration: 8.5s; }

@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-8px) scale(1.08) rotate(3deg); }
}
@keyframes breathe-alt {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-6px) scale(1.06) rotate(-2deg); }
}

/* Inlined owl logo */
.hero-owl-svg {
  width: 220px;
  height: auto;
  margin-bottom: 2.5rem;
}
/* Animate the three trailing star-diamonds within the SVG */
.trail-star {
  transform-box: fill-box;
  transform-origin: center;
}
.trail-star-1 {
  animation: breathe-svg 7s ease-in-out infinite;
}
.trail-star-2 {
  animation: breathe-svg-alt 8.5s ease-in-out infinite;
  animation-delay: 1.2s;
}
.trail-star-3 {
  animation: breathe-svg 10s ease-in-out infinite;
  animation-delay: 2.5s;
}
@keyframes breathe-svg {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0px rgba(91,245,176,0)); }
  50% { transform: scale(1.12) rotate(4deg); filter: drop-shadow(0 0 6px rgba(91,245,176,0.5)); }
}
@keyframes breathe-svg-alt {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 0px rgba(91,245,176,0)); }
  50% { transform: scale(1.1) rotate(-3deg); filter: drop-shadow(0 0 5px rgba(91,245,176,0.4)); }
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--mint) 70%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero p em {
  font-style: italic;
  color: var(--text-primary);
  font-weight: 600;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: var(--dark-bg);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(91, 245, 176, 0.25);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(91, 245, 176, 0.4);
}
.hero-sub {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- SECTION SHARED ---- */
.mkt-section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ---- WHAT IT DOES ---- */
.what-it-does {
  background: var(--dark-surface);
  border-bottom: 1px solid var(--dark-border);
}
.what-it-does .container {
  max-width: 900px;
}
.what-it-does .section-subtitle {
  max-width: 700px;
}
.what-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.what-step {
  text-align: center;
}
.what-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(91,245,176,0.1);
  border: 1px solid rgba(91,245,176,0.2);
}
.what-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.what-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.what-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  opacity: 0.4;
  font-size: 1.5rem;
  padding-top: 0.5rem;
}
@media (max-width: 768px) {
  .what-steps { grid-template-columns: 1fr; }
  .what-arrow { transform: rotate(90deg); }
}

/* ---- PROBLEM SECTION ---- */
.problem { background: var(--dark-surface); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.problem-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.problem-card.highlight {
  border-color: var(--mint);
  background: linear-gradient(135deg, rgba(91,245,176,0.05), rgba(91,245,228,0.03));
  box-shadow: 0 0 40px rgba(91,245,176,0.08);
}
.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.problem-card:nth-child(1) .problem-icon { background: rgba(239,68,68,0.15); }
.problem-card:nth-child(2) .problem-icon { background: rgba(251,191,36,0.15); }
.problem-card:nth-child(3) .problem-icon { background: rgba(91,245,176,0.15); }
.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.problem-card.highlight h3 {
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- SCENARIOS ---- */
.scenarios-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.scenario-context {
  padding-right: 2rem;
}
.scenario-context h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.scenario-context p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.scenario-compare {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.compare-card {
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--dark-border);
  position: relative;
}
.compare-card.others {
  background: var(--dark-card);
}
.compare-card.wingman {
  background: linear-gradient(135deg, rgba(91,245,176,0.08), rgba(91,114,245,0.06));
  border-color: rgba(91,245,176,0.3);
  box-shadow: 0 0 30px rgba(91,245,176,0.06);
}
.compare-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.compare-card.others .compare-label { color: var(--text-muted); }
.compare-card.wingman .compare-label { color: var(--mint); }
.compare-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}
.compare-card.others p { color: var(--text-muted); }
.compare-card.wingman p { color: var(--text-primary); }

/* ---- RESEARCH / SCIENCE ---- */
.research { background: var(--dark-surface); }
.research-intro {
  max-width: 700px;
  margin-bottom: 3rem;
}
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.research-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.research-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.research-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.research-card h3 .rc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.research-card .rc-concept {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 0.4rem;
}
.research-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}
.research-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 700px;
}
@media (max-width: 768px) {
  .research-grid { grid-template-columns: 1fr; }
}

/* ---- UNDERSTANDING ---- */
.understanding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.understanding-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.understanding-text h2 em {
  font-style: normal;
  color: var(--mint);
}
.understanding-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.chat-mockup {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  font-size: 0.9rem;
}
.chat-msg {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  max-width: 85%;
  line-height: 1.5;
}
.chat-msg.ai {
  background: linear-gradient(135deg, rgba(91,245,176,0.1), rgba(91,114,245,0.08));
  border: 1px solid rgba(91,245,176,0.15);
  color: var(--text-primary);
}
.chat-msg.student {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  margin-left: auto;
  color: var(--text-secondary);
}
.chat-sender {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.chat-msg.ai .chat-sender { color: var(--mint); }
.chat-msg.student .chat-sender { color: var(--text-muted); text-align: right; }

/* ---- BETA CTA ---- */
.beta-section {
  background: linear-gradient(135deg, rgba(91,245,176,0.06), rgba(91,114,245,0.04));
  border-top: 1px solid rgba(91,245,176,0.1);
  border-bottom: 1px solid rgba(91,245,176,0.1);
  text-align: center;
}
.beta-section .section-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}
.beta-section .section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.beta-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.beta-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: var(--dark-bg);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(91, 245, 176, 0.25);
}
.beta-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(91, 245, 176, 0.4);
}
.beta-perks {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.perk {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.perk svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ---- TRUST ---- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.trust-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  padding: 2rem;
}
.trust-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---- FOOTER ---- */
.mkt-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--dark-border);
  text-align: center;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1rem;
}
.footer-tagline em {
  font-style: normal;
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--mint); }
.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ---- SVG CLASSES (owl logo inline styles) ---- */
.h-st2  { fill: url(#h-lg2); }
.h-st3  { fill: url(#h-lg1); }
.h-st4  { fill: url(#h-lg9); }
.h-st5  { fill: url(#h-lg3); }
.h-st6  { fill: url(#h-lg6); }
.h-st7  { fill: url(#h-lg8); }
.h-st8  { fill: url(#h-lg7); }
.h-st9  { fill: url(#h-lg5); }
.h-st10 { fill: url(#h-lg4); }
.h-st30 { fill: url(#h-lg18); }
.h-st31 { fill: url(#h-lg13); }
.h-st32 { fill: url(#h-lg12); }
.h-st33 { fill: url(#h-lg15); }
.h-st34 { fill: url(#h-lg11); }
.h-st35 { fill: url(#h-lg10); }
.h-st36 { fill: url(#h-lg14); }
.h-st46 { fill: url(#h-lg0); }
.h-st49 { fill: #5ba3f5; }
.h-st50 { stroke: url(#h-lg16); stroke-width: 26.4px; fill: none; stroke-miterlimit: 10; }
.h-st51 { stroke: url(#h-lg17); stroke-width: 26.4px; fill: none; stroke-miterlimit: 10; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 1fr; }
  .scenario-context { padding-right: 0; }
  .understanding-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .beta-perks { flex-direction: column; align-items: center; }
  .mkt-nav { padding: 0.75rem 1rem; }
}
