/* ==========================================================
   Hedgehog Security — Home Page Stylesheet
   Hero, benefits, services, stats, process, accreditations,
   CTA, shield visual, contact form, trust quote.
   ========================================================== */

/* ── HERO SECTION ──────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Animated grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
}

/* Floating hex nodes */
.hex-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hex-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: hexFloat 6s ease-in-out infinite;
}
@keyframes hexFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.45rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease forwards;
}
.hero-badge i {
    animation: blink 2s step-end infinite;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}
.hero-headline .accent {
    color: var(--accent-primary);
    position: relative;
}
.hero-headline .accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow-strong);
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--accent-primary);
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.35s forwards;
}
.hero-tagline .cursor-blink {
    animation: blink 1s step-end infinite;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUp 0.8s ease 0.65s forwards;
}

/* Hedgehog ASCII art */
.hero-ascii {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ascii-hedgehog {
    font-family: var(--font-mono);
    font-size: clamp(0.35rem, 0.7vw, 0.55rem);
    line-height: 1.15;
    color: var(--accent-primary);
    white-space: pre;
    opacity: 0.7;
    text-shadow: 0 0 20px var(--accent-glow);
    animation: fadeIn 1.5s ease 0.8s forwards;
    opacity: 0;
}
.glow-ring {
    position: absolute;
    width: 400px;
    height: 400px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    animation: ringPulse 4s ease-in-out infinite;
}
.glow-ring:nth-child(2) {
    width: 500px;
    height: 500px;
    animation-delay: 1s;
}
.glow-ring:nth-child(3) {
    width: 600px;
    height: 600px;
    animation-delay: 2s;
}
@keyframes ringPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.95); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

/* ── BENEFITS / VALUE SECTION ──────────────────────────── */
.benefit-card {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.benefit-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--glow-effect);
    border-color: rgba(0, 255, 136, 0.2);
}
.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.benefit-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ── SERVICES SECTION ──────────────────────────────────── */
.service-block {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s;
}
.service-block:hover {
    box-shadow: var(--glow-effect);
    border-color: var(--border-color);
}

.service-header {
    padding: 2.5rem 2.5rem 1.5rem;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 0.2em;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    padding: 0 2.5rem 2.5rem;
    margin: 0;
}
.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.service-features li i {
    color: var(--accent-primary);
    margin-top: 0.2rem;
    font-size: 0.75rem;
}

/* ── STATS / SOCIAL PROOF ──────────────────────────────── */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
}
.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── PROCESS / HOW WE WORK ─────────────────────────────── */
.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem 0;
    position: relative;
}
.process-step + .process-step {
    border-top: 1px solid var(--border-subtle);
}

.step-indicator {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-primary);
    position: relative;
}
.step-indicator::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 2px;
    height: calc(100% + 2rem);
    background: var(--border-color);
    transform: translateX(-50%);
}
.process-step:last-child .step-indicator::after {
    display: none;
}

.step-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.step-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ── ACCREDITATIONS ────────────────────────────────────── */
.accreditation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}
.accred-badge {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 160px;
    transition: all 0.3s;
}
.accred-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-effect);
}
.accred-badge i {
    font-size: 2rem;
    color: var(--accent-primary);
}
.accred-badge span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

/* ── TESTIMONIAL / TRUST ───────────────────────────────── */
.trust-quote {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
    padding: 2rem 2.5rem;
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    position: relative;
}
.trust-quote::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--accent-glow);
}
.trust-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.trust-quote cite {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-style: normal;
    letter-spacing: 0.05em;
}

/* ── CTA SECTION ───────────────────────────────────────── */
.cta-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 60%);
    animation: ctaGlow 6s ease-in-out infinite;
}
@keyframes ctaGlow {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}
.cta-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* ── CONTACT FORM ──────────────────────────────────────── */
.form-hh .form-control,
.form-hh .form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-hh .form-control:focus,
.form-hh .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}
.form-hh .form-control::placeholder {
    color: var(--text-muted);
}
.form-hh label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

/* ── SHIELD VISUAL (ethos section) ─────────────────────── */
.shield-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}
.shield-icon-main {
    font-size: 8rem;
    color: var(--accent-primary);
    opacity: 0.15;
    position: absolute;
}
.shield-rings {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    animation: shieldSpin 20s linear infinite;
}
.shield-rings:nth-child(2) {
    width: 320px;
    height: 320px;
    animation-direction: reverse;
    animation-duration: 30s;
    border-style: dotted;
}
@keyframes shieldSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.feature-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.feature-tag {
    background: var(--accent-glow);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── TERMINAL OVERRIDES (home-specific elements) ───────── */
[data-theme="terminal"] .benefit-card,
[data-theme="terminal"] .service-block,
[data-theme="terminal"] .accred-badge {
    border-radius: 0;
}

/* ── RESPONSIVE — HOME ─────────────────────────────────── */
@media (max-width: 991px) {
    .hero-ascii {
        display: none;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .process-step {
        flex-direction: column;
        gap: 1rem;
    }
    .step-indicator::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .stat-item {
        padding: 1.5rem 1rem;
    }
    .service-header {
        padding: 2rem 1.5rem 1rem;
    }
    .service-features {
        padding: 0 1.5rem 1.5rem;
    }
}
