/* EDOSIS Landing — Dinas Pendidikan Kabupaten Kediri */

:root {
  --eds-blue: #1a6cff;
  --eds-blue-deep: #0d4fd6;
  --eds-navy: #0b2f6b;
  --eds-navy-2: #123a7a;
  --eds-sky: #e8f1ff;
  --eds-sky-2: #f3f7ff;
  --eds-ink: #1a2b4a;
  --eds-muted: #6b7c99;
  --eds-line: #d7e3f5;
  --eds-white: #ffffff;
  --eds-radius: 16px;
  --eds-shadow: 0 18px 40px rgba(15, 55, 120, 0.12);
  --eds-font: "Poppins", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--eds-font);
  color: var(--eds-ink);
  background: var(--eds-white);
  line-height: 1.55;
}

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

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

.eds-container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.eds-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 108, 255, 0.06);
}

.eds-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}

.eds-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eds-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #3d8bff, #1557e0);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 108, 255, 0.28);
  flex-shrink: 0;
}

.eds-brand-mark svg {
  width: 22px;
  height: 22px;
}

.eds-brand-text strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--eds-blue);
  line-height: 1.1;
}

.eds-brand-text small {
  display: block;
  font-size: 0.68rem;
  color: var(--eds-muted);
  font-weight: 500;
  margin-top: 2px;
}

.eds-menu-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}

.eds-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.eds-menu a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7a8aa8;
  transition: color 0.2s ease;
}

.eds-menu a:hover,
.eds-menu a.is-active {
  color: var(--eds-blue);
}

.eds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.eds-btn-login {
  background: var(--eds-blue);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 22px rgba(26, 108, 255, 0.28);
}

.eds-btn-login:hover {
  background: var(--eds-blue-deep);
  color: #fff;
}

.eds-btn-primary {
  background: var(--eds-blue);
  color: #fff;
  padding: 13px 22px;
  font-size: 0.92rem;
  box-shadow: 0 12px 26px rgba(26, 108, 255, 0.28);
}

.eds-btn-primary:hover {
  background: var(--eds-blue-deep);
  color: #fff;
}

.eds-btn-ghost {
  background: transparent;
  color: var(--eds-blue);
  padding: 13px 8px;
  font-size: 0.92rem;
}

.eds-btn-ghost i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26, 108, 255, 0.12);
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
}

.eds-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--eds-line);
  border-radius: 10px;
  background: #fff;
  color: var(--eds-ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.eds-hero {
  position: relative;
  padding: 48px 0 120px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(120, 190, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 45% at 88% 15%, rgba(90, 160, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 55%, #ffffff 100%);
  overflow: hidden;
}

.eds-hero::before,
.eds-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 380px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.eds-hero::before {
  left: -40px;
  bottom: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280'%3E%3Cpath fill='%23228b4a' d='M40 260c20-70 10-120-10-170 40 30 70 80 60 150-5 30-30 40-50 20z'/%3E%3Cpath fill='%2330a05a' d='M70 250c30-90 50-140 90-190-10 70-20 130-40 180-10 25-30 30-50 10z'/%3E%3Cpath fill='%231a6b3a' d='M30 270c5-40 0-80-20-120 35 20 55 70 45 120z'/%3E%3C/svg%3E");
}

.eds-hero::after {
  right: -50px;
  top: 60px;
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280'%3E%3Cpath fill='%23228b4a' d='M40 260c20-70 10-120-10-170 40 30 70 80 60 150-5 30-30 40-50 20z'/%3E%3Cpath fill='%2330a05a' d='M70 250c30-90 50-140 90-190-10 70-20 130-40 180-10 25-30 30-50 10z'/%3E%3C/svg%3E");
}

.eds-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.eds-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(26, 108, 255, 0.1);
  color: var(--eds-blue);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  animation: eds-fade-up 0.7s ease both;
}

.eds-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--eds-ink);
  animation: eds-fade-up 0.75s ease 0.08s both;
}

.eds-hero h1 span {
  color: var(--eds-blue);
}

.eds-hero-lead {
  margin: 0 0 28px;
  max-width: 42ch;
  color: var(--eds-muted);
  font-size: 1rem;
  animation: eds-fade-up 0.75s ease 0.16s both;
}

.eds-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  animation: eds-fade-up 0.75s ease 0.24s both;
}

.eds-hero-visual {
  position: relative;
  animation: eds-float-in 0.9s ease 0.2s both;
}

.eds-laptop {
  position: relative;
  margin: 0 auto;
  width: min(100%, 520px);
  filter: drop-shadow(0 28px 40px rgba(20, 60, 120, 0.22));
}

.eds-laptop-screen {
  background: #111827;
  border: 10px solid #1f2937;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.eds-dash {
  height: 100%;
  display: grid;
  grid-template-columns: 56px 1fr;
  background: #f5f8fc;
}

.eds-dash-side {
  background: linear-gradient(180deg, #1a6cff, #0d4fd6);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.eds-dash-side span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.eds-dash-main {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eds-dash-top {
  height: 18px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.eds-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.eds-stat {
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(20, 60, 120, 0.06);
  padding: 6px 4px;
}

.eds-stat-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid #dbe8ff;
  border-top-color: var(--eds-blue);
  border-right-color: var(--eds-blue);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--eds-ink);
}

.eds-stat small {
  font-size: 0.48rem;
  color: var(--eds-muted);
  text-align: center;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.eds-laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #9ca3af, #6b7280);
  border-radius: 0 0 10px 10px;
  position: relative;
}

.eds-laptop-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  width: 18%;
  height: 4px;
  border-radius: 4px;
  background: #4b5563;
}

.eds-laptop-stand {
  width: 56%;
  height: 10px;
  margin: 0 auto;
  background: linear-gradient(180deg, #e5e7eb, #d1d5db);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 0 #eef2f7;
}

/* ---------- Feature strip ---------- */
.eds-features-strip {
  position: relative;
  z-index: 2;
  margin-top: -72px;
  margin-bottom: 40px;
}

.eds-features-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--eds-shadow);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.eds-feature-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 28px 26px;
  border-right: 1px solid #eef2f8;
  transition: background 0.2s ease;
}

.eds-feature-item:last-child {
  border-right: 0;
}

.eds-feature-item:hover {
  background: #f8fbff;
}

.eds-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(26, 108, 255, 0.1);
  color: var(--eds-blue);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.eds-feature-item h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eds-feature-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--eds-muted);
  line-height: 1.4;
}

.eds-feature-go {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(26, 108, 255, 0.1);
  color: var(--eds-blue);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.eds-feature-item:hover .eds-feature-go {
  background: var(--eds-blue);
  color: #fff;
}

/* ---------- Fitur unggulan ---------- */
.eds-section {
  padding: 72px 0;
}

.eds-fitur-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eds-kicker {
  color: var(--eds-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.eds-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--eds-ink);
}

.eds-section-lead {
  margin: 0 0 28px;
  color: var(--eds-muted);
  max-width: 48ch;
}

.eds-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.eds-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
}

.eds-list-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(26, 108, 255, 0.1);
  color: var(--eds-blue);
  display: grid;
  place-items: center;
}

.eds-list h4 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.eds-list p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--eds-muted);
}

.eds-fitur-visual {
  animation: eds-float 5s ease-in-out infinite;
}

.eds-fitur-visual .eds-laptop {
  width: min(100%, 480px);
}

/* ---------- Registrasi ---------- */
.eds-register {
  position: relative;
  padding: 80px 0 70px;
  background:
    linear-gradient(115deg, rgba(8, 35, 90, 0.92), rgba(18, 58, 130, 0.88)),
    url("../img/cta-bg.jpg") center / cover no-repeat;
  color: #fff;
  overflow: visible;
}

.eds-register-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}

.eds-register h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.eds-register > .eds-container > .eds-register-grid > div:first-child > p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
}

.eds-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.eds-contact li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.eds-contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
}

.eds-contact span {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.eds-form-card {
  background: rgba(8, 28, 72, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(8px);
}

.eds-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.eds-form-group {
  margin-bottom: 14px;
}

.eds-form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.eds-form-group .form-control,
.eds-form-group select,
.eds-form-group input[type="text"],
.eds-form-group input[type="file"] {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.eds-form-group .form-control::placeholder,
.eds-form-group input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.eds-form-group .form-control:focus,
.eds-form-group select:focus,
.eds-form-group input:focus {
  border-color: rgba(120, 180, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.eds-form-group select option {
  color: #1a2b4a;
  background: #fff;
}

.eds-form-group input[type="file"] {
  padding: 9px 12px;
  font-size: 0.82rem;
}

.eds-form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.eds-form-card .eds-btn-primary {
  width: 100%;
  margin-top: 6px;
  height: 46px;
}

/* Select2 in dark form */
.eds-form-card {
  overflow: visible;
  position: relative;
  z-index: 5;
}

.eds-form-card .select2-container {
  width: 100% !important;
  z-index: 6;
}

.eds-form-card .select2-container--default .select2-selection--single {
  height: 44px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

.eds-form-card .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  padding-left: 14px !important;
  padding-right: 48px !important;
  color: #fff !important;
  font-size: 0.9rem;
}

.eds-form-card .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  right: 8px !important;
}

.eds-form-card .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #fff transparent transparent transparent !important;
}

.eds-form-card .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #fff transparent !important;
}

.eds-form-card .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.eds-form-card .select2-container--default .select2-selection--single .select2-selection__clear {
  color: #fff !important;
  margin-right: 24px;
}

/* Dropdown must sit above footer / sections */
body > .select2-container {
  z-index: 10050 !important;
}

.select2-container--open {
  z-index: 10050 !important;
}

.select2-dropdown {
  border: 1px solid var(--eds-line) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--eds-shadow);
  background: #fff !important;
  z-index: 10051 !important;
}

.select2-search--dropdown .select2-search__field {
  border-radius: 8px !important;
  border: 1px solid var(--eds-line) !important;
  padding: 8px 10px !important;
  font-family: var(--eds-font);
  color: #1a2b4a !important;
  background: #fff !important;
}

.select2-results__option {
  font-family: var(--eds-font);
  font-size: 0.88rem;
  padding: 8px 12px !important;
  color: #1a2b4a !important;
  background: #fff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
  background: var(--eds-blue) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: #eef5ff !important;
  color: #1668c9 !important;
}

/* ---------- Footer ---------- */
.eds-footer {
  background: #081c48;
  color: rgba(255, 255, 255, 0.75);
  padding: 22px 0;
  text-align: center;
}

.eds-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.eds-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.eds-footer-brand .eds-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: none;
}

.eds-footer-brand .eds-brand-mark svg {
  width: 16px;
  height: 16px;
}

.eds-footer p {
  margin: 0;
  font-size: 0.8rem;
}

/* ---------- Video modal ---------- */
.eds-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.eds-modal.is-open {
  display: flex;
}

.eds-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 50, 0.72);
}

.eds-modal-dialog {
  position: relative;
  width: min(860px, 100%);
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.eds-modal-dialog video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

.eds-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--eds-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* ---------- Motion ---------- */
@keyframes eds-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eds-float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

  .eds-hero {
    padding-bottom: 100px;
  }

  .eds-hero-visual {
    order: -1;
  }

  .eds-features-card {
    grid-template-columns: 1fr;
  }

  .eds-feature-item {
    border-right: 0;
    border-bottom: 1px solid #eef2f8;
  }

  .eds-feature-item:last-child {
    border-bottom: 0;
  }

  .eds-hero::before,
  .eds-hero::after {
    opacity: 0.28;
  }
}

@media (max-width: 760px) {
  .eds-burger {
    display: inline-flex;
  }

  .eds-menu-wrap {
    position: fixed;
    inset: 74px 16px auto;
    background: #fff;
    border: 1px solid var(--eds-line);
    border-radius: 14px;
    box-shadow: var(--eds-shadow);
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 120;
  }

  .eds-menu-wrap.is-open {
    display: flex;
  }

  .eds-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .eds-menu a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .eds-menu a:hover {
    background: var(--eds-sky);
  }

  .eds-btn-login {
    width: 100%;
  }

  .eds-form-row {
    grid-template-columns: 1fr;
  }

  .eds-features-strip {
    margin-top: -40px;
  }
}

/* Logo aplikasi (menggantikan ikon SVG lama) */
.eds-brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(26, 108, 255, 0.25);
}
.eds-footer-brand .eds-brand-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: none; }
.eds-brand-logo { box-shadow: 0 0 0 1px #dfe6f1, 0 8px 18px rgba(15, 31, 61, 0.12); }
.eds-footer-brand .eds-brand-logo { box-shadow: none; }
