:root {
  --bg: #070b14;
  --bg-elev: #0d1424;
  --bg-card: rgba(18, 29, 49, 0.72);
  --text: #e9f0ff;
  --text-soft: #a6b4d6;
  --muted: #7d8dad;
  --line: rgba(148, 174, 229, 0.22);
  --primary: #5f85ff;
  --primary-2: #7fa4ff;
  --accent: #39c3ff;
  --ok: #64d8a9;
  --warning: #ffc77a;
  --shadow: 0 20px 60px rgba(6, 10, 20, 0.45);
  --radius: 16px;
  --radius-sm: 12px;
  --space: clamp(1rem, 1.8vw, 1.4rem);
}

body[data-theme="light"] {
  --bg: #eef3ff;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text: #0d1a34;
  --text-soft: #2f4268;
  --muted: #5c7096;
  --line: rgba(26, 57, 116, 0.16);
  --primary: #355dce;
  --primary-2: #2f58c8;
  --accent: #2b9ad2;
  --shadow: 0 18px 40px rgba(33, 58, 109, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 80% -10%, rgba(95, 133, 255, 0.18), transparent 32%),
    radial-gradient(circle at 15% 5%, rgba(57, 195, 255, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5rem;
  line-height: 1.12;
  font-family: "Space Grotesk", "Aptos", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid rgba(148, 174, 229, 0.1);
}

.header-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-mark {
  width: clamp(140px, 16vw, 210px);
  height: clamp(38px, 4.8vw, 58px);
  border-radius: 0;
  background-image: url("Assets/edunify inverted logo transparent v1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  box-shadow: none;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.brand > span:not(.brand-mark) {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, #3c5ec3, #257ca7);
  color: #f7fbff;
  text-shadow: 0 1px 0 rgba(5, 12, 24, 0.35);
  box-shadow: 0 10px 30px rgba(57, 195, 255, 0.28);
}

.btn-secondary {
  border-color: rgba(127, 164, 255, 0.45);
  color: var(--text);
  background: rgba(16, 24, 42, 0.6);
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.theme-switch-track {
  position: relative;
  width: 62px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(127, 164, 255, 0.45);
  background: rgba(16, 24, 42, 0.62);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.theme-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.theme-icon-moon {
  left: 9px;
  color: #d2dcff;
  opacity: 1;
}

.theme-icon-sun {
  right: 9px;
  color: #7d8dad;
  opacity: 0.68;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #b7caff, #6f96ff);
  box-shadow: 0 4px 14px rgba(111, 150, 255, 0.5);
  transition: transform 0.22s ease;
}

.theme-switch-input:focus-visible + .theme-switch-track {
  box-shadow: 0 0 0 3px rgba(95, 133, 255, 0.35);
}

.theme-switch-input:checked + .theme-switch-track .theme-switch-thumb {
  transform: translateX(28px);
}

.theme-switch-input:checked + .theme-switch-track .theme-icon-moon {
  color: #7d8dad;
  opacity: 0.68;
}

.theme-switch-input:checked + .theme-switch-track .theme-icon-sun {
  color: #ffd277;
  opacity: 1;
}

.hero {
  padding: 5.6rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.1rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  max-width: 62ch;
}

.hero-cta {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.panel {
  background: linear-gradient(180deg, rgba(21, 34, 57, 0.9), rgba(13, 20, 36, 0.74));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 1rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.metric {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 174, 229, 0.18);
  padding: 0.75rem;
  background: rgba(11, 18, 33, 0.75);
}

.metric strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
}

.strip {
  margin: 2.2rem 0 0;
  border-top: 1px solid rgba(148, 174, 229, 0.1);
  border-bottom: 1px solid rgba(148, 174, 229, 0.1);
  background: rgba(8, 12, 22, 0.5);
}

.strip-wrap {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.strip-item {
  color: var(--text-soft);
  font-size: 0.92rem;
}

section {
  padding: 4.6rem 0;
}

.section-head {
  max-width: 70ch;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card ul {
  margin: 0.7rem 0 0;
  padding-left: 1rem;
  color: var(--text-soft);
}

.problem-list,
.checklist {
  display: grid;
  gap: 0.7rem;
}

.problem-list div,
.checklist div {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 174, 229, 0.2);
  background: rgba(12, 18, 31, 0.72);
  padding: 0.85rem 0.9rem;
}

.problem-list span {
  color: var(--warning);
}

.checklist span {
  color: var(--ok);
}

.platform-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.flow-connector {
  display: grid;
  place-items: center;
  color: var(--primary-2);
  font-size: 1.2rem;
}

.pricing-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: rgba(16, 24, 42, 0.72);
  border: 1px solid rgba(148, 174, 229, 0.2);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.faq {
  display: grid;
  gap: 0.7rem;
}

details {
  border-radius: var(--radius-sm);
  background: rgba(13, 20, 35, 0.78);
  border: 1px solid rgba(148, 174, 229, 0.18);
  padding: 0.8rem 0.9rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin-top: 0.6rem;
}

.final-cta {
  text-align: center;
  padding: 4rem 0;
}

.site-footer {
  border-top: 1px solid rgba(148, 174, 229, 0.12);
  padding: 1.4rem 0 2.5rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.kpis {
  display: grid;
  gap: 0.9rem;
}

.quote-form {
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(8, 13, 24, 0.76);
  color: var(--text);
  padding: 0.62rem 0.72rem;
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(95, 133, 255, 0.24);
}

.field-full {
  grid-column: 1 / -1;
}

.check-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  background: rgba(8, 13, 24, 0.6);
}

.check-row label {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  column-gap: 0.45rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.check-row label input {
  margin-top: 0.1rem;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.success-banner {
  border-radius: var(--radius);
  border: 1px solid rgba(100, 216, 169, 0.35);
  background: rgba(100, 216, 169, 0.1);
  padding: 1rem 1.1rem;
}

.success-banner h2 {
  margin-bottom: 0.45rem;
}

.story-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: linear-gradient(165deg, rgba(17, 28, 46, 0.95), rgba(10, 16, 30, 0.85));
}

.story-copy {
  display: grid;
  align-content: center;
  gap: 0.85rem;
}

.story-copy h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.story-copy p {
  font-size: 1rem;
}

.story-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(148, 174, 229, 0.22);
  background: rgba(9, 13, 22, 0.8);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.77rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 174, 229, 0.2);
}

@media (max-width: 1024px) {
  .hero-grid,
  .grid-3,
  .pricing-band,
  .story-band {
    grid-template-columns: 1fr;
  }

  .platform-flow {
    grid-template-columns: 1fr;
  }

  .flow-connector {
    transform: rotate(90deg);
    padding: 0.2rem 0;
  }
}

@media (max-width: 760px) {
  .header-wrap {
    padding: 0.7rem 0;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .check-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3.4rem 0;
  }
}

body[data-theme="light"] {
  background: radial-gradient(circle at 85% -20%, rgba(95, 133, 255, 0.2), transparent 35%),
    radial-gradient(circle at 15% 0%, rgba(57, 195, 255, 0.16), transparent 30%),
    var(--bg);
}

body[data-theme="light"] .site-header {
  background: rgba(238, 243, 255, 0.84);
  border-bottom: 1px solid rgba(26, 57, 116, 0.12);
}

body[data-theme="light"] .panel,
body[data-theme="light"] .metric,
body[data-theme="light"] .btn-secondary,
body[data-theme="light"] .strip,
body[data-theme="light"] details,
body[data-theme="light"] .problem-list div,
body[data-theme="light"] .checklist div {
  background: rgba(255, 255, 255, 0.86);
}

body[data-theme="light"] .theme-switch-track {
  border-color: rgba(26, 57, 116, 0.26);
  background: rgba(233, 240, 255, 0.9);
}

body[data-theme="light"] .theme-switch-thumb {
  background: linear-gradient(145deg, #ffe8a6, #ffbf4f);
  box-shadow: 0 4px 14px rgba(255, 191, 79, 0.45);
}

body[data-theme="light"] .field input,
body[data-theme="light"] .field select,
body[data-theme="light"] .field textarea,
body[data-theme="light"] .check-row {
  background: rgba(255, 255, 255, 0.94);
}

body[data-theme="light"] .story-band {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(239, 245, 255, 0.9));
}

body[data-theme="light"] .brand-mark {
  background-image: url("Assets/edunify logo transparent v1.png");
}

body[data-theme="light"] .btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
}
