:root {
    --background: #0A1428;
    --primary: #00D1FF;
    --white: #F0F8FF;
    --text: #CCCCCC;
    --text-dark: #888;
    --surface: #1E293B;
    --border: #222;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10, 20, 40, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.new-logo {
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    position: relative;
}

.new-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.nav-links a {
    color: var(--text);
    margin-left: 2rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 8rem 0;
}

.hero .container {
    position: relative;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

#dynamic-hero-description {
    min-height: 100px; /* Adjust as needed for 2-3 lines of text */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

#dynamic-hero-description p {
    max-width: 800px; /* Allow sentences to be a bit wider */
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
}

.btn-primary:hover {
    background: var(--white);
}

.btn-outline {
    border-color: var(--border);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--surface);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.3);
}

/* Features */
.features {
    background: var(--surface);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

/* Stats */
.stats {
    text-align: center;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Waitlist */
#waitlist {
    text-align: center;
}

#waitlist form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
}

#waitlist input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 8px 0 0 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--white);
    font-size: 1rem;
}

#waitlist button {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

#waitlist button:hover {
    background: var(--white);
}

/* Footer */
footer {
    background: var(--surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.socials a {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

/* How It Works Animation */
.how-it-works {
    padding: 6rem 0;
    text-align: center;
}

.animation-container {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    gap: 2rem;
    margin-top: 4rem;
    opacity: 0;
    transition: opacity 1s;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 120px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
}

.animation-container.active .flow-item {
    opacity: 1;
    transform: scale(1);
}

.flow-item i {
    font-size: 3rem;
    color: var(--primary);
}

/* Remove the old flow-line styles */
.flow-line {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none; /* Simple hiding for mobile, can be improved with a hamburger menu */
    }
}

/* --- How It Works Animation --- */
.how-it-works-new {
  background-color: var(--background);
  color: var(--white);
  padding: 100px 0;
  overflow: hidden;
  position: relative;
}

.hub-container {
  position: relative;
  width: 800px;
  height: 600px;
  margin: 50px auto 0;
  background: radial-gradient(circle, rgba(14, 33, 63, 0.5) 0%, transparent 70%);
}

.hub-node {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.hub-node i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.hub-node span {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.hub-node.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  animation-delay: 0s;
}

.hub-node.center i {
  font-size: 4rem;
  animation: pulseBrain 4s infinite ease-in-out;
}

.hub-node.top { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
.hub-node.top-left { top: 20%; left: 15%; transform: translate(-50%, -50%); animation-delay: 0.6s; }
.hub-node.top-right { top: 20%; left: 85%; transform: translate(-50%, -50%); animation-delay: 0.7s; }
.hub-node.left { top: 50%; left: 0; transform: translateY(-50%); animation-delay: 0.8s; }
.hub-node.right { top: 50%; right: 0; transform: translateY(-50%); text-align: right; animation-delay: 0.9s; }
.hub-node.bottom { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1s; }
.hub-node.bottom-left { bottom: 20%; left: 15%; transform: translate(-50%, 50%); animation-delay: 1.1s; }
.hub-node.bottom-right { bottom: 20%; left: 85%; transform: translate(-50%, 50%); animation-delay: 1.2s; }


.hub-line {
  position: absolute;
  background-color: var(--surface);
  opacity: 0.5;
}

.line-top { width: 4px; height: 180px; top: 90px; left: calc(50% - 2px); }
.line-left { width: 280px; height: 4px; top: calc(50% - 2px); left: 90px; }
.line-right { width: 280px; height: 4px; top: calc(50% - 2px); right: 90px; }
.line-bottom { width: 4px; height: 180px; bottom: 90px; left: calc(50% - 2px); }
.line-top-left { width: 200px; height: 4px; top: 150px; left: 180px; transform: rotate(-45deg); transform-origin: top left;}
.line-top-right { width: 200px; height: 4px; top: 150px; right: 180px; transform: rotate(45deg); transform-origin: top right;}
.line-bottom-left { width: 200px; height: 4px; bottom: 150px; left: 180px; transform: rotate(45deg); transform-origin: bottom left;}
.line-bottom-right { width: 200px; height: 4px; bottom: 150px; right: 180px; transform: rotate(-45deg); transform-origin: bottom right;}


.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary), 0 0 5px #fff;
  opacity: 0;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.active .particle-siem { animation-name: flow-siem; animation-duration: 3s; animation-delay: 1s; }
.active .particle-xdr { animation-name: flow-xdr; animation-duration: 3s; animation-delay: 1.5s; }
.active .particle-investigate { animation-name: flow-investigate; animation-duration: 4s; animation-delay: 3s; }
.active .particle-response { animation-name: flow-response; animation-duration: 2s; animation-delay: 5s; }
.active .particle-feedback { animation-name: flow-feedback; animation-duration: 4s; animation-delay: 5.5s; }


@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes pulseBrain {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--primary); }
  50% { transform: scale(1.05); box-shadow: 0 0 35px var(--primary); }
}

/* Particle Animations */
@keyframes flow-siem {
  0% { top: 30px; left: calc(50% - 2.5px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 280px; left: calc(50% - 2.5px); opacity: 0; }
}
@keyframes flow-xdr {
  0% { top: 30px; left: calc(50% - 2.5px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 280px; left: calc(50% - 2.5px); opacity: 0; }
}
@keyframes flow-investigate {
  0% { top: 50%; left: 50%; opacity: 0; }
  10% { opacity: 1; }
  20% { top: 50%; left: 80px; opacity: 1; } /* To ticketing */
  30% { top: 50%; left: 50%; opacity: 0; }
  40% { top: 50%; left: 50%; opacity: 0; }
  50% { opacity: 1; }
  60% { top: 150px; left: 180px; opacity: 1; } /* To runbooks */
  70% { top: 50%; left: 50%; opacity: 0; }
  80% { top: 50%; left: 50%; opacity: 0; }
  90% { opacity: 1; }
  100% { top: 20%; left: 85%; opacity: 1; } /* To internal knowledge */
}
@keyframes flow-response {
  0% { top: 320px; left: calc(50% - 2.5px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 570px; left: calc(50% - 2.5px); opacity: 0; }
}
@keyframes flow-feedback {
  0% { top: 50%; right: 30px; opacity: 0; }
  10% { opacity: 1; }
  45% { top: 50%; right: 380px; opacity: 1; } /* To brain */
  50% { opacity: 0; }
  55% { top: 50%; right: 380px; opacity: 0; }
  60% { opacity: 1; }
  95% { top: 50%; right: 30px; opacity: 1; } /* From brain */
  100% { opacity: 0; }
}