/* ═══════════════════════════════════════
   ARCTEC — Kibertəhlükəsizlik Kursu
   static/css/style.css
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700;800;900&family=Noto+Serif:wght@700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
  --bg:        #f4f6fb;
  --bg2:       #ffffff;
  --navy:      #1a1f3a;
  --purple1:   #8b2be2;
  --purple2:   #b44fff;
  --grad:      linear-gradient(135deg, #8b2be2 0%, #b44fff 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,43,226,0.08) 0%, rgba(180,79,255,0.08) 100%);
  --muted:     #6b7280;
  --border:    #e5e8f0;
  --shadow:    0 4px 24px rgba(139,43,226,0.10);
  --shadow-lg: 0 16px 48px rgba(139,43,226,0.18);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139,43,226,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(180,79,255,0.05) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
h1, h2, h3 { font-family: 'Noto Serif', serif; font-weight: 800; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5rem;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.logo-wrap { display: flex; align-items: center; gap: 0.6rem; }
.logo-wrap img { height: 32px; width: auto; }
.logo-text {
  font-family: 'Noto Sans', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--navy); letter-spacing: -0.3px;
}
nav ul { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
nav ul a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav ul a:hover { color: var(--purple1); }
.nav-cta {
  background: var(--grad); color: #fff !important;
  padding: 0.55rem 1.4rem; border-radius: 8px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(139,43,226,0.30);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,43,226,0.40); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--grad); color: #fff;
  padding: 0.9rem 2.2rem; border-radius: 10px;
  font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; display: inline-block;
  box-shadow: 0 6px 20px rgba(139,43,226,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139,43,226,0.45); }
.btn-ghost {
  background: transparent; color: var(--navy);
  padding: 0.9rem 2rem; border-radius: 10px;
  font-family: 'Noto Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--border); cursor: pointer; display: inline-flex;
  align-items: center; gap: 0.5rem; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--purple1); color: var(--purple1); }
.btn-white {
  background: white; color: var(--purple1);
  padding: 0.9rem 2rem; border-radius: 10px;
  font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── SECTION BASE ── */
section { position: relative; z-index: 2; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 6rem 5rem; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--grad-soft); border: 1px solid rgba(139,43,226,0.15);
  padding: 0.35rem 1rem; border-radius: 50px;
  font-size: 0.76rem; font-weight: 700; color: var(--purple1);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 1.25rem;
  font-family: 'Noto Sans', sans-serif;
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  letter-spacing: -0.8px; color: var(--navy);
  margin-bottom: 0.75rem; line-height: 1.18;
}
.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.8; max-width: 500px; margin-bottom: 3rem; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 9rem 5rem 5rem; overflow: hidden; z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--grad-soft); border: 1px solid rgba(139,43,226,0.2);
  padding: 0.4rem 1.1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600; color: var(--purple1); margin-bottom: 2rem;
}
.hero-badge .dot {
  width: 7px; height: 7px; background: var(--purple2);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.4); opacity:0.6; }
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -1.5px; color: var(--navy); margin-bottom: 1.5rem;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.8; max-width: 500px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 2px solid var(--border); }
.stat-val {
  font-family: 'Noto Serif', serif; font-size: 2.2rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; font-weight: 500; }

/* Hero Visual */
.hero-visual {
  position: absolute; right: 3rem; top: 50%;
  transform: translateY(-50%); z-index: 1; width: 420px; height: 420px;
}
.hero-visual-card {
  width: 100%; height: 100%; background: white; border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(180,79,255,0.15), transparent 65%); border-radius: 50%;
}
.shield-wrap { position: relative; z-index: 2; }
.shield-wrap svg { width: 190px; height: 210px; filter: drop-shadow(0 8px 24px rgba(139,43,226,0.3)); }
.chip {
  position: absolute; background: white;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 0.5rem 0.8rem; font-size: 0.72rem; font-weight: 600;
  color: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.chip-purple { background: var(--grad); color: white; border-color: transparent; }

/* ── CURRICULUM ── */
#curriculum { background: var(--bg2); }
.modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.module {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 1.4rem 1.6rem; display: flex; align-items: flex-start; gap: 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.module:hover { border-color: rgba(139,43,226,0.35); box-shadow: 0 4px 20px rgba(139,43,226,0.09); transform: translateY(-2px); }
.module-num {
  width: 36px; height: 36px; background: var(--grad-soft);
  border: 1px solid rgba(139,43,226,0.2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--purple1); flex-shrink: 0;
}
.module-body { flex: 1; min-width: 0; }
.module-title { font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.25rem; }
.module-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.module-tag { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 50px; font-family: 'Noto Sans', sans-serif; }
.tag-b { background: #e8f5e9; color: #2e7d32; }
.tag-m { background: rgba(139,43,226,0.1); color: var(--purple1); }
.tag-a { background: #fce4ec; color: #c62828; }

/* ── INSTRUCTOR ── */
#instructor { background: var(--bg); }
.instructor-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
.instructor-left { position: sticky; top: 100px; }
.instructor-photo-box {
  width: 100%; aspect-ratio: 1; border-radius: 20px;
  background: linear-gradient(145deg, #f0e8ff, #e8d5ff);
  border: 2px solid rgba(139,43,226,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; margin-bottom: 1.5rem; overflow: hidden;
}
.instructor-photo-box img { width: 100%; height: 100%; object-fit: cover; }
.i-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; }
.i-stat { background: white; border: 1.5px solid var(--border); border-radius: 12px; padding: 1rem 0.75rem; text-align: center; }
.i-stat-val {
  font-family: 'Noto Serif', serif; font-size: 1.5rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.i-stat-label { font-size: 0.7rem; color: var(--muted); margin-top: 0.2rem; font-weight: 500; }
.instructor-name { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 0.3rem; }
.instructor-role { font-size: 0.9rem; color: var(--purple1); font-weight: 600; margin-bottom: 1.5rem; }
.instructor-bio { font-size: 0.98rem; color: var(--muted); line-height: 1.85; margin-bottom: 2rem; }
.cert-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.cert { background: var(--grad-soft); border: 1px solid rgba(139,43,226,0.2); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.78rem; font-weight: 700; color: var(--purple1); }
.highlights { display: grid; gap: 1rem; }
.highlight { background: white; border: 1.5px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.highlight-icon { width: 40px; height: 40px; background: var(--grad-soft); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.highlight-title { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.2rem; }
.highlight-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

/* ── PRICING ── */
#pricing { background: var(--bg2); }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.plan { background: white; border: 2px solid var(--border); border-radius: 20px; padding: 2.5rem 2rem; position: relative; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border-color: var(--purple1); background: linear-gradient(160deg, #faf5ff 0%, #f3e8ff 100%); transform: scale(1.03); }
.plan.featured:hover { transform: scale(1.03) translateY(-4px); }
.featured-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: white; font-size: 0.68rem; font-weight: 700; font-family: 'Noto Sans', sans-serif; padding: 0.35rem 1.2rem; border-radius: 50px; white-space: nowrap; }
.plan-name { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; font-family: 'Noto Sans', sans-serif; }
.plan-price { font-family: 'Noto Serif', serif; font-size: 3rem; font-weight: 900; color: var(--navy); line-height: 1; margin-bottom: 0.4rem; }
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan.featured .plan-price { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.plan-period { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.75rem; }
.divider { height: 1px; background: var(--border); margin-bottom: 1.75rem; }
.plan-features { list-style: none; margin-bottom: 2rem; display: grid; gap: 0.7rem; }
.plan-features li { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.plan-features li.yes { color: var(--navy); font-weight: 500; }
.plan-features li.yes::before { content: '✓'; width: 20px; height: 20px; background: var(--grad); border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-size: 0.65rem; font-weight: 800; text-align: center; line-height: 20px; }
.plan-features li.no::before { content: '×'; width: 20px; height: 20px; background: #f3f4f6; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 0.75rem; font-weight: 700; line-height: 20px; }
.btn-plan { width: 100%; padding: 0.9rem; border-radius: 10px; font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: block; text-align: center; transition: all 0.2s; border: none; }
.btn-plan-filled { background: var(--grad); color: white; box-shadow: 0 6px 20px rgba(139,43,226,0.3); }
.btn-plan-filled:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(139,43,226,0.4); }
.btn-plan-outline { background: transparent; color: var(--navy); border: 2px solid var(--border) !important; }
.btn-plan-outline:hover { border-color: var(--purple1) !important; color: var(--purple1); }

/* ── ENROLL ── */
#enroll { background: var(--bg); }
.enroll-box { background: var(--grad); border-radius: 24px; padding: 5rem 4rem; text-align: center; position: relative; overflow: hidden; }
.enroll-box::before { content: ''; position: absolute; top: -80px; left: -80px; width: 300px; height: 300px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.enroll-box::after { content: ''; position: absolute; bottom: -60px; right: -60px; width: 250px; height: 250px; background: rgba(255,255,255,0.06); border-radius: 50%; }
.enroll-box h2 { color: white; margin-bottom: 0.75rem; position: relative; z-index: 1; }
.enroll-box p { color: rgba(255,255,255,0.82); max-width: 480px; margin: 0 auto 2.5rem; position: relative; z-index: 1; }
.enroll-label { background: rgba(255,255,255,0.15) !important; border-color: rgba(255,255,255,0.3) !important; color: white !important; }
.enroll-form { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.enroll-form input { background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3); color: white; padding: 0.9rem 1.5rem; border-radius: 10px; font-family: 'Noto Sans', sans-serif; font-size: 0.9rem; width: 240px; outline: none; transition: all 0.2s; }
.enroll-form input::placeholder { color: rgba(255,255,255,0.6); }
.enroll-form input:focus { border-color: white; background: rgba(255,255,255,0.22); }
.form-msg { margin-top: 1rem; font-size: 0.88rem; font-weight: 600; position: relative; z-index: 1; min-height: 1.4rem; }
.form-msg.success { color: #a8ff9e; }
.form-msg.error   { color: #ffb3b3; }

/* ── CONTACT / FOOTER ── */
.contact-section { background: var(--navy); position: relative; z-index: 2; }
.contact-inner { max-width: 1160px; margin: 0 auto; padding: 4rem 5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-heading { font-size: 0.75rem; font-weight: 700; color: var(--purple2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.25rem; font-family: 'Noto Sans', sans-serif; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.9rem; transition: color 0.2s; }
.contact-link:hover { color: var(--purple2); }
.contact-icon { width: 36px; height: 36px; background: rgba(180,79,255,0.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo img { height: 24px; width: auto; filter: brightness(10); }
.footer-logo .logo-text { color: white; }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--purple2); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(26,31,58,0.6); backdrop-filter: blur(6px); align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: white; border-radius: 20px; padding: 2.5rem; width: 100%; max-width: 460px; margin: 1rem; box-shadow: 0 24px 64px rgba(139,43,226,0.25); position: relative; animation: slideUp 0.3s ease; }
@keyframes slideUp { from{transform:translateY(24px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: var(--bg); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--muted); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.modal-close:hover { background: var(--border); }
.modal h3 { font-family: 'Noto Serif', serif; font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 0.4rem; }
.modal-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.75rem; }
.modal-plan-badge { display: inline-block; background: var(--grad-soft); border: 1px solid rgba(139,43,226,0.2); color: var(--purple1); font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 50px; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 0.45rem; }
.form-group input { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: 10px; font-family: 'Noto Sans', sans-serif; font-size: 0.92rem; color: var(--navy); outline: none; transition: border-color 0.2s, box-shadow 0.2s; background: var(--bg); }
.form-group input:focus { border-color: var(--purple1); box-shadow: 0 0 0 3px rgba(139,43,226,0.1); background: white; }
.form-group input.error-field { border-color: #ef4444; }
.field-error { font-size: 0.75rem; color: #ef4444; margin-top: 0.3rem; font-weight: 500; }
.modal-submit { width: 100%; background: var(--grad); color: white; padding: 0.95rem; border-radius: 10px; border: none; font-family: 'Noto Sans', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 6px 20px rgba(139,43,226,0.3); transition: transform 0.2s, box-shadow 0.2s; margin-top: 0.5rem; }
.modal-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(139,43,226,0.4); }
.modal-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.modal-msg { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; text-align: center; min-height: 1.2rem; }
.modal-msg.success { color: #16a34a; }
.modal-msg.error   { color: #dc2626; }
.modal-success { display: none; text-align: center; padding: 1rem 0; }
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.modal-success h3 { margin-bottom: 0.5rem; color: var(--navy); }
.modal-success p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { display: none; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-visual { display: none; }
  .section-inner { padding: 4rem 1.5rem; }
  .modules-grid { grid-template-columns: 1fr; }
  .instructor-wrap { grid-template-columns: 1fr; }
  .instructor-left { position: static; }
  .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .enroll-box { padding: 3rem 1.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { padding: 3rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .hero-stats { gap: 1.5rem; }
}
