/* ========================================
   SECUREPEAK - Enhanced Stylesheet
   Inspired by: Cloudflare, Fortinet, DEFCON, Talos
   Focus: Clean, readable, professional
   ======================================== */

/* ========================================
   ENHANCED TYPOGRAPHY & READABILITY
   ======================================== */

/* Better base font sizing */
html {
    font-size: 17px;
}

body {
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

/* Headings with better hierarchy */
h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Improved paragraph spacing */
p {
    margin-bottom: 1.25rem;
    max-width: 72ch;
}

/* ========================================
   CLEANER SECTION LAYOUTS
   ======================================== */

.section {
    padding: 5rem 0;
}

.section--tight {
    padding: 3rem 0;
}

.section--hero {
    padding: 8rem 0 5rem;
}

/* White/Light section variant for contrast */
.section--light {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

/* ========================================
   ENHANCED CARD DESIGN - CLOUDFLARE STYLE
   ======================================== */

.card {
    background: rgba(22, 27, 34, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
    opacity: 1;
}

/* ========================================
   FORTINET-STYLE FEATURE BLOCKS
   ======================================== */

.feature-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.4);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.feature-block:hover {
    background: rgba(22, 27, 34, 0.8);
    border-color: rgba(74, 222, 128, 0.2);
}

.feature-block__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.15) 0%, rgba(74, 222, 128, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.feature-block__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
    stroke-width: 1.5;
}

.feature-block__content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.feature-block__content p {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   DEFCON-INSPIRED TERMINAL AESTHETIC
   ======================================== */

.terminal-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    font-family: var(--font-mono);
}

.terminal-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: 1px solid #222;
}

.terminal-card__dots {
    display: flex;
    gap: 6px;
}

.terminal-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-card__dot--red { background: #ff5f57; }
.terminal-card__dot--yellow { background: #febc2e; }
.terminal-card__dot--green { background: #28c840; }

.terminal-card__title {
    font-size: 0.75rem;
    color: #666;
    margin-left: auto;
}

.terminal-card__body {
    padding: 1.5rem;
    overflow-x: auto;
}

.terminal-card__body pre {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.terminal-card__body .comment { color: #6a737d; }
.terminal-card__body .keyword { color: #ff7b72; }
.terminal-card__body .string { color: #a5d6ff; }
.terminal-card__body .function { color: #d2a8ff; }
.terminal-card__body .number { color: #79c0ff; }

/* ========================================
   CLOUDFLARE-STYLE HERO
   ======================================== */

.hero-cloudflare {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    overflow: hidden;
}

.hero-cloudflare__bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 100% at 0% 0%, rgba(74, 222, 128, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 100% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        var(--color-bg-primary);
    pointer-events: none;
}

.hero-cloudflare__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(74, 222, 128, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 222, 128, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

.hero-cloudflare__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-cloudflare__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-cloudflare__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.hero-cloudflare__title span {
    background: linear-gradient(135deg, var(--color-accent) 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cloudflare__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 60ch;
}

/* ========================================
   CLEANER BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn--primary {
    background: var(--color-accent);
    color: #0a0f1a;
}

.btn--primary:hover {
    background: var(--color-accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 222, 128, 0.3);
}

.btn--secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--color-accent);
    padding: 0.5rem 0;
}

.btn--ghost:hover {
    color: var(--color-accent-bright);
}

.btn--ghost svg {
    transition: transform 0.2s ease;
}

.btn--ghost:hover svg {
    transform: translateX(4px);
}

/* ========================================
   TALOS-STYLE DATA GRID
   ======================================== */

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.data-cell {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.2s ease;
}

.data-cell:hover {
    border-color: rgba(74, 222, 128, 0.3);
}

.data-cell__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-subtle);
    margin-bottom: 0.5rem;
}

.data-cell__value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.data-cell__description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ========================================
   ENHANCED NAVIGATION
   ======================================== */

.nav-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

/* ========================================
   COMPLIANCE BANNER - CLOUDFLARE STYLE
   ======================================== */

.compliance-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 4px solid #ef4444;
    border-radius: 8px;
}

.compliance-banner__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #ef4444;
}

.compliance-banner__content {
    flex: 1;
}

.compliance-banner__title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #ef4444;
    margin-bottom: 0.5rem;
}

.compliance-banner__text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.compliance-banner__text strong {
    color: var(--color-text-primary);
}

/* ========================================
   SERVICE CARDS - FORTINET STYLE
   ======================================== */

.service-card {
    position: relative;
    background: linear-gradient(180deg, rgba(22, 27, 34, 0.9) 0%, rgba(13, 17, 23, 0.95) 100%);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card--crypto::before { background: linear-gradient(90deg, #ef4444, #f59e0b); }
.service-card--offensive::before { background: linear-gradient(90deg, #f59e0b, #eab308); }
.service-card--defensive::before { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.service-card--research::before { background: linear-gradient(90deg, #8b5cf6, #a855f7); }
.service-card--edge::before { background: linear-gradient(90deg, #4ade80, #22d3ee); }

.service-card:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.service-card--crypto .service-card__icon { background: rgba(239, 68, 68, 0.1); }
.service-card--crypto .service-card__icon svg { stroke: #ef4444; }
.service-card--offensive .service-card__icon { background: rgba(245, 158, 11, 0.1); }
.service-card--offensive .service-card__icon svg { stroke: #f59e0b; }
.service-card--defensive .service-card__icon { background: rgba(59, 130, 246, 0.1); }
.service-card--defensive .service-card__icon svg { stroke: #3b82f6; }
.service-card--research .service-card__icon { background: rgba(139, 92, 246, 0.1); }
.service-card--research .service-card__icon svg { stroke: #8b5cf6; }
.service-card--edge .service-card__icon { background: rgba(74, 222, 128, 0.1); }
.service-card--edge .service-card__icon svg { stroke: #4ade80; }

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.service-card__title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.service-card__description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(48, 54, 61, 0.4);
}

.service-card__tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    background: rgba(48, 54, 61, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* ========================================
   ENHANCED FOOTER STYLING
   ======================================== */

.footer {
    background: linear-gradient(180deg, #0a0f1a 0%, #050810 100%);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer__inner {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

.footer__address {
    padding: 2rem 0;
    border-top: 1px solid rgba(48, 54, 61, 0.3);
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
    margin-bottom: 2rem;
}

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

@media (max-width: 640px) {
    .footer__address-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer__address-block {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer__address-block strong {
    color: var(--color-text-primary);
    font-weight: 500;
}

.footer__address-region {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(74, 222, 128, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

/* ========================================
   ACADEMIC CITATIONS - CLEANER
   ======================================== */

.citation-block {
    background: rgba(13, 17, 23, 0.6);
    border-left: 3px solid var(--color-accent);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.citation-block__authors {
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.9rem;
}

.citation-block__title {
    font-style: italic;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.citation-block__venue {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.citation-block__doi {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent);
    margin-top: 0.25rem;
}

/* ========================================
   RESEARCH PAPERS GRID
   ======================================== */

.papers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.paper-item {
    background: rgba(22, 27, 34, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.4);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.paper-item:hover {
    border-color: rgba(74, 222, 128, 0.3);
    transform: translateY(-2px);
}

.paper-item__venue {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.paper-item__title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   TIMELINE - CLEANER VERSION
   ======================================== */

.timeline-clean {
    position: relative;
    margin: 2.5rem 0;
}

.timeline-clean::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dim));
}

.timeline-clean__item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 2rem;
}

.timeline-clean__item:last-child {
    padding-bottom: 0;
}

.timeline-clean__marker {
    position: absolute;
    left: 12px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--color-bg-primary);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
}

.timeline-clean__date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.timeline-clean__title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.25rem;
}

.timeline-clean__content {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   STATISTICS ROW
   ======================================== */

.stats-clean {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (max-width: 768px) {
    .stats-clean {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-clean {
    text-align: center;
    padding: 2rem;
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid rgba(48, 54, 61, 0.3);
    border-radius: 12px;
}

.stat-clean__value {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-clean__label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ========================================
   SVG DIAGRAMS CONTAINER
   ======================================== */

.diagram-clean {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.4);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.diagram-clean__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(48, 54, 61, 0.4);
}

.diagram-clean__title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.diagram-clean svg {
    max-width: 100%;
    height: auto;
}

/* ========================================
   FORMS - CLEANER STYLE
   ======================================== */

.form-clean {
    max-width: 480px;
    margin: 0 auto;
}

.form-clean__group {
    margin-bottom: 1.5rem;
}

.form-clean__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.form-clean__input,
.form-clean__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text-primary);
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.form-clean__input:focus,
.form-clean__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.form-clean__textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========================================
   RESPONSIVE HELPERS
   ======================================== */

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero-cloudflare {
        min-height: auto;
        padding: calc(var(--nav-height) + 3rem) 0 3rem;
    }
    
    .hero-cloudflare__title {
        font-size: 2rem;
    }
    
    .hero-cloudflare__subtitle {
        font-size: 1rem;
    }
    
    .feature-block {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .feature-block__icon {
        margin: 0 auto;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: var(--color-bg-primary);
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}
