/* ==========================================================================
   e-Təhsil — landing üslubları
   Bölmələr: şrift → tokenlər → baza → layout → komponentlər → responsiv
   ========================================================================== */

/* ---------------------------------------------------------------- Şrift ---
   Self-hosted, yalnız Azərbaycan əlifbası üçün subset (32 KB). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('./fonts/inter-az.woff2') format('woff2');
}

/* ------------------------------------------------------------- Tokenlər --- */
:root {
  color-scheme: light;

  /* Brend rəngləri */
  --accent: #2b8cee;
  --accent-2: #7c5cff;
  /* Ağ mətn üçün kifayət qədər tünd variantlar: 4.96:1 və 6.65:1. */
  --accent-strong: #1d6fd0;
  --accent-strong-2: #6039e0;
  --success: #16a34a;

  /* Səthlər */
  --page: #f6f7fb; /* səhifə fonu */
  --panel: #fbfcfe; /* mərkəzi konteyner */
  --surface: #ffffff; /* konteyner içindəki kartlar, düymələr */
  --border: rgba(15, 23, 42, 0.09);

  /* Mətn */
  --text: #0f172a;
  /* Kontrast: ağ üzərində 6.09:1, --page üzərində 5.68:1 — WCAG AA. */
  --muted: #55637a;

  /* Forma */
  --radius-panel: 26px;
  --radius-card: 16px;
  --radius-btn: 14px;
  --shadow-panel: 0 24px 60px -28px rgba(15, 23, 42, 0.32);

  --font:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, sans-serif;
}

/* ------------------------------------------------------------ Tünd rejim ---
   Yalnız tokenlər dəyişir — komponentlər olduğu kimi qalır. `data-theme`
   head-dəki skript tərəfindən boyamadan əvvəl qoyulur. */
:root[data-theme='dark'] {
  color-scheme: dark;

  --page: #0b1120;
  --panel: #121a2c;
  --surface: #1a2438;
  --border: rgba(148, 175, 226, 0.16);

  --text: #e9eefb;
  /* Tünd panel üzərində 6.4:1 — WCAG AA. */
  --muted: #a3b1cc;

  /* Tünd fonda daha parlaq mavi lazımdır. */
  --accent: #63a8ff;
  --accent-2: #9b83ff;

  --shadow-panel: 0 26px 70px -30px rgba(0, 0, 0, 0.75);
}

:root[data-theme='dark'] body {
  background-image:
    radial-gradient(
      620px 520px at 8% -6%,
      rgba(43, 140, 238, 0.24),
      transparent 70%
    ),
    radial-gradient(
      560px 460px at 96% 104%,
      rgba(124, 92, 255, 0.22),
      transparent 70%
    );
}

/* Emoji nişanlarının pastel fonları tünd rejimdə şəffaf tona çevrilir. */
:root[data-theme='dark'] .icon--ai,
:root[data-theme='dark'] .icon--annual {
  background: rgba(251, 146, 60, 0.2);
}
:root[data-theme='dark'] .icon--compose {
  background: rgba(139, 92, 246, 0.24);
}
:root[data-theme='dark'] .icon--share,
:root[data-theme='dark'] .icon--free {
  background: rgba(34, 197, 94, 0.22);
}
:root[data-theme='dark'] .icon--results {
  background: rgba(236, 72, 153, 0.22);
}
:root[data-theme='dark'] .icon--exams {
  background: rgba(59, 130, 246, 0.24);
}
:root[data-theme='dark'] .icon--news {
  background: rgba(14, 165, 233, 0.24);
}

:root[data-theme='dark'] .badge {
  background: rgba(99, 168, 255, 0.12);
  border-color: rgba(99, 168, 255, 0.28);
}

:root[data-theme='dark'] .legal code {
  background: rgba(148, 175, 226, 0.14);
}

/* Hüquqi səhifələrdə linklər tünd fonda oxunaqlı qalsın. */
:root[data-theme='dark'] .legal a,
:root[data-theme='dark'] footer a:hover,
:root[data-theme='dark'] .backlink:hover,
:root[data-theme='dark'] h1 .accent {
  color: var(--accent);
}

/* ----------------------------------------------------------------- Baza --- */
* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(32px + env(safe-area-inset-top))
    calc(20px + env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom))
    calc(20px + env(safe-area-inset-left));

  display: flex;
  flex-direction: column;
  align-items: center;
  /* `safe center`: məzmun ekrandan uzun olanda yuxarı kəsilmir. */
  justify-content: center;
  justify-content: safe center;

  font-family: var(--font);
  color: var(--text);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;

  background-color: var(--page);
  /* Arxa fon işıqları `filter: blur()` yox, gradient-dir — paint xeyli ucuz. */
  background-image:
    radial-gradient(
      620px 520px at 8% -6%,
      rgba(43, 140, 238, 0.2),
      transparent 70%
    ),
    radial-gradient(
      560px 460px at 96% 104%,
      rgba(124, 92, 255, 0.18),
      transparent 70%
    );
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Yalnız ekran oxuyucular üçün — vizual olaraq gizli, ağacda mövcud. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------- Layout --- */
.container {
  width: 100%;
  min-width: 0;
  max-width: 660px;
  padding: 40px 36px 32px;
  text-align: center;

  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);

  /* Yalnız transform animasiya olunur — opacity:0 LCP-ni gecikdirərdi. */
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

/* --------------------------------------------------------------- Kimlik ---
   Sosial şəbəkə profili kimi: solda loqo, sağda ad və tagline. */
.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.identity__text {
  min-width: 0;
}

/* Mövzu düyməsi — header-in sağ kənarında, sakit ikon düyməsi. */
.theme-toggle {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-start;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;

  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;

  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.theme-toggle:hover {
  color: var(--accent-strong);
  border-color: rgba(43, 140, 238, 0.4);
  transform: translateY(-1px);
}

:root[data-theme='dark'] .theme-toggle:hover {
  color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* İşıqlı rejimdə ay (tündə keç), tünd rejimdə günəş (işığa keç). */
.theme-toggle__sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle__sun {
  display: block;
}

:root[data-theme='dark'] .theme-toggle__moon {
  display: none;
}

.badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
  color: var(--muted);

  background: rgba(43, 140, 238, 0.08);
  border: 1px solid rgba(43, 140, 238, 0.22);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.logo {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

h1 {
  margin: 0 0 2px;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h1 .accent {
  color: var(--accent-strong);
}

/* Adın yanındakı domen nişanı — kölgəli, sakit, oxunan ölçüdə. */
.tld {
  display: inline-block;
  /* margin-top: 6px !important; */
  margin-left: 4px;
  margin-bottom: 2px;
  vertical-align: bottom;

  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.3;
  color: var(--muted);

  background: var(--surface);
}

/* Gradient mətn yalnız dəstəklənəndə — əks halda rəngli fallback qalır. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 .accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.lead {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  text-align: left;
}

/* --------------------------------------------------------- İmkanlar ---
   Kart yox — sakit siyahı. Fon, çərçivə və kölgə olmadığı üçün sətirlər
   basıla bilən düymə təəssüratı yaratmır; səhifədə yalnız video kartları
   və düymələr interaktiv görünür. Eyni zamanda kartlardan alçaqdır, ona
   görə ümumi hündürlük xeyli azalır. */
.features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 14px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  text-align: left;
}

.feature .icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1;
}

.feature .label {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.feature .sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* Emoji nişanlarının pastel fonları. */
.icon--ai,
.icon--annual {
  background: #ffedd5;
}
.icon--compose {
  background: #ede9fe;
}
.icon--share,
.icon--free {
  background: #dcfce7;
}
.icon--results {
  background: #fce7f3;
}
.icon--exams {
  background: #dbeafe;
}
.icon--news {
  background: #e0f2fe;
}

/* Süni intellekt və pulsuz sətirləri vurğulanır: bütün eni tutur və solda
   incə rəngli xətt alır — sitat üslubu, qutu deyil. */
.feature--ai,
.feature--free {
  grid-column: 1 / -1;
  /* Mənfi margin xətti panelin daxili kənarına çıxarır ki, nişanlar digər
     sətirlərlə eyni şaquli xətdə qalsın. */
  margin-left: -15px;
  padding-left: 13px;
  border-left: 2px solid var(--accent-2);
}

.feature--free {
  border-left-color: var(--success);
}

/* ------------------------------------------------------ Video dərsliklər --- */
.section-title {
  margin: 0 0 4px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-note {
  margin: 0 0 12px;
  text-align: left;
  font-size: 12.5px;
  color: var(--muted);
}

/* Kart görünüşü burada qalır — bu sətirlər həqiqətən klik olunur. */
.videos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.video {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  text-align: left;

  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);

  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.video .label {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.video .sub {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.video:hover,
.video:focus-visible {
  border-color: rgba(43, 140, 238, 0.4);
  transform: translateY(-1px);
}

.video:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.video .play {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--accent-strong),
    var(--accent-strong-2)
  );
}

.video .play svg {
  width: 11px;
  height: 11px;
  fill: #fff;
}

/* -------------------------------------------------------------- Düymələr --- */
/* İki mağaza düyməsi eyni üslub və eyni endə — biri digərindən üstün
   görünmür. */
.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);

  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

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

.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(
    135deg,
    var(--accent-strong),
    var(--accent-strong-2)
  );
  box-shadow: 0 16px 34px -16px rgba(43, 140, 238, 0.9);
}

.btn--primary:hover {
  box-shadow: 0 20px 40px -16px rgba(43, 140, 238, 1);
}



/* --------------------------------------------------------------- Footer --- */
footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer .domain {
  color: var(--text);
  font-weight: 600;
}

footer a {
  display: inline-block;
  padding: 4px 2px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border);
}

footer a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

footer a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ======================================================================
   Responsiv
   ====================================================================== */

/* Planşet və dar pəncərə */
@media (max-width: 700px) {
  body {
    padding-top: calc(28px + env(safe-area-inset-top));
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .container {
    padding: 36px 26px 30px;
  }
  .lead {
    font-size: 14.5px;
  }
}

/* Telefon */
@media (max-width: 560px) {
  body {
    padding-left: calc(14px + env(safe-area-inset-left));
    padding-right: calc(14px + env(safe-area-inset-right));
  }
  .container {
    padding: 32px 20px 26px;
    border-radius: 22px;
  }
  .badge {
    margin-bottom: 20px;
    padding: 6px 12px;
    font-size: 11.5px;
  }
  .identity {
    gap: 13px;
    margin-bottom: 14px;
  }
  .logo {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    border-radius: 18px;
  }
  .tagline {
    font-size: 14px;
  }
  .lead {
    margin-bottom: 24px;
  }
  .features,
  .videos {
    grid-template-columns: 1fr;
  }
  .features {
    margin-bottom: 22px;
    row-gap: 12px;
  }
  .actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }
  footer {
    margin-top: 20px;
  }
}

/* Kiçik telefon (iPhone SE və oxşarları) */
@media (max-width: 380px) {
  .container {
    padding: 26px 16px 22px;
  }
  .logo {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .tagline {
    font-size: 13.5px;
  }
  .lead {
    font-size: 13.5px;
  }
  .video {
    padding: 12px;
    gap: 10px;
  }
}

/* Alçaq ekran / landşaft */
@media (max-height: 560px) and (min-width: 561px) {
  body {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .container {
    padding: 28px 30px 24px;
  }
  .logo {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }
  .identity {
    margin-bottom: 12px;
  }
  .badge {
    margin-bottom: 16px;
  }
}

/* Hərəkəti azaldılmış rejim */
@media (prefers-reduced-motion: reduce) {
  .container {
    animation: none;
  }
  .btn,
  .video,
  .theme-toggle {
    transition: none;
  }
  .btn:hover,
  .video:hover,
  .theme-toggle:hover {
    transform: none;
  }
}

/* ======================================================================
   Hüquqi səhifələr (məxfilik siyasəti)
   Eyni panel dilini işlədir, sadəcə mətn sola düzülür və oxunaqlı
   sətir uzunluğu üçün panel bir az genişdir.
   ====================================================================== */
.container--legal {
  max-width: 780px;
  text-align: left;
}

.container--legal .identity {
  margin-bottom: 10px;
}

.legal-meta {
  margin: 0 0 26px;
  font-size: 12.5px;
  color: var(--muted);
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.legal h3 {
  margin: 18px 0 6px;
  font-size: 14px;
  font-weight: 700;
}

.legal p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 7px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal code {
  padding: 1px 5px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

.legal a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Diqqət çəkən qutu — “satmırıq”, “hesabı sil” kimi əsas məqamlar. */
.legal-note {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

.legal-note p:last-child {
  margin-bottom: 0;
}

/* Ana səhifəyə qayıdış. */
.backlink {
  display: inline-block;
  margin-bottom: 22px;
  padding: 7px 14px;
  border-radius: 999px;

  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;

  background: var(--surface);
  border: 1px solid var(--border);
}

.backlink:hover {
  color: var(--accent-strong);
  border-color: rgba(43, 140, 238, 0.35);
}

.backlink:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .legal h2 {
    font-size: 16px;
  }
  .legal p,
  .legal li {
    font-size: 13.5px;
  }
}
