/* ==========================================================================
   AKL Özel Güvenlik Eğitim Kurumu — Tasarım Sistemi
   Taktik HUD estetiği · siyah-altın-gümüş paleti
   ========================================================================== */

/* -------- TOKENS -------- */
:root {
    /* Surfaces */
    --bg-0: #06070a;
    --bg-1: #0c0e13;
    --bg-2: #11141b;
    --bg-3: #1a1f2a;

    /* Gold scale */
    --gold:       #f4c430;
    --gold-2:     #d4af37;
    --gold-3:     #b8860b;
    --gold-light: #ffe17a;

    /* Text */
    --text:    #e6e6e6;
    --text-2:  #c5c7cc;
    --muted:   #7a7d85;
    --muted-2: #5b5e66;

    /* Lines */
    --line:        rgba(212, 175, 55, 0.18);
    --line-2:      rgba(212, 175, 55, 0.30);
    --line-strong: rgba(212, 175, 55, 0.45);
    --line-soft:   rgba(255, 255, 255, 0.06);

    /* Status */
    --status: #45e08b;
    --status-soft: rgba(69, 224, 139, 0.15);
    --danger: #ff5e5e;
    --whatsapp: #25D366;
    --whatsapp-2: #128C7E;

    /* Type */
    --font-display: 'Oswald', system-ui, -apple-system, sans-serif;
    --font-body: 'Rajdhani', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Spacing scale */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
    --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

    /* Container */
    --container-max: 1280px;
    --container-pad: 22px;

    /* Radii */
    --r-sm: 4px; --r-md: 6px; --r-lg: 10px;

    /* Shadows */
    --shadow-gold: 0 0 28px rgba(244, 196, 48, 0.28);
    --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.55);

    /* Transitions */
    --t-fast: 0.18s ease;
    --t-base: 0.28s cubic-bezier(.2,.8,.2,1);
    --t-slow: 0.6s cubic-bezier(.2,.8,.2,1);
}

/* -------- RESET / BASE -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    color-scheme: dark;
}
body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold); }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
strong, b { font-weight: 700; }

::selection { background: var(--gold); color: var(--bg-0); }

/* -------- LAYOUT HELPERS -------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}
.section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.section-tight { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.relative { position: relative; }
.hidden { display: none; }
@media (min-width: 720px) { .md\:flex { display: flex; } .md\:hidden { display: none; } }
@media (min-width: 1024px) { .lg\:flex { display: flex; } .lg\:hidden { display: none; } }

/* -------- BACKGROUND LAYERS -------- */
.bg-base {
    position: fixed; inset: 0; z-index: -10;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, #08090d 0%, #06070a 50%, #04050a 100%);
}
.bg-hex {
    position: fixed; inset: 0; z-index: -9; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='64' viewBox='0 0 56 64'><path fill='none' stroke='%23d4af37' stroke-opacity='0.08' stroke-width='1' d='M28 1L55 16v32L28 63 1 48V16z'/></svg>");
    background-size: 56px 64px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 85%);
}
.bg-scan {
    position: fixed; inset: 0; z-index: -8; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(244, 196, 48, 0.03) 48%, rgba(244, 196, 48, 0.07) 50%, rgba(244, 196, 48, 0.03) 52%, transparent 100%);
    background-size: 100% 220%;
    animation: scan 14s linear infinite;
}
@keyframes scan {
    0%   { background-position: 0% -100%; }
    100% { background-position: 0% 100%; }
}
.bg-noise {
    position: fixed; inset: 0; z-index: -7; opacity: 0.04;
    mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* HUD frame corners (sayfa kenarları) */
.hud-frame {
    position: fixed; inset: 14px; z-index: 1; pointer-events: none;
}
.hud-frame::before, .hud-frame::after,
.hud-frame > span::before, .hud-frame > span::after {
    content: ''; position: absolute;
    width: 22px; height: 22px;
    border: 1px solid var(--line-strong);
}
.hud-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-frame::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-frame > span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-frame > span::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }
@media (max-width: 540px) {
    .hud-frame { inset: 8px; }
    .hud-frame::before, .hud-frame::after,
    .hud-frame > span::before, .hud-frame > span::after { width: 16px; height: 16px; }
}

/* -------- TYPOGRAPHY -------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
}

/* Global heading + paragraph rhythm — başlık sonrası nefes alanı bırak */
p { line-height: 1.65; }
h1 + p, h2 + p, h3 + p, h4 + p { margin-top: 14px; }
h2 + h3, h3 + h4 { margin-top: 24px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.eyebrow::before, .eyebrow::after {
    content: '';
    width: 24px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-2));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-2), transparent); }
.eyebrow.no-line::before, .eyebrow.no-line::after { display: none; }

.title-1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 6.5vw, 72px);
    line-height: 1.05;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.title-2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.15;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.title-3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.title-4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.gold-text {
    background: linear-gradient(180deg, #fff 0%, var(--gold) 55%, var(--gold-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(244, 196, 48, 0.18);
}

.tactical-bracket {
    color: var(--gold);
    font-weight: 400;
    opacity: 0.75;
    font-size: 0.6em;
    margin: 0 8px;
}

.lead {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.6;
    color: var(--text-2);
    max-width: 640px;
    font-weight: 400;
    margin-bottom: 24px;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.text-gold { color: var(--gold); }

/* -------- BADGES / CHIPS -------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    background: rgba(212, 175, 55, 0.06);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: pulse 1.6s ease-in-out infinite;
}
.badge.is-live .dot { background: var(--status); box-shadow: 0 0 10px var(--status); }
.badge.is-live { color: var(--status); border-color: rgba(69, 224, 139, 0.35); }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.55; }
}

/* -------- BUTTONS -------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    transition: all var(--t-base);
    overflow: hidden;
    border: 1px solid transparent;
    min-height: 50px;
    cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: left .65s ease;
}
.btn:hover::after { left: 140%; }

.btn-gold {
    color: #0a0a0a;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-2) 100%);
    border-color: var(--gold-light);
    box-shadow: 0 6px 18px rgba(244, 196, 48, 0.30), inset 0 1px 0 rgba(255,255,255,0.55);
}
.btn-gold:hover {
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(244, 196, 48, 0.50), inset 0 1px 0 rgba(255,255,255,0.6);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(244, 196, 48, 0.05);
}

.btn-wa {
    color: #fff;
    background: linear-gradient(180deg, #2bd96e, #128C7E);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.28);
}
.btn-wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.50); }

/* Hexagonal corner clip */
.btn-hex {
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

/* -------- CARDS / PANELS -------- */
.panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
    border-radius: var(--r-md);
    padding: 22px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    transition: border-color var(--t-base), transform var(--t-base);
}
.panel:hover { border-color: var(--line-strong); }
.panel.has-corners::before, .panel.has-corners::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border: 1px solid var(--gold);
}
.panel.has-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel.has-corners::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}
.panel-head .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
}
.panel-head .label .square {
    width: 6px; height: 6px;
    background: var(--gold);
}

/* -------- HEXAGONAL FRAME (logo, programs) -------- */
.hex-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}
.hex-frame .hex-svg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 18px rgba(244, 196, 48, 0.25));
}
.hex-frame .hex-content {
    position: relative;
    width: 78%;
    height: 78%;
    display: grid;
    place-items: center;
}

/* -------- PROGRESS BAR (taktik) -------- */
.tac-bar {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    overflow: hidden;
}
.tac-bar::before {
    content: '';
    position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, transparent 0 19px, rgba(244, 196, 48, 0.18) 19px 20px);
    z-index: 2;
    pointer-events: none;
}
.tac-bar > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-3), var(--gold), var(--gold-light));
    box-shadow: 0 0 18px rgba(244, 196, 48, 0.6);
}

/* -------- DIVIDER (chevron stilinde) -------- */
.divider-chev {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--gold-2);
}
.divider-chev .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
    max-width: 200px;
}
.divider-chev .arrow {
    width: 8px; height: 8px;
    border-top: 1px solid var(--gold-2);
    border-right: 1px solid var(--gold-2);
    transform: rotate(45deg);
}

/* -------- ANIMATIONS -------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.06); }
}
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes ripple {
    0%   { transform: scale(1);   opacity: 1; }
    100% { transform: scale(1.7); opacity: 0; }
}
@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.fade-up { animation: fadeUp .9s ease both; }
.fade-down { animation: fadeDown .8s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
