/* ============================================================
   Ghostpoint Security — Cyberpunk Dark Theme
   Colors pulled from logo: cyan #00e5ff, magenta #ff00c8, purple #8b2fff
   ============================================================ */

:root {
    --cyan:       #00e5ff;
    --magenta:    #ff00c8;
    --purple:     #8b2fff;
    --dark:       #000000;
    --surface:    #080c10;
    --surface-2:  #0d1117;
    --card-bg:    rgba(0, 229, 255, 0.03);
    --card-border: rgba(0, 229, 255, 0.18);
    --text:       #8fa8bc;
    --text-light: #d0e8f8;
    --font-display: 'Orbitron', 'Courier New', monospace;
    --font-body:  'Rajdhani', 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background: var(--dark);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ---- Utility ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neon-cyan { color: var(--cyan); text-shadow: 0 0 12px rgba(0, 229, 255, 0.7); }
.neon-magenta { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 0, 200, 0.7); }

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

section { padding: 5rem 0; }

/* ============================================================
   NAV
   ============================================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.12);
    transition: border-color var(--transition);
}

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

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

.nav-logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-text .brand { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; }
.nav-logo-text .sub   { font-size: 0.6rem; letter-spacing: 0.25em; color: var(--text); text-transform: uppercase; }

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan) !important;
    padding: 0.4rem 1rem;
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.75rem !important;
    letter-spacing: 0.1em;
    transition: background var(--transition), box-shadow var(--transition) !important;
}

.btn-nav:hover {
    background: rgba(0, 229, 255, 0.1) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3) !important;
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

/* Grid / circuit background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-scroll 20s linear infinite;
}

/* Radial glow behind content */
.hero::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(139, 47, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes grid-scroll {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--cyan);
    opacity: 0.6;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero h1 .line-accent {
    display: block;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-top: 0.25rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #000;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    margin-top: 0.25rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--magenta);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.section-header p {
    max-width: 550px;
    margin: 1rem auto 0;
    color: var(--text);
    font-size: 1rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--surface); }

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

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), box-shadow var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1), inset 0 0 30px rgba(0, 229, 255, 0.03);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--cyan);
    fill: none;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
}

.service-tag {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why { background: var(--dark); }

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image {
    position: relative;
}

.why-logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-logo-wrap img {
    width: 100%;
    max-width: 420px;
    border-radius: 4px;
    opacity: 0.9;
}

.why-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--purple));
    border-radius: 5px;
    z-index: -1;
    opacity: 0.4;
    filter: blur(8px);
}

.why-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.why-content p {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.8;
}

.why-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
}

.why-list li::before {
    content: '▸';
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 0.1rem;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

/* ============================================================
   FRAMEWORKS
   ============================================================ */
.frameworks { background: var(--surface); }

.frameworks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.framework-badge {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text);
    background: var(--card-bg);
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
    cursor: default;
}

.framework-badge:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--dark); }

.contact-box {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.contact-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: text-shadow var(--transition);
    margin-bottom: 2.5rem;
}

.contact-email:hover {
    text-shadow: 0 0 16px rgba(0, 229, 255, 0.8);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--surface-2);
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

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

/* ============================================================
   TERMS PAGE
   ============================================================ */
.terms-hero {
    padding: 10rem 0 4rem;
    background: var(--dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.terms-hero h1 {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.terms-hero .meta {
    position: relative;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
}

.terms-body {
    background: var(--surface);
    padding: 4rem 0 6rem;
}

.terms-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sticky TOC */
.terms-toc {
    position: sticky;
    top: 5rem;
}

.terms-toc h3 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}

.terms-toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    counter-reset: toc;
}

.terms-toc ol li { counter-increment: toc; }

.terms-toc a {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
    line-height: 1.4;
}

.terms-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--purple);
    flex-shrink: 0;
}

.terms-toc a:hover { color: var(--cyan); }

/* Terms content */
.terms-content { max-width: 760px; }

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h2 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-section h2 .sec-num {
    font-size: 0.7rem;
    color: var(--purple);
    background: rgba(139, 47, 255, 0.1);
    border: 1px solid rgba(139, 47, 255, 0.3);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    letter-spacing: 0.1em;
}

.terms-section h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin: 1.5rem 0 0.75rem;
}

.terms-section p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1rem;
}

.terms-section ul,
.terms-section ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.terms-section li {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.terms-caps {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    background: rgba(255, 0, 200, 0.04);
    border-left: 2px solid var(--magenta);
    padding: 0.75rem 1rem;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.2); }
    50%       { box-shadow: 0 0 25px rgba(0, 229, 255, 0.5); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fade-up 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .why-inner { grid-template-columns: 1fr; }
    .why-image { display: none; }
    .terms-layout { grid-template-columns: 1fr; }
    .terms-toc { position: static; display: none; }
}

@media (max-width: 680px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(0,0,0,0.97); padding: 1.5rem; border-bottom: 1px solid rgba(0,229,255,0.15); gap: 1.25rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero-stats { gap: 1.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}
