:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --surface: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --transition-fast: 0.18s ease-out;
}

[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-soft: #e5e7eb;
  --surface: #ffffff;
  --accent: #0ea5e9;
  --accent-soft: rgba(14, 165, 233, 0.08);
  --text: #111827;
  --text-muted: #6b7280;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.12);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b, var(--bg));
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

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

.nav-cta {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn {
  border-radius: 999px;
  border: none;
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn.primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.5);
}

.btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: var(--text);
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(15, 23, 42, 0.5);
}

.btn.full {
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
}

/* Hero card */

.hero-card {
  background: radial-gradient(circle at top left, #1d4ed8, var(--surface));
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-card h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bfdbfe;
  margin-bottom: 0.3rem;
}

.hero-card .badge {
  display: inline-flex;
  font-size: 0.75rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
  margin-bottom: 0.9rem;
}

.hero-card h3 {
  margin: 0 0 0.6rem;
}

.hero-card ul {
  padding-left: 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.hero-card .small {
  font-size: 0.75rem;
  color: #cbd5f5;
  text-align: center;
  margin-top: 0.5rem;
}

/* Sections */

.section {
  padding: 2.8rem 0;
}

.section.muted {
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.7),
    rgba(15, 23, 42, 0.3)
  );
}

.section-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  margin-bottom: 0.3rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Filter bar */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* Courses */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.course-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    border-color var(--transition-fast);
}

[data-theme="light"] .course-card {
  background: var(--surface);
}

.course-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.course-card p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.course-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
  border-color: var(--accent);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

[data-theme="light"] .feature-card {
  background: var(--surface);
}

/* FAQ */

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .faq-item {
  background: var(--surface);
}

.faq-question {
  width: 100%;
  padding: 0.8rem 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: max-height 0.2s ease-out, padding-bottom 0.2s ease-out;
}

.faq-item.open .faq-answer {
  padding-bottom: 0.75rem;
  max-height: 200px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-info {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  color: var(--text-muted);
}

.contact-info li + li {
  margin-top: 0.25rem;
}

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-xl);
  padding: 1.3rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

[data-theme="light"] .contact-form {
  background: var(--surface);
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.55rem 0.6rem;
  margin-top: 0.25rem;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-size: 0.9rem;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form select,
[data-theme="light"] .contact-form textarea {
  background: #f9fafb;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  color: var(--accent);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 0 1.3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.8rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}

/* Live chat widget */

.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  z-index: 60;
  cursor: pointer;
  font-size: 1.5rem;
  color: #f9fafb;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out,
    opacity 0.18s ease-out;
  opacity: 0.96;
}

.chat-launcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  opacity: 1;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 84px;
  width: 320px;
  max-height: 70vh;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 60;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-out, transform 0.18s ease-out;
}

[data-theme="light"] .chat-widget {
  background: #f9fafb;
}

.chat-widget.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-header {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-header strong {
  font-size: 0.95rem;
}

.chat-header p {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.chat-messages {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  overflow-y: auto;
  max-height: 40vh;
}

.chat-message {
  padding: 0.45rem 0.6rem;
  border-radius: 12px;
  max-width: 85%;
  word-wrap: break-word;
}

.chat-message.bot {
  background: rgba(15, 23, 42, 0.9);
  align-self: flex-start;
}

[data-theme="light"] .chat-message.bot {
  background: #e5e7eb;
}

.chat-message.user {
  background: var(--accent);
  color: #020617;
  align-self: flex-end;
}

.chat-input-row {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  padding: 0.5rem;
  gap: 0.4rem;
}

.chat-input-row input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.35rem 0.7rem;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.85rem;
}

[data-theme="light"] .chat-input-row input {
  background: #ffffff;
}

.chat-input-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-row button {
  border-radius: 999px;
  border: none;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--accent);
  color: #020617;
}

/* Mobil üçün bir az kiçildək */
@media (max-width: 600px) {
  .chat-widget {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

/* Responsive */

@media (max-width: 800px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 1.25rem;
    background: rgba(15, 23, 42, 0.97);
    border-radius: 16px;
    padding: 0.7rem 0.9rem;
    flex-direction: column;
    gap: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .burger {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.5rem;
  }
}
