/* Nasıl Çalışır — Haydi Derse (web + app ile uyumlu tema) */
:root {
  --hiw-orange: #ff6b35;
  --hiw-orange-soft: #fff4f0;
  --hiw-blue: #1e3a5f;
  --hiw-blue-soft: #e8eef5;
  --hiw-teal: #0d9488;
  --hiw-teal-soft: #ecfdf8;
  --hiw-violet: #6d28d9;
  --hiw-violet-soft: #f5f3ff;
  --hiw-amber: #d97706;
  --hiw-amber-soft: #fffbeb;
  --hiw-ink: #0f172a;
  --hiw-muted: #64748b;
  --hiw-line: rgba(15, 23, 42, 0.08);
  --hiw-radius: 20px;
  --hiw-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --hiw-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.hiw-main {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--hiw-ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 32%, #f1f5f9 100%);
  padding-bottom: 4rem;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Hero */
.hiw-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1f33 0%, var(--hiw-blue) 45%, #2563eb 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 3rem;
  margin-bottom: 0;
}

.hiw-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 107, 53, 0.35), transparent 55%);
  pointer-events: none;
}

.hiw-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hiw-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.hiw-hero__eyebrow i {
  color: var(--hiw-orange);
}

.hiw-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  border: none;
  padding: 0;
}

.hiw-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.hiw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.hiw-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hiw-btn--primary {
  background: var(--hiw-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.45);
}

.hiw-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.5);
  color: #fff;
}

.hiw-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hiw-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Jump nav */
.hiw-jump-wrap {
  max-width: 1100px;
  margin: -2rem auto 0;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

.hiw-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--hiw-shadow);
  border: 1px solid var(--hiw-line);
}

.hiw-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hiw-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.hiw-jump a:hover {
  background: var(--hiw-blue-soft);
  color: var(--hiw-blue);
}

.hiw-jump a i {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Sections */
.hiw-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 0;
  scroll-margin-top: 5rem;
}

.hiw-section__card {
  background: #fff;
  border-radius: var(--hiw-radius);
  border: 1px solid var(--hiw-line);
  box-shadow: var(--hiw-shadow);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hiw-section__head {
  margin-bottom: 2rem;
}

.hiw-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hiw-section--student .hiw-section__badge {
  background: var(--hiw-blue-soft);
  color: var(--hiw-blue);
}

.hiw-section--teacher .hiw-section__badge {
  background: var(--hiw-violet-soft);
  color: var(--hiw-violet);
}

.hiw-section--institution .hiw-section__badge {
  background: var(--hiw-teal-soft);
  color: #0f766e;
}

.hiw-section--league .hiw-section__badge {
  background: var(--hiw-amber-soft);
  color: var(--hiw-amber);
}

.hiw-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hiw-ink);
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
  text-align: left;
  width: auto;
  display: block;
}

.hiw-section__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--hiw-muted);
  max-width: 720px;
  margin: 0;
}

/* Step grid */
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--hiw-line);
  background: #fafbfc;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  height: 100%;
}

.hiw-step:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--hiw-shadow-hover);
  transform: translateY(-3px);
}

.hiw-section--student .hiw-step:hover {
  border-color: rgba(30, 58, 95, 0.3);
}

.hiw-section--teacher .hiw-step:hover {
  border-color: rgba(109, 40, 217, 0.3);
}

.hiw-section--institution .hiw-step:hover {
  border-color: rgba(13, 148, 136, 0.3);
}

.hiw-section--league .hiw-step:hover {
  border-color: rgba(217, 119, 6, 0.35);
}

.hiw-step__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hiw-step__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
}

.hiw-section--student .hiw-step__num {
  background: linear-gradient(135deg, var(--hiw-blue), #2563eb);
}

.hiw-section--teacher .hiw-step__num {
  background: linear-gradient(135deg, var(--hiw-violet), #8b5cf6);
}

.hiw-section--institution .hiw-step__num {
  background: linear-gradient(135deg, var(--hiw-teal), #14b8a6);
}

.hiw-section--league .hiw-step__num {
  background: linear-gradient(135deg, var(--hiw-amber), #f59e0b);
}

.hiw-step__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.hiw-section--student .hiw-step__icon {
  background: var(--hiw-blue-soft);
  color: var(--hiw-blue);
}

.hiw-section--teacher .hiw-step__icon {
  background: var(--hiw-violet-soft);
  color: var(--hiw-violet);
}

.hiw-section--institution .hiw-step__icon {
  background: var(--hiw-teal-soft);
  color: #0f766e;
}

.hiw-section--league .hiw-step__icon {
  background: var(--hiw-amber-soft);
  color: var(--hiw-amber);
}

.hiw-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hiw-ink);
  margin: 0;
  line-height: 1.35;
}

.hiw-step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--hiw-muted);
}

.hiw-note {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hiw-muted);
  background: #f8fafc;
  border-left: 4px solid var(--hiw-orange);
}

.hiw-note strong {
  color: var(--hiw-ink);
}

@media (max-width: 640px) {
  .hiw-jump {
    border-radius: 16px;
    justify-content: flex-start;
  }

  .hiw-jump a {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    min-width: 140px;
  }

  .hiw-hero__actions {
    flex-direction: column;
  }

  .hiw-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}
