﻿:root {
  --bg: #eef2f5;
  --ink: #17202a;
  --muted: #667381;
  --line: rgba(30, 42, 56, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --accent: #1f7a8c;
  --accent-2: #2d6cdf;
  --success: #24a148;
  --shadow: 0 24px 80px rgba(17, 31, 46, 0.18);
  --radius: 28px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(45, 108, 223, 0.18), transparent 28rem),
    linear-gradient(135deg, #f7f9fb 0%, var(--bg) 45%, #dde5ea 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  min-height: 100vh;
  padding: clamp(14px, 2vw, 28px);
  place-items: center;
}

.device-frame {
  width: min(1180px, 100%);
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.brand,
.utility-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.74rem;
}

.icon-button,
.language-button,
.ghost-button,
.section-heading button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
}

.icon-button {
  width: 42px;
  font-weight: 800;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 72px;
  padding: 0 13px;
  font-weight: 800;
}

.language-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  font-size: 0.72rem;
}

.ghost-button,
.section-heading button {
  padding: 0 15px;
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 18px clamp(16px, 3vw, 28px) 12px;
}

.hero-panel,
.login-panel,
.course-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.hero-panel {
  height: clamp(420px, 58vh, 560px);
  min-height: clamp(420px, 58vh, 560px);
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.03);
}

.slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(11, 22, 36, 0.82), rgba(11, 22, 36, 0.22) 72%),
    linear-gradient(0deg, rgba(11, 22, 36, 0.34), transparent 50%);
}

.slide-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(610px, 88%);
  height: 100%;
  min-height: 0;
  flex-direction: column;
  justify-content: end;
  padding: clamp(24px, 4vw, 46px);
  color: white;
}

.eyebrow,
.course-card span {
  color: #b9f3ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 11ch;
  margin-top: 10px;
  font-size: clamp(2.05rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.slide-overlay p {
  max-width: 46ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  line-height: 1.6;
}

.slider-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
}

.dot.is-active {
  background: white;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}

.status-card {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel-strong);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(36, 161, 72, 0.14);
}

.login-panel h2 {
  font-size: 1.7rem;
  line-height: 1.05;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

input:focus {
  border-color: rgba(31, 122, 140, 0.62);
  box-shadow: 0 0 0 4px rgba(31, 122, 140, 0.12);
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(31, 122, 140, 0.26);
}

.login-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.course-strip {
  padding: 0 clamp(16px, 3vw, 28px) 22px;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 clamp(16px, 3vw, 28px) 14px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}


.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.course-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  padding: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(17, 31, 46, 0.12);
}

.course-card img {
  width: 92px;
  height: 92px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
}

.course-card div {
  min-width: 0;
  align-self: center;
}

.course-card span {
  color: var(--accent);
  font-size: 0.66rem;
}

.course-card h3 {
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.12;
}

.course-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .app-shell {
    align-items: start;
    padding: 10px;
  }

  .device-frame {
    max-height: none;
    min-height: calc(100vh - 20px);
    border-radius: 24px;
  }

  .topbar {
    padding: 12px;
  }

  .brand small {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
  }

  .hero-panel {
    height: 54vh;
    min-height: 430px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .slide-overlay {
    width: 100%;
    padding: 22px;
  }

  .login-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .login-panel h2 {
    font-size: 1.35rem;
  }

  form {
    grid-template-columns: 1fr;
  }

  .course-strip {
    padding: 0 12px 14px;
  }

  .app-footer {
    padding: 0 12px 14px;
  }


  .course-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .course-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .hero-panel {
    height: 390px;
    min-height: 390px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .login-panel {
    padding: 18px;
  }

  .course-card {
    min-height: 96px;
  }

}




