/* LearningStudio — landing educalia.app */
:root {
  --ink: #0b1020;
  --ink-soft: #161d33;
  --paper: #f3f5f9;
  --paper-2: #e8ecf4;
  --text: #12172a;
  --muted: #5a6478;
  --line: rgba(18, 23, 42, 0.1);
  --brand: #6b5ce7;
  --brand-deep: #4f46c8;
  --glow: #8b7cf5;
  --accent: #1fa7a0;
  --accent-soft: #d8f3f1;
  --warn: #c97b2e;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(11, 16, 32, 0.14);
  --radius: 18px;
  --max: 1120px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  padding: 0.5rem 1rem;
}

/* —— Nav —— */
.site-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(139, 124, 245, 0.55);
}

.brand span {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: grid;
  align-items: end;
  padding: 7.5rem 0 4.5rem;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 75% 20%, rgba(107, 92, 231, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 80%, rgba(31, 167, 160, 0.22), transparent 50%),
    linear-gradient(165deg, #070a14 0%, var(--ink) 45%, #1a2140 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  animation: rise 0.8s ease both;
}

.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(107, 92, 231, 0.45);
}

.hero-brand strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-brand small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  font-weight: 400;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
  animation: rise 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.78);
  animation: rise 0.9s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--glow), var(--brand-deep));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(107, 92, 231, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 1;
  animation: float 7s ease-in-out infinite;
}

.hero-visual .orb {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(31, 167, 160, 0.35), transparent 45%),
    linear-gradient(145deg, #1c2342, #0b1020);
  border: 2px solid rgba(139, 124, 245, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}

.hero-visual .orb img {
  width: 58%;
  border-radius: 50%;
}

.hero-visual .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: spin 28s linear infinite;
}

.hero-visual .chip {
  position: absolute;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-1 { top: 8%; left: -4%; animation: rise 1s ease 0.4s both; }
.chip-2 { bottom: 18%; right: -8%; animation: rise 1s ease 0.55s both; }
.chip-3 { top: 42%; left: -18%; animation: rise 1s ease 0.7s both; }

/* —— Sections —— */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 550;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Benefits */
.benefits {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(11, 16, 32, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.benefit:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.benefit .icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
}

.benefit h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.benefit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  background: var(--ink);
  color: var(--white);
}

.features .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.features .eyebrow {
  color: var(--glow);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

.feature span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.feature .mark {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(31, 167, 160, 0.2);
}

/* Proof */
.proof {
  background:
    linear-gradient(120deg, rgba(31, 167, 160, 0.1), transparent 40%),
    var(--paper-2);
}

.proof-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.proof-panel {
  padding: 2rem;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.proof-panel ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.proof-panel li {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.proof-panel li:last-child {
  border-bottom: 0;
}

.proof-panel li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

.proof-stats {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

/* Pricing */
.pricing {
  background: #fff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan.featured {
  background: linear-gradient(180deg, #171e36 0%, var(--ink) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(79, 70, 200, 0.28);
}

.plan.featured .muted,
.plan.featured .plan-list li {
  color: rgba(255, 255, 255, 0.72);
}

.badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.plan .muted {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 2.6em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: 1.15rem;
}

.price strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.price span {
  font-size: 0.85rem;
  opacity: 0.7;
}

.plan-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan-list li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.plan.featured .plan-list li::before {
  background: var(--accent);
}

.plan .btn {
  width: 100%;
}

.plan.featured .btn-primary {
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}

.pricing-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* CTA band */
.cta-band {
  padding: 4rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(107, 92, 231, 0.18), transparent),
    var(--paper);
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 550;
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  background: #070a14;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 600;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

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

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Animations */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .hero-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 300px);
    order: -1;
  }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
    align-items: start;
  }

  .hero h1 {
    max-width: none;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.25rem;
    left: 1.25rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(11, 16, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .chip-3 {
    display: none;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
