/* ===================================================================
   ZSec Solutions — futuristic landing
   =================================================================== */

:root {
   --bg: #05070f;
   --bg-alt: #080c18;
   --surface: rgba(255, 255, 255, 0.035);
   --border: rgba(148, 187, 255, 0.12);
   --border-strong: rgba(56, 224, 255, 0.45);
   --text: #e6edf7;
   --text-dim: #93a1b8;
   --cyan: #38e0ff;
   --violet: #8b5cf6;
   --gradient: linear-gradient(100deg, var(--cyan), var(--violet));
   --font-display: 'Space Grotesk', system-ui, sans-serif;
   --font-body: 'Inter', system-ui, sans-serif;
   --font-mono: 'JetBrains Mono', ui-monospace, monospace;
   --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
   background: var(--bg);
   color: var(--text);
   font-family: var(--font-body);
   font-size: 16px;
   line-height: 1.65;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); letter-spacing: 0.08em; }

.container {
   width: min(1120px, 92%);
   margin-inline: auto;
}

/* ---------- ambient background ---------- */

.bg-grid {
   position: fixed;
   inset: 0;
   z-index: -3;
   background-image:
      linear-gradient(rgba(56, 224, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(56, 224, 255, 0.045) 1px, transparent 1px);
   background-size: 56px 56px;
   mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
   -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 80%);
}

.bg-glow {
   position: fixed;
   z-index: -2;
   width: 55vw;
   height: 55vw;
   border-radius: 50%;
   filter: blur(120px);
   opacity: 0.14;
   pointer-events: none;
}
.bg-glow--cyan   { background: var(--cyan);   top: -20vw; right: -15vw; }
.bg-glow--violet { background: var(--violet); bottom: -25vw; left: -18vw; }

/* ---------- header ---------- */

.site-header {
   position: fixed;
   top: 0; left: 0; right: 0;
   z-index: 100;
   height: var(--header-h);
   display: flex;
   align-items: center;
   transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
   border-bottom: 1px solid transparent;
}
.site-header.scrolled {
   background: rgba(5, 7, 15, 0.72);
   backdrop-filter: blur(14px);
   -webkit-backdrop-filter: blur(14px);
   border-bottom-color: var(--border);
}

.header-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 34px; width: auto; }
.brand-name {
   font-family: var(--font-display);
   font-weight: 700;
   font-size: 1.05rem;
   letter-spacing: 0.02em;
}
.brand-accent { color: var(--cyan); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
   font-size: 0.9rem;
   font-weight: 500;
   color: var(--text-dim);
   transition: color 0.25s ease;
   position: relative;
}
.site-nav a:hover { color: var(--text); }
.site-nav a:not(.nav-cta)::after {
   content: '';
   position: absolute;
   left: 0; bottom: -6px;
   width: 0; height: 1px;
   background: var(--gradient);
   transition: width 0.3s ease;
}
.site-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
   color: var(--cyan) !important;
   border: 1px solid rgba(56, 224, 255, 0.4);
   padding: 8px 20px;
   border-radius: 999px;
   transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav-cta:hover {
   background: rgba(56, 224, 255, 0.1);
   box-shadow: 0 0 24px rgba(56, 224, 255, 0.25);
}

.nav-toggle {
   display: none;
   flex-direction: column;
   gap: 5px;
   background: none;
   border: 0;
   cursor: pointer;
   padding: 8px;
}
.nav-toggle span {
   width: 22px; height: 2px;
   background: var(--text);
   transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- hero ---------- */

.hero {
   position: relative;
   min-height: 100vh;
   min-height: 100svh;
   display: flex;
   align-items: center;
   overflow: hidden;
}

.hero-canvas {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   z-index: 0;
}

.hero-fade {
   position: absolute;
   inset: 0;
   z-index: 1;
   pointer-events: none;
   background:
      radial-gradient(ellipse 80% 60% at 50% 45%, transparent 40%, rgba(5, 7, 15, 0.55) 100%),
      linear-gradient(to bottom, rgba(5, 7, 15, 0.3), transparent 30%, transparent 70%, var(--bg));
}

.hero-content {
   position: relative;
   z-index: 2;
   /* bottom padding keeps the tagline clear of the absolute scroll hint */
   padding-top: calc(var(--header-h) + 20px);
   padding-bottom: 96px;
   text-align: center;
}

.hero-eyebrow {
   font-family: var(--font-mono);
   font-size: 0.75rem;
   letter-spacing: 0.32em;
   color: var(--cyan);
   display: inline-flex;
   align-items: center;
   gap: 10px;
   padding: 9px 20px;
   border: 1px solid rgba(56, 224, 255, 0.25);
   border-radius: 999px;
   background: rgba(56, 224, 255, 0.05);
   margin-bottom: 34px;
}

.pulse-dot {
   width: 7px; height: 7px;
   border-radius: 50%;
   background: var(--cyan);
   box-shadow: 0 0 0 0 rgba(56, 224, 255, 0.6);
   animation: pulse 2.2s ease-out infinite;
   flex-shrink: 0;
}
@keyframes pulse {
   0%   { box-shadow: 0 0 0 0 rgba(56, 224, 255, 0.6); }
   70%  { box-shadow: 0 0 0 9px rgba(56, 224, 255, 0); }
   100% { box-shadow: 0 0 0 0 rgba(56, 224, 255, 0); }
}

.hero-title {
   font-family: var(--font-display);
   font-size: clamp(2.4rem, 6.4vw, 4.6rem);
   font-weight: 700;
   line-height: 1.08;
   letter-spacing: -0.02em;
   margin-bottom: 26px;
}

.gradient-text {
   background: var(--gradient);
   -webkit-background-clip: text;
   background-clip: text;
   color: transparent;
}

.hero-sub {
   max-width: 620px;
   margin: 0 auto 40px;
   color: var(--text-dim);
   font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-actions {
   display: flex;
   justify-content: center;
   gap: 18px;
   flex-wrap: wrap;
   margin-bottom: 38px;
}

.hero-tagline {
   font-family: var(--font-mono);
   font-size: 0.8rem;
   letter-spacing: 0.22em;
   color: var(--text-dim);
   opacity: 0.75;
}

/* live scrape counter */
.scrape-counter {
   display: inline-block;
   margin: 0 auto 34px;
   padding: 18px 38px 20px;
   border: 1px solid rgba(56, 224, 255, 0.22);
   border-radius: 16px;
   background: rgba(5, 7, 15, 0.55);
   backdrop-filter: blur(8px);
   -webkit-backdrop-filter: blur(8px);
   box-shadow: 0 0 40px rgba(56, 224, 255, 0.07), inset 0 0 30px rgba(56, 224, 255, 0.03);
}

.scrape-counter-head {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   font-size: 0.68rem;
   letter-spacing: 0.28em;
   color: var(--text-dim);
   margin-bottom: 10px;
}

.counter-dot {
   width: 7px; height: 7px;
   border-radius: 50%;
   background: var(--text-dim);
   flex-shrink: 0;
   transition: background 0.4s ease;
}
.scrape-counter.live .counter-dot {
   background: var(--cyan);
   animation: pulse 2.2s ease-out infinite;
}

.counter-mode {
   font-size: 0.62rem;
   color: var(--text-dim);
   border: 1px solid rgba(148, 187, 255, 0.25);
   border-radius: 5px;
   padding: 2px 8px;
   letter-spacing: 0.18em;
   transition: color 0.4s ease, border-color 0.4s ease;
}
.scrape-counter.live .counter-mode {
   color: var(--cyan);
   border-color: rgba(56, 224, 255, 0.45);
}

.scrape-counter-value {
   font-size: clamp(1.9rem, 4.4vw, 2.7rem);
   font-weight: 500;
   letter-spacing: 0.06em;
   color: var(--text);
   text-shadow: 0 0 24px rgba(56, 224, 255, 0.35);
   font-variant-numeric: tabular-nums;
   line-height: 1;
}
.scrape-counter.live .scrape-counter-value {
   color: #eafcff;
   text-shadow: 0 0 30px rgba(56, 224, 255, 0.55);
}

.scrape-counter-value.tick {
   animation: counter-tick 0.45s ease;
}
@keyframes counter-tick {
   0%   { text-shadow: 0 0 46px rgba(56, 224, 255, 0.9); }
   100% { text-shadow: 0 0 24px rgba(56, 224, 255, 0.35); }
}

/* buttons */
.btn {
   display: inline-block;
   font-family: var(--font-display);
   font-weight: 600;
   font-size: 0.95rem;
   padding: 14px 34px;
   border-radius: 999px;
   transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
   cursor: pointer;
   border: 0;
}
.btn--primary {
   background: var(--gradient);
   color: #04121a;
   box-shadow: 0 0 30px rgba(56, 224, 255, 0.28);
}
.btn--primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 0 48px rgba(56, 224, 255, 0.45);
}
.btn--ghost {
   background: transparent;
   color: var(--text);
   border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
   background: rgba(56, 224, 255, 0.08);
   transform: translateY(-2px);
}

/* scroll hint */
.scroll-hint {
   position: absolute;
   bottom: 30px;
   left: 50%;
   transform: translateX(-50%);
   z-index: 2;
   width: 26px; height: 44px;
   border: 1px solid rgba(148, 187, 255, 0.35);
   border-radius: 999px;
   display: flex;
   justify-content: center;
   padding-top: 8px;
}
.scroll-hint-line {
   width: 2px; height: 9px;
   border-radius: 2px;
   background: var(--cyan);
   animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
   0%   { transform: translateY(0);    opacity: 1; }
   70%  { transform: translateY(14px); opacity: 0; }
   100% { transform: translateY(0);    opacity: 0; }
}

/* ---------- sections ---------- */

.section {
   position: relative;
   padding: 120px 0;
}
.section--alt {
   background: linear-gradient(to bottom, transparent, rgba(56, 224, 255, 0.025) 20%, rgba(139, 92, 246, 0.03) 80%, transparent);
}

.section-head {
   max-width: 680px;
   margin-bottom: 64px;
}

.section-kicker {
   font-size: 0.78rem;
   color: var(--cyan);
   margin-bottom: 16px;
   text-transform: lowercase;
}

.section-title {
   font-family: var(--font-display);
   font-size: clamp(1.8rem, 4vw, 2.7rem);
   font-weight: 700;
   line-height: 1.15;
   letter-spacing: -0.015em;
   margin-bottom: 18px;
}

.section-sub { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- capability cards ---------- */

.card-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 22px;
}

.card {
   position: relative;
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 18px;
   padding: 36px 30px;
   backdrop-filter: blur(6px);
   transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
   overflow: hidden;
}
.card::before {
   content: '';
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at 50% -20%, rgba(56, 224, 255, 0.12), transparent 60%);
   opacity: 0;
   transition: opacity 0.35s ease;
   pointer-events: none;
}
.card:hover {
   transform: translateY(-6px);
   border-color: var(--border-strong);
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(56, 224, 255, 0.08);
}
.card:hover::before { opacity: 1; }

.card-icon {
   width: 52px; height: 52px;
   border-radius: 14px;
   display: grid;
   place-items: center;
   color: var(--cyan);
   background: rgba(56, 224, 255, 0.08);
   border: 1px solid rgba(56, 224, 255, 0.22);
   margin-bottom: 24px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 {
   font-family: var(--font-display);
   font-size: 1.25rem;
   font-weight: 600;
   margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 22px; }

.card-tag {
   font-size: 0.68rem;
   color: var(--cyan);
   border: 1px solid rgba(56, 224, 255, 0.25);
   border-radius: 6px;
   padding: 5px 10px;
   display: inline-block;
}

/* ---------- ventures ---------- */

.venture {
   display: block;
   position: relative;
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 20px;
   padding: 44px 42px;
   margin-bottom: 22px;
   overflow: hidden;
   transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.venture::after {
   content: '';
   position: absolute;
   top: 0; left: 0;
   width: 100%; height: 2px;
   background: var(--gradient);
   opacity: 0.65;
}
.venture:hover { border-color: var(--border-strong); }

.venture--next::after { opacity: 0.15; }
.venture--next { border-style: dashed; }

/* clickable venture card */
.venture--link::before {
   content: '';
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at 15% 0%, rgba(56, 224, 255, 0.1), transparent 55%);
   opacity: 0;
   transition: opacity 0.35s ease;
   pointer-events: none;
}
.venture--link:hover {
   transform: translateY(-4px);
   box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45), 0 0 44px rgba(56, 224, 255, 0.1);
}
.venture--link:hover::before { opacity: 1; }
.venture--link:focus-visible {
   outline: none;
   border-color: var(--border-strong);
   box-shadow: 0 0 0 3px rgba(56, 224, 255, 0.25);
}

.venture-tld { color: var(--cyan); font-weight: 500; }

.venture-arrow {
   width: 20px;
   height: 20px;
   color: var(--cyan);
   flex-shrink: 0;
   opacity: 0.6;
   transition: transform 0.3s ease, opacity 0.3s ease;
}
.venture--link:hover .venture-arrow {
   transform: translate(3px, -3px);
   opacity: 1;
}

.venture-cta {
   display: inline-block;
   margin-top: 24px;
   font-size: 0.72rem;
   color: var(--cyan);
   padding-bottom: 3px;
   border-bottom: 1px solid rgba(56, 224, 255, 0.3);
   transition: border-color 0.3s ease;
}
.venture--link:hover .venture-cta { border-bottom-color: var(--cyan); }

.venture-status {
   display: inline-flex;
   align-items: center;
   gap: 9px;
   font-size: 0.72rem;
   color: var(--cyan);
   margin-bottom: 18px;
}
.venture-status--dim { color: var(--text-dim); }

.venture-title {
   font-family: var(--font-display);
   font-size: 1.6rem;
   font-weight: 700;
   margin-bottom: 12px;
}
.venture--link .venture-title {
   display: flex;
   align-items: center;
   gap: 10px;
}
.venture-title--dim { color: var(--text-dim); }

.cursor-blink { animation: blink 1.1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

.venture-desc { color: var(--text-dim); max-width: 640px; margin-bottom: 20px; }

.venture-points {
   list-style: none;
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
}
.venture-points li {
   font-family: var(--font-mono);
   font-size: 0.75rem;
   letter-spacing: 0.05em;
   color: var(--text);
   background: rgba(56, 224, 255, 0.07);
   border: 1px solid rgba(56, 224, 255, 0.2);
   border-radius: 999px;
   padding: 7px 16px;
}

/* ---------- about ---------- */

.about-grid {
   display: grid;
   grid-template-columns: 1fr 1.3fr;
   gap: 64px;
   align-items: start;
}

.about-copy p { color: var(--text-dim); margin-bottom: 20px; }

.about-stats {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 18px;
   margin-top: 38px;
}
.stat {
   border: 1px solid var(--border);
   border-radius: 14px;
   padding: 20px 16px;
   background: var(--surface);
   text-align: center;
}
.stat-value {
   display: block;
   font-size: 1.5rem;
   font-weight: 500;
   color: var(--cyan);
   margin-bottom: 6px;
}
.stat-label {
   font-size: 0.75rem;
   color: var(--text-dim);
   text-transform: uppercase;
   letter-spacing: 0.1em;
}

/* ---------- contact ---------- */

.contact-form {
   max-width: 720px;
   background: var(--surface);
   border: 1px solid var(--border);
   border-radius: 20px;
   padding: 44px;
   backdrop-filter: blur(6px);
}

.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 22px;
}

.form-field { margin-bottom: 22px; }
.form-field label {
   display: block;
   font-size: 0.68rem;
   color: var(--text-dim);
   margin-bottom: 9px;
   letter-spacing: 0.18em;
}
.form-field input,
.form-field textarea {
   width: 100%;
   background: rgba(5, 7, 15, 0.6);
   border: 1px solid var(--border);
   border-radius: 10px;
   color: var(--text);
   font-family: var(--font-body);
   font-size: 0.95rem;
   padding: 14px 16px;
   transition: border-color 0.25s ease, box-shadow 0.25s ease;
   resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
   outline: none;
   border-color: var(--border-strong);
   box-shadow: 0 0 0 3px rgba(56, 224, 255, 0.12);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(147, 161, 184, 0.5); }

.form-footer {
   display: flex;
   align-items: center;
   gap: 22px;
   flex-wrap: wrap;
}
.form-status { font-size: 0.78rem; color: var(--text-dim); }
.form-status.ok { color: var(--cyan); }
.form-status.err { color: #ff6b81; }

/* ---------- footer ---------- */

.site-footer {
   border-top: 1px solid var(--border);
   padding: 48px 0;
   background: rgba(5, 7, 15, 0.6);
}
.footer-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo { height: 30px; width: auto; opacity: 0.85; }
.footer-brand p { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--text-dim); }
.footer-copy { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- reveal animation ---------- */

.reveal {
   opacity: 0;
   transform: translateY(26px);
   transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
   opacity: 1;
   transform: none;
}

@media (prefers-reduced-motion: reduce) {
   html { scroll-behavior: auto; }
   .reveal { opacity: 1; transform: none; transition: none; }
   .pulse-dot, .scroll-hint-line, .cursor-blink { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
   .card-grid { grid-template-columns: 1fr; }
   .about-grid { grid-template-columns: 1fr; gap: 28px; }
   .section { padding: 88px 0; }
}

@media (max-width: 720px) {
   .site-nav {
      position: fixed;
      top: var(--header-h);
      left: 0; right: 0;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      background: rgba(5, 7, 15, 0.96);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: 12px 0 24px;
      transform: translateY(-130%);
      transition: transform 0.35s ease;
   }
   .site-nav.open { transform: translateY(0); }
   .site-nav a { padding: 12px; font-size: 1rem; }
   .nav-cta { margin-top: 8px; }

   .nav-toggle { display: flex; }
   .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
   .nav-toggle.open span:nth-child(2) { opacity: 0; }
   .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

   .form-row { grid-template-columns: 1fr; gap: 0; }
   .contact-form { padding: 30px 22px; }
   .venture { padding: 32px 24px; }
   .about-stats { grid-template-columns: 1fr; }
   .hero-actions .btn { width: 100%; text-align: center; }
}
