/* ==============================
   EISAÜ × Kaitseliit Konverents 2026
   Theme: Cyber / Audit / Military
   ============================== */

:root {
    /* Dark palette – derived from ISACA Dark Blue #1D2D5C */
    --bg-deep: #0b1120;
    --bg-dark: #101828;
    --bg-panel: #152036;
    --bg-card: #1a2840;
    --bg-card-hover: #1f2f4a;
    --bg-surface: #121d30;

    /* Accent: ISACA Green #6CB33F */
    --accent: #6CB33F;
    --accent-dim: #5a9a32;
    --accent-glow: rgba(108, 179, 63, 0.15);
    --accent-glow-strong: rgba(108, 179, 63, 0.3);

    /* Secondary: ISACA Blue #00A4E4 / Medium Blue #0F69A0 */
    --blue: #00A4E4;
    --blue-dim: #0F69A0;

    /* ISACA Teal #36AC91 */
    --teal: #36AC91;

    /* Warning/military amber */
    --amber: #f59e0b;
    --amber-dim: rgba(245, 158, 11, 0.15);

    /* Text */
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --text-bright: #f8fafc;

    /* Borders */
    --border: rgba(148, 163, 184, 0.1);
    --border-accent: rgba(0, 230, 118, 0.2);

    /* Misc */
    --radius: 6px;
    --mono: 'IBM Plex Mono', 'Courier New', monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
}

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg-deep);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ---- NAV ---- */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.05);
    border-bottom-color: var(--border-accent);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-logo-badge {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--bg-deep);
    background: var(--accent);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.nav-logo-text {
    color: var(--text-bright);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.15rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--text-bright);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-deep) !important;
    font-weight: 700 !important;
    font-family: var(--mono) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.03em;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--accent-dim) !important;
    box-shadow: 0 0 15px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ---- HERO ---- */

.hero {
    background: var(--bg-dark);
    color: #fff;
    padding: 8rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.35;
    pointer-events: none;
}

/* Scanline effect */
.hero-scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 230, 118, 0.015) 2px,
        rgba(0, 230, 118, 0.015) 4px
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-orgs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.92);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 1rem 2rem;
}

.hero-org-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-org-logo img {
    height: 64px;
    width: auto;
    filter: none;
}

.hero-org-divider {
    color: var(--text-muted);
    font-size: 1.4rem;
    margin: 0 0.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.hero-theme {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 300;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.hero-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2.25rem;
    margin-bottom: 2rem;
}

.hero-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.hero-detail svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.hero-desc {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-dim);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-cta .btn {
    text-align: center;
}

.hero-classification {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: inline-block;
}

.hero-classification span {
    color: var(--accent);
    font-weight: 700;
    border: 1px solid var(--border-accent);
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    margin-right: 0.25rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--mono);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(0, 230, 118, 0.08);
}

.btn-primary:hover {
    background: var(--accent-dim);
    box-shadow: 0 0 30px var(--accent-glow-strong), 0 0 80px rgba(0, 230, 118, 0.12);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text);
    background: rgba(255,255,255,0.03);
}

/* ---- TICKETS ---- */

.ticket-info {
    text-align: center;
    margin-bottom: 1rem;
}

.ticket-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--text-dim);
    padding: 0.3rem 0;
}

.ticket-line + .ticket-line::before {
    content: '|';
    color: var(--text-muted);
    margin-right: 0.75rem;
}

.ticket-line-accent .ticket-label {
    color: var(--accent);
}

.ticket-label {
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.ticket-price {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-bright);
}

.ticket-line-accent .ticket-price {
    color: var(--accent);
}

.ticket-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-bottom: 1.75rem;
}

/* ---- SECTIONS ---- */

.section {
    padding: 5rem 0;
    background: var(--bg-deep);
}

.section-dark {
    background: var(--bg-surface);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    background: var(--accent-glow);
    letter-spacing: 0.05em;
    line-height: 1;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.01em;
}

.section-header-light .section-title {
    color: var(--text-bright);
}

/* ---- SPEAKERS ---- */

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2.5rem 1.5rem;
    text-align: center;
}

.speaker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speaker-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 2px solid var(--border);
    overflow: hidden;
    position: relative;
    margin-bottom: 1rem;
}

.speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Show initials as fallback when no photo loaded */
.speaker-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Placeholder gradient for missing photos */
.speaker-photo img[src=""] ~ .speaker-initials {
    background: linear-gradient(135deg, #2a3a50 0%, #1a2535 50%, #253345 100%);
    color: var(--text-dim);
    font-size: 2rem;
}

.speaker-photo img[src]:not([src=""]) ~ .speaker-initials {
    display: none;
}

.speaker-keynote-ring {
    border-color: var(--accent);
    border-width: 3px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.speaker-keynote-ring .speaker-initials {
    color: var(--accent);
}

.speaker-badge {
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.speaker-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.2rem;
}

.speaker-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.speaker-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    max-width: 220px;
    margin-bottom: 0.6rem;
}

.speaker-link {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--border-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
}

.speaker-link:hover {
    background: var(--accent-glow);
    text-decoration: none;
}

/* ---- TIMELINE / PROGRAM ---- */

.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    padding-left: 130px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 127px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.tl-item {
    display: flex;
    align-items: flex-start;
    padding: 1.15rem 0;
    position: relative;
}

.tl-time {
    position: absolute;
    left: -130px;
    width: 115px;
    text-align: right;
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--accent);
    padding-top: 0.15rem;
    letter-spacing: 0.02em;
}

.tl-dot {
    position: absolute;
    left: -5px;
    top: 1.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-surface);
    z-index: 1;
}

.tl-body {
    padding-left: 1.5rem;
    flex: 1;
}

.tl-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 0.15rem;
}

.tl-speaker {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tl-speaker a {
    color: var(--accent);
}

.tl-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* Break styling */
.tl-break .tl-dot {
    background: var(--text-muted);
    width: 8px;
    height: 8px;
    left: -4px;
    top: 1.4rem;
}

.tl-break .tl-body h3 {
    color: var(--text-muted);
    font-weight: 500;
}

.tl-break .tl-time {
    color: var(--text-muted);
}

/* Keynote styling */
.tl-keynote .tl-dot {
    width: 12px;
    height: 12px;
    left: -6px;
    top: 1.3rem;
    box-shadow: 0 0 8px var(--accent-glow-strong);
}

.tl-keynote .tl-body h3 {
    color: var(--accent);
}

/* Surprise slot */
.tl-surprise .tl-dot {
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber-dim);
}

.tl-surprise .tl-time {
    color: var(--amber);
}

.tl-surprise .tl-body h3 {
    color: var(--amber);
    font-style: italic;
}

/* ---- BRIEFING PANEL ---- */

.briefing {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.briefing-header {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.briefing-class {
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    border: 1px solid var(--border-accent);
    background: var(--accent-glow);
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
}

.briefing-title {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.briefing-row {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1.5rem;
}

.briefing-row:last-of-type {
    border-bottom: none;
}

.briefing-label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    min-width: 130px;
    flex-shrink: 0;
    padding-top: 0.15rem;
}

.briefing-value {
    color: var(--text-dim);
    line-height: 1.65;
}

.briefing-value strong {
    color: var(--text-bright);
}

.briefing-value a {
    color: var(--accent);
}

.briefing-coord {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.briefing-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-align: right;
    text-transform: uppercase;
}

/* Map */

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
    filter: grayscale(0.3) brightness(0.9);
}

/* ---- FOOTER ---- */

.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.footer-orgs {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-sep {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

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

.footer a {
    color: var(--text-dim);
}

.footer a:hover {
    color: var(--accent);
}

/* ---- RESPONSIVE ---- */

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 23, 0.98);
        padding: 0.75rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 0.25rem;
    }

    .hero {
        padding: 7rem 1.25rem 3.5rem;
    }

    .hero-details {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    /* Timeline mobile */
    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 11px;
    }

    .tl-item {
        flex-direction: column;
        gap: 0.2rem;
    }

    .tl-time {
        position: static;
        width: auto;
        text-align: left;
        padding-left: 1.5rem;
    }

    .tl-dot {
        left: -18px;
        top: 0.35rem;
    }

    .tl-break .tl-dot {
        left: -17px;
    }

    .tl-keynote .tl-dot {
        left: -19px;
    }

    .tl-body {
        padding-left: 1.5rem;
    }

    .speakers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }

    .briefing-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .briefing-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-orgs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-org-divider {
        display: none;
    }
}
