/* KOC12 Design Tokens
   ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #6366F1;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Surfaces (light) */
  --bg: #F4F7FB;
  --bg-2: #EEF2F8;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-tint: rgba(79, 70, 229, 0.04);
  --text: #0F172A;
  --text-muted: #475569;
  --text-soft: #64748B;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);
  --ring: rgba(79, 70, 229, 0.35);

  /* Module gradients */
  --grad-akademik: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  --grad-psikometri: linear-gradient(135deg, #7C3AED 0%, #C084FC 100%);
  --grad-optik: linear-gradient(135deg, #19A25A 0%, #4ADE80 100%);
  --grad-rehberlik: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
  --grad-ai: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
  --grad-sosyometri: linear-gradient(135deg, #10B4C8 0%, #67E8F9 100%);
  --grad-raporlar: linear-gradient(135deg, #55C570 0%, #86E79C 100%);
  --grad-sistem: linear-gradient(135deg, #2B7CFF 0%, #7BC8FF 100%);

  /* Module solids (for dots / accents) */
  --c-akademik: #2563EB;
  --c-psikometri: #7C3AED;
  --c-optik: #19A25A;
  --c-rehberlik: #F97316;
  --c-ai: #EC4899;
  --c-sosyometri: #10B4C8;
  --c-raporlar: #55C570;

  /* Signature hero gradient */
  --grad-hero: linear-gradient(96deg, #3e44d1 0%, #5f4bea 26%, #7651f2 48%, #4e9df6 72%, #73d6ff 100%);

  /* Shadows */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-2: 0 4px 24px rgba(15, 23, 42, 0.06);
  --sh-3: 0 12px 40px rgba(15, 23, 42, 0.10);
  --sh-glow: 0 0 0 1px rgba(79, 70, 229, 0.10), 0 12px 32px rgba(79, 70, 229, 0.18);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-2: #0A1020;
  --surface: #111A2E;
  --surface-2: #1A2440;
  --surface-tint: rgba(99, 102, 241, 0.10);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-soft: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ring: rgba(129, 140, 248, 0.45);
  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-2: 0 4px 24px rgba(0, 0, 0, 0.35);
  --sh-3: 0 16px 48px rgba(0, 0, 0, 0.5);
  --sh-glow: 0 0 0 1px rgba(129, 140, 248, 0.20), 0 12px 32px rgba(99, 102, 241, 0.30);
}

/* Reset / base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  transition: background-color 0.35s ease, color 0.35s ease;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: default; }
a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(79, 70, 229, 0.22); }

/* Type scale
   ------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
}
.h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
.h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--primary);
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid rgba(79, 70, 229, 0.18);
}
.lead { font-size: 18px; line-height: 1.6; color: var(--text-muted); margin: 0; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

/* Layout
   ------------------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; position: relative; }
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .container, .container-wide { padding: 0 20px; }
}

/* Components
   ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md); font-size: 15px;
  font-weight: 600; font-family: inherit; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap; min-height: 44px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, 0.35); }
.btn-secondary { background: transparent; color: var(--primary); border-color: rgba(79, 70, 229, 0.40); }
.btn-secondary:hover { background: var(--surface-tint); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-tint); color: var(--primary); }
.btn-white { background: #fff; color: #1E1B4B; }
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.7); }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 13.5px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--border-strong); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-tint); color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.18);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Header
   ------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--grad-hero); box-shadow: 0 4px 14px rgba(79,70,229,0.35); }
.brand-koc { color: var(--primary); }
.brand-12  { color: var(--text); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); border-radius: var(--r-md); transition: color 0.2s, background-color 0.2s; }
.nav-link:hover { color: var(--text); background: var(--surface-tint); }
.nav-link.active { color: var(--text); }
.nav-link svg { width: 12px; height: 12px; opacity: 0.6; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); background: transparent; border: 1px solid var(--border); color: var(--text-muted); transition: all 0.2s; }
.icon-btn:hover { color: var(--text); background: var(--surface-tint); border-color: var(--border-strong); }
@media (max-width: 960px) { .nav-links { display: none; } }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 320px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 8px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; pointer-events: auto; transform: translateY(0); }
.drop-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 10px 12px; border-radius: 10px; align-items: center; transition: background-color 0.15s; }
.drop-item:hover { background: var(--surface-tint); }
.drop-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 700; }
.drop-title { font-size: 14px; font-weight: 600; color: var(--text); }
.drop-sub { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* Footer
   ------------------------------------------------------------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 64px; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: -120px 0 auto 0; height: 200px;
  background: var(--grad-hero); opacity: 0.04; filter: blur(60px); pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer h4 { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 14px; letter-spacing: 0.02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--text-muted); font-size: 14px; }
.footer a:hover { color: var(--primary); }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); gap: 16px; flex-wrap: wrap; }
.newsletter input { width: 100%; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.newsletter input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.social-row { display: flex; gap: 8px; margin-top: 12px; }
.social-row a { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); border: 1px solid var(--border); color: var(--text-muted); }
.social-row a:hover { color: var(--primary); border-color: var(--primary); }

/* Decorative background patterns
   ------------------------------------------------------------- */
.dot-grid {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}
.mesh-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.mesh-bg::before, .mesh-bg::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(80px); opacity: 0.55;
}
.mesh-bg::before { top: -180px; left: -120px; background: radial-gradient(circle, #6366F1 0%, transparent 70%); }
.mesh-bg::after  { top: 60px; right: -160px; background: radial-gradient(circle, #38BDF8 0%, transparent 70%); }
[data-theme="dark"] .mesh-bg::before { opacity: 0.35; }
[data-theme="dark"] .mesh-bg::after  { opacity: 0.30; }

/* Animations
   ------------------------------------------------------------- */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fade-up 0.6s cubic-bezier(.2,.7,.2,1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .reveal, * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Section helpers
   ------------------------------------------------------------- */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header .eyebrow { margin-bottom: 16px; }
.section-header .h2 { margin-bottom: 14px; }
.section-header .lead { font-size: 17px; }

.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 12px; display: block; }

/* Gradient text */
.grad-text {
  background: linear-gradient(96deg, #5f4bea 0%, #7651f2 30%, #4e9df6 70%, #73d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Browser chrome for mockups */
.chrome { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-3); }
.chrome-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.chrome-dot { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; }
.chrome-dot.red { background: #FCA5A5; }
.chrome-dot.yel { background: #FCD34D; }
.chrome-dot.gre { background: #86EFAC; }
.chrome-url { margin-left: 12px; padding: 4px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
