/* --- Global Styles & Variables --- */
:root {
    --bg-dark: #0a192f;
    --bg-medium: #112240;
    --text-light: #ccd6f6;
    --text-medium: #8892b0;
    --accent-primary: #64ffda;
    --accent-primary-dim: rgba(100, 255, 218, 0.7);
    --white: #ffffff;
    --border-color: rgba(100, 255, 218, 0.1);
    --shadow-color: rgba(2, 12, 27, 0.7);

    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Orbitron', sans-serif;

    --border-radius: 4px;
    --transition-speed: 0.3s;
    --transition-slow: 0.6s;
}

/* --- Basic Reset & Setup --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 0.8em;
    line-height: 1.2;
    letter-spacing: 1px;
}
h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); text-align: center; } /* Responsive H1 */
h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); text-align: center; margin-bottom: 1.5em; }
h3 { font-size: clamp(1.3rem, 4vw, 1.6rem); color: var(--accent-primary); margin-bottom: 0.6em; }
h4 { font-size: 1.1rem; color: var(--text-light); margin-bottom: 0.5em; }

p { margin-bottom: 1em; color: var(--text-medium); }
.section-intro { /* Optional class for intro paras under H2 */
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -1em; /* Pull up slightly */
    margin-bottom: 2.5em;
    color: var(--text-light);
    font-size: 1.1rem;
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover, a:focus { color: var(--white); }
strong { font-weight: 700; color: var(--text-light); }
img, svg, i { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; } /* Align icons better */

/* --- Lists --- */
ul { list-style-position: outside; margin-left: 20px; margin-bottom: 1em; color: var(--text-medium); }
li { margin-bottom: 0.5em; }
.safety-ethics-column ul { list-style-type: none; margin-left: 0; }
.safety-ethics-column li { padding-left: 1.5em; position: relative; }
.safety-ethics-column li::before {
    content: '\f058'; /* Font Awesome check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.9em;
}

/* --- Header & Navigation --- */
header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}
header nav.container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: bold; color: var(--white); }
.logo-full { font-size: 0.8rem; font-weight: normal; margin-left: 5px; color: var(--accent-primary); display: inline-block; }
.primary-navigation { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; } /* Renamed class */
.primary-navigation li { margin-left: 25px; margin-bottom: 0; }
.primary-navigation a { position: relative; padding: 5px 0; } /* Added padding for hover effect */

.primary-navigation li a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--accent-primary); transition: width var(--transition-speed) ease; }
.primary-navigation li a:hover::after, .primary-navigation li a:focus::after { width: 100%; }
.mobile-nav-toggle { display: none; background: none; border: none; color: var(--accent-primary); font-size: 2rem; cursor: pointer; z-index: 1100; /* Above nav */ }

/* --- Buttons --- */
.cta-button { display: inline-block; background-color: var(--accent-primary); color: var(--bg-dark); padding: 12px 25px; border: 1px solid var(--accent-primary); border-radius: var(--border-radius); font-family: var(--font-heading); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all var(--transition-speed) ease; text-align: center; }
.cta-button:hover, .cta-button:focus { background-color: transparent; color: var(--accent-primary); transform: translateY(-2px); box-shadow: 0 5px 10px rgba(100, 255, 218, 0.1); }
.nav-cta { padding: 8px 18px; font-size: 0.9rem; }
.hero-cta { margin-top: 20px; font-size: 1.1rem; padding: 15px 35px; }
.learn-more-link { font-weight: bold; display: inline-block; margin-top: 10px; }

/* --- Sections --- */
.content-section { padding: clamp(60px, 10vh, 100px) 0; } /* Responsive padding */
.alt-bg { background-color: var(--bg-medium); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* --- Hero Section --- */
.hero-section { position: relative; min-height: 600px; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding-top: 80px; }
.hero-content { z-index: 2; position: relative; }
.hero-section .subtitle { font-size: clamp(1.1rem, 3vw, 1.3rem); color: var(--text-light); max-width: 700px; margin: 1em auto 0; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 1)), url('https://images.unsplash.com/photo-1518183654416-59e36681e5f6?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTAwOTZ8MHwxfHNlYXJjaHwyfHxuZXVyYWwlMjBuZXR3b3JrJTIwYWJzdHJhY3R8ZW58MHx8fHwxNzE5MTYwMjgwfDA&ixlib=rb-4.0.3&q=80&w=1080') center/cover no-repeat; z-index: 1; }

/* --- About & How It Works --- */
.about-content { display: flex; gap: 40px; align-items: flex-start; }
.about-text { flex: 1; }
.about-visual { flex: 0 0 300px; text-align: center; margin-top: 1.5em; }
.visual-placeholder { border: 1px dashed var(--accent-primary-dim); padding: 20px; border-radius: var(--border-radius); background: rgba(17, 34, 64, 0.5); display: inline-block; min-width: 200px; }
.visual-placeholder img { max-width: 250px; margin: 0 auto 10px auto; }
.visual-placeholder p { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 0; }
.interactive-diagram-placeholder { cursor: default; /* Add pointer if interactive */ }

/* --- Use Cases Section --- */
.use-cases-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.use-case-item { background-color: var(--bg-medium); padding: 30px; border-radius: var(--border-radius); border: 1px solid var(--border-color); text-align: center; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.use-case-item:hover { transform: translateY(-5px); box-shadow: 0 8px 15px var(--shadow-color); }
.use-case-icon { font-size: 2.5rem; color: var(--accent-primary); margin-bottom: 15px; display: block; line-height: 1; }
.use-case-item h3 { margin-top: 0; font-size: 1.2rem; color: var(--white); }

/* --- Benefits Section --- */
#benefits h2 { margin-bottom: 1.5em; }
.benefits-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.benefit-item { background-color: var(--bg-dark); padding: 30px; border-radius: var(--border-radius); border: 1px solid var(--border-color); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; }
.benefit-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--shadow-color); }
.benefit-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.benefit-item .counter { font-size: 1.1em; color: var(--accent-primary); /* Style for counter */ }

/* --- Plans Teaser Section --- */
.plans-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }
.plan-card { border: 1px solid var(--border-color); background-color: var(--bg-medium); padding: 30px; border-radius: var(--border-radius); display: flex; flex-direction: column; transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; position: relative; }
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px var(--shadow-color); }
.plan-card h3 { margin-top: 0; color: var(--white); font-size: 1.5rem; }
.plan-tagline { font-style: italic; color: var(--text-medium); margin-bottom: 10px; }
.plan-earning { font-weight: bold; color: var(--accent-primary); font-size: 1.2rem; margin-bottom: 15px; }
.plan-card p { font-size: 0.95rem; }
.plan-card p:last-of-type { margin-bottom: 25px; flex-grow: 1; }
.plan-cta { margin-top: auto; width: 100%; }
.featured-plan { border-color: var(--accent-primary); border-width: 2px; box-shadow: 0 0 15px rgba(100, 255, 218, 0.3); }
.featured-badge { position: absolute; top: -1px; right: 15px; background-color: var(--accent-primary); color: var(--bg-dark); padding: 3px 10px; font-size: 0.8rem; font-weight: bold; border-radius: 0 0 var(--border-radius) var(--border-radius); font-family: var(--font-heading); }
.featured-cta { background-color: var(--white); color: var(--bg-dark); border-color: var(--white); }
.featured-cta:hover { background-color: var(--accent-primary); color: var(--bg-dark); border-color: var(--accent-primary); }
.plans-footer { text-align: center; margin-top: 30px; font-size: 0.9rem; color: var(--text-medium); }

/* --- Testimonial Section --- */
.testimonial-container { max-width: 800px; text-align: center; position: relative; /* For controls */ }
.testimonial-carousel { position: relative; overflow: hidden; margin-bottom: 30px; min-height: 150px; /* Prevent collapse during transition */ }
.testimonial-slide { display: none; /* Hidden by default */ opacity: 0; transition: opacity var(--transition-slow) ease-in-out; }
.testimonial-slide.active { display: block; opacity: 1; }
blockquote {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1em;
    position: relative;
    /* Add padding for both opening and closing quotes */
    padding-inline: 45px; /* Logical property for left/right padding */
    text-align: left;
}
blockquote::before,
blockquote::after {
    position: absolute;
    font: 4rem/1 serif; /* Use common font style */
    color: var(--accent-primary);
    opacity: 0.8;
}
blockquote::before {
    content: '“'; /* Opening quote */
    left: 0;
    top: -10px;
}
blockquote::after {
    content: '”'; /* Closing quote */
    right: 0; /* Position to the right edge of padding box */
    bottom: -.5em; /* Experiment with this value */
}
cite { display: block; font-style: normal; color: var(--text-medium); font-weight: bold; text-align: right; margin-top: 10px; }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 15px; }
.carousel-controls button { background: none; border: 1px solid var(--accent-primary-dim); color: var(--accent-primary-dim); font-size: 1.5rem; cursor: pointer; padding: 0 10px; border-radius: 50%; width: 40px; height: 40px; transition: all var(--transition-speed) ease; line-height: 1; }
.carousel-controls button:hover { background-color: var(--accent-primary); color: var(--bg-dark); border-color: var(--accent-primary); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots span { display: block; width: 10px; height: 10px; background-color: var(--text-medium); border-radius: 50%; cursor: pointer; transition: background-color var(--transition-speed) ease; }
.carousel-dots span.active { background-color: var(--accent-primary); }

/* --- FAQ Section --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-accordion details { border-bottom: 1px solid var(--border-color); margin-bottom: 15px; }
.faq-accordion details:last-of-type { border-bottom: none; margin-bottom: 0; }
.faq-accordion summary {
    display: flex; /* Use flexbox */
    justify-content: space-between; /* Push icon to the right */
    align-items: center; /* Align items vertically */
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    list-style: none; /* Remove default marker */
    transition: color var(--transition-speed) ease;
}
.faq-accordion summary::-webkit-details-marker { display: none; } /* Hide Safari marker */
.faq-accordion summary:hover { color: var(--accent-primary); }
.faq-accordion details[open] summary { color: var(--accent-primary); }
.faq-accordion summary .faq-icon {
    font-family: var(--font-heading); /* Or use Font Awesome */
    font-size: 1.2em;
    transition: transform var(--transition-speed) ease;
    margin-left: 10px; /* Space between text and icon */
}
.faq-accordion details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-accordion details p { padding: 0 0 20px 0; margin-left: 5px; /* Slight indent */ }

/* --- Safety Sections --- */
.safety-container { text-align: center; max-width: 700px; margin: 0 auto; }
.safety-ethics-content { display: flex; gap: 40px; align-items: flex-start; }
.safety-ethics-column { flex: 1; }
.safety-ethics-column h3 { font-size: 1.3rem; color: var(--accent-primary); margin-top: 0; margin-bottom: 0.8em; }
.safety-ethics-column h3 ~ h3 { margin-top: 1.8em; }
.safety-footer { text-align: center; margin-top: 40px; font-size: 1rem; color: var(--text-light); }

/* --- Team Teaser --- */
.team-teaser-container { text-align: center; max-width: 600px; margin: 0 auto; }
.team-teaser-container p { color: var(--text-light); }

/* --- Sign Up Section --- */
.signup-section { background: linear-gradient(rgba(17, 34, 64, 0.95), rgba(17, 34, 64, 1)), url('https://images.unsplash.com/photo-1501862700949-a7f08c76fG?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3wzOTAwOTZ8MHwxfHNlYXJjaHwxMHx8ZGFyayUyMHRlY2hub2xvZ3l8ZW58MHx8fHwxNzE5MTYwMzU0fDA&ixlib=rb-4.0.3&q=80&w=1080') center/cover no-repeat; border-top: 1px solid var(--border-color); }
.signup-section h2, .signup-section p { text-align: center; }
.signup-section p { max-width: 600px; margin: 0 auto 40px auto; color: var(--text-light); }
.signup-form { max-width: 550px; margin: 0 auto; background: var(--bg-dark); padding: 30px 40px; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--text-light); font-size: 0.9rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group select, .form-group textarea { /* Added textarea */
    width: 100%;
    padding: 12px;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-medium); opacity: 0.7; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); }
.checkbox-group { display: flex; align-items: flex-start; }
.checkbox-group input[type="checkbox"] { margin-right: 10px; margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent-primary); }
.checkbox-group label { font-size: 0.85rem; color: var(--text-medium); margin-bottom: 0; font-weight: normal; line-height: 1.4; }
.checkbox-group label a { color: var(--accent-primary-dim); }
.checkbox-group label a:hover { text-decoration: underline; }
.signup-submit { width: 100%; margin-top: 10px; }
.plan-recommendation-text {
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-top: 8px;
    min-height: 1.2em; /* Prevent layout shift */
    transition: opacity var(--transition-speed) ease;
    opacity: 0; /* Hidden by default */
}
.plan-recommendation-text.visible {
    opacity: 1;
}


/* --- Footer --- */
footer { background-color: var(--bg-medium); color: var(--text-medium); padding: 50px 0; font-size: 0.9rem; border-top: 1px solid var(--border-color); }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; align-items: start; }
.footer-left .footer-logo { display: block; margin-bottom: 15px; font-size: 1.5rem; }
.footer-left p { font-size: 0.85rem; line-height: 1.5; }
.footer-center h4, .footer-right h4 { color: var(--white); margin-bottom: 15px; font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0.5px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-legal a { color: var(--text-medium); transition: color var(--transition-speed) ease; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--accent-primary); }
.social-links { display: flex; gap: 15px; margin-bottom: 20px; }
.social-links a { color: var(--text-medium); font-size: 1.3rem; transition: color var(--transition-speed) ease; }
.social-links a:hover { color: var(--accent-primary); }
.footer-legal { font-size: 0.85rem; }
.footer-legal a { margin: 0 5px; }

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity var(--transition-slow) ease-out, transform var(--transition-slow) ease-out;
}
.fade-up { transform: translateY(40px); }
.fade-in { /* No transform needed */ }
.fade-delay-1 { transition-delay: 0.2s; }
.fade-delay-2 { transition-delay: 0.4s; }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- SINISTER GLITCH EFFECTS --- */

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes text-glitch-anim {
  0% { transform: translate(0); opacity: 1; color: var(--text-light); }
  10% { transform: translate(-2px, 1px); opacity: 0.8; color: #ff4d4d; } /* Red flash */
  20% { transform: translate(2px, -1px); opacity: 1; color: var(--accent-primary); }
  30% { transform: translate(-1px, -2px); opacity: 0.7; color: #ff4d4d; }
  40% { transform: translate(1px, 2px); opacity: 1; color: var(--text-light); }
  50% { transform: translate(-2px, 1px); opacity: 0.8; }
  60% { transform: translate(2px, -1px); opacity: 1; }
  70% { transform: translate(-1px, 2px); opacity: 0.9; color: #ff4d4d; }
  80% { transform: translate(1px, -2px); opacity: 1; color: var(--accent-primary); }
  90% { transform: translate(-2px, -1px); opacity: 0.8; }
  100% { transform: translate(0); opacity: 1; color: var(--text-light); }
}

@keyframes background-glitch-anim {
  0% { background-color: inherit; }
  25% { background-color: rgba(255, 0, 0, 0.1); } /* Faint red flash */
  50% { background-color: inherit; }
  75% { background-color: rgba(100, 255, 218, 0.1); } /* Faint accent flash */
  100% { background-color: inherit; }
}

/* Class to apply for general glitch */
.glitching {
  position: relative; /* Needed for some pseudo-elements */
  z-index: 1; /* Ensure glitching element is usually above normal flow */
}

/* Text Glitch Effect */
.glitch-text-effect {
  animation: text-glitch-anim 0.25s linear 1;
}


/* Element Flicker */
.glitch-flicker-effect {
    animation: flicker 0.15s linear 2; /* Quick double flicker */
}

/* Background Flash */
.glitch-bg-effect {
    animation: background-glitch-anim 0.3s linear 1;
}

/* Hidden Sinister Text (Not directly used, JS swaps text) */
.sinister-text { display: none; }

/* Body Glitch Overlay */
body.body-glitching {
    animation: flicker 0.1s linear 1;
}
body.body-glitching::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 0, 0, 0.05);
    pointer-events: none;
    z-index: 9999;
    animation: flicker 0.1s linear 1 reverse;
}

/* Counter Glitch Style */
.counter.glitching {
    color: #ff4d4d !important;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 5px #ff4d4d;
}

/* --- ADDITIONAL SINISTER GLITCH EFFECTS --- */

/* Scanline Effect */
@keyframes scanline-anim {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.glitch-scanline-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%, /* Faint white line */
    transparent 100%
  );
  background-size: 100% 4px; /* Thickness of scanlines */
  animation: scanline-anim 0.1s linear infinite alternate;
  pointer-events: none;
  z-index: 5; /* Above text, below other potential overlays */
  opacity: 0.5;
}

/* Blocky/Color Channel Shift Effect */
@keyframes blocky-anim {
  0%, 100% { clip-path: inset(0 0 0 0); }
  10% { clip-path: inset(10% 0 80% 0); transform: translate(-5px, 0px); }
  20% { clip-path: inset(90% 0 5% 0); transform: translate(5px, 2px); }
  30% { clip-path: inset(40% 0 40% 0); transform: translate(-3px, -1px); }
  40% { clip-path: inset(0 0 0 0); transform: translate(0, 0); } /* Reset momentary */
  50% { clip-path: inset(70% 0 10% 0); transform: translate(8px, -3px); filter: hue-rotate(90deg); }
  60% { clip-path: inset(20% 0 75% 0); transform: translate(-4px, 1px); }
  70% { clip-path: inset(0 0 0 0); transform: translate(0, 0); filter: hue-rotate(0deg); } /* Reset momentary */
  80% { clip-path: inset(85% 0 5% 0); transform: translate(3px, 3px); filter: hue-rotate(180deg); }
  90% { clip-path: inset(30% 0 60% 0); transform: translate(-6px, -2px); }
}

.glitch-blocky-effect {
  animation: blocky-anim 0.4s steps(6, end) forwards; /* Use steps for blockiness */
  position: relative; /* Needed for pseudo-elements */
}
/* Add pseudo-elements for color channel separation */
.glitch-blocky-effect::before,
.glitch-blocky-effect::after {
    content: attr(data-text); /* Use data-text attribute set by JS */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark); /* Match background to hide original text */
    overflow: hidden;
    pointer-events: none; /* Prevent pseudo-elements from interfering */
    z-index: -1; /* Try putting them behind */
}
.glitch-blocky-effect::before {
    left: 2px;
    text-shadow: -1px 0 #ff00ff; /* Magenta */
    animation: blocky-anim 0.5s steps(8, end) infinite alternate-reverse;
    clip-path: inset(50% 0 0 0); /* Show only bottom half */
}
.glitch-blocky-effect::after {
    left: -2px;
    text-shadow: 1px 0 #00ffff; /* Cyan */
    animation: blocky-anim 0.45s steps(7, end) infinite alternate;
     clip-path: inset(0 0 50% 0); /* Show only top half */
}


/* Modifier for Longer Duration */
.glitch-long {
  /* Applied by JS to extend effect visibility via timeout */
}

/* Modifier for Severe Glitch */
.glitch-severe {
    /* Combines multiple effects - applied by JS */
    animation: text-glitch-anim 0.3s linear 1, flicker 0.1s linear 4;
}
.glitch-severe.glitch-blocky-effect { /* If severe is also blocky */
     animation: blocky-anim 0.6s steps(5, end) forwards, flicker 0.15s linear 3;
}
.glitch-severe::before { /* Make scanlines more prominent on severe */
    /* This targets the ::before of the element with .glitch-severe,
       it might conflict if the effect itself uses ::before like scanline/blocky */
    /* Instead, handle severity changes directly in the effect styles if needed */
}
.glitch-severe.glitch-scanline-effect::before {
    opacity: 0.8;
    background-size: 100% 3px;
    animation-duration: 0.05s;
}

/* Invert Effect */
@keyframes invert-anim {
  0%, 100% { filter: invert(0%); }
  50% { filter: invert(100%); }
}
.glitch-invert-effect {
  animation: invert-anim 0.3s linear 1;
  /* Background/color adjusted dynamically if needed, or handled by invert */
}
.glitch-invert-effect.glitching { /* Ensure text color changes during glitch */
   /* Invert filter handles colors */
}

/* Static/Noise Effect */
@keyframes noise-anim {
 0% { transform: translate(0, 0); }
 10% { transform: translate(-1px, -1px); }
 20% { transform: translate(1px, 1px); }
 30% { transform: translate(1px, -1px); }
 40% { transform: translate(-1px, 1px); }
 50% { transform: translate(-1px, -1px); }
 60% { transform: translate(1px, 1px); }
 70% { transform: translate(1px, -1px); }
 80% { transform: translate(-1px, 1px); }
 90% { transform: translate(-1px, -1px); }
 100% { transform: translate(0, 0); }
}
.glitch-noise-effect {
    position: relative;
    overflow: hidden; /* Contain the noise */
}
.glitch-noise-effect::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    /* Basic noise pattern using CSS gradient */
    background: linear-gradient(rgba(128,128,128,0.2) 50%, transparent 50%),
                linear-gradient(90deg, rgba(128,128,128,0.2) 50%, transparent 50%);
    background-size: 3px 3px; /* Size of noise pixels */
    animation: noise-anim 0.1s steps(2, end) infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 6; /* High z-index */
}

/* Text Scramble Style Placeholder */
.glitch-scramble-effect {
  letter-spacing: 1px;
  font-family: monospace;
  /* Text color handled by JS or base glitching class */
  /*color: var(--accent-primary);  Make scrambled text stand out */
}

/* Permanent Glitch Styling */
.glitch-permanent {
   /* color: #ff8a8a !important; */ /* Persistent reddish tint */
    cursor: default !important; /* Indicate non-interactivity */
    /* Maybe a subtle constant flicker */
    /* animation: flicker 3s linear infinite alternate !important; */
}
/* Make permanent glitches retain their effect type visually, but maybe toned down */
.glitch-permanent.glitch-blocky-effect {
    /* Keep blocky animation or pause it? */
    /* animation-play-state: paused; */
}
.glitch-permanent.glitch-blocky-effect::before,
.glitch-permanent.glitch-blocky-effect::after {
    /* animation-play-state: paused; */
    text-shadow: -1px 0 rgba(255,0,255,0.5), 1px 0 rgba(0,255,255,0.5); /* Faded shadows */
}
.glitch-permanent.glitch-noise-effect::before {
     opacity: 0.2; /* Tone down permanent noise */
     /* animation-play-state: paused; */
}
.glitch-permanent.glitch-scanline-effect::before {
    opacity: 0.15;
    /* animation-play-state: paused; */
}
.glitch-permanent.glitch-invert-effect {
     filter: invert(20%); /* Slight persistent invert */
}
.glitch-permanent.glitch-scramble-effect {
    font-family: var(--font-primary); /* Revert font */
    letter-spacing: normal;
    /* Keep reddish color from .glitch-permanent */
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .safety-ethics-content { flex-direction: column; }
    .about-visual { flex-basis: 250px; }
    .footer-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    header nav.container { height: 70px; }
    .logo { font-size: 1.5rem; }
    .logo-full { display: none; }

    .mobile-nav-toggle { display: block; }
    .primary-navigation {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        margin: 0;
        gap: 1.5em;
        background-color: rgba(17, 34, 64, 0.98);
        backdrop-filter: blur(1rem);
        transform: translateX(100%);
        transition: transform var(--transition-speed) ease-out;
        z-index: 999;
    }
    .primary-navigation[data-visible="true"] { transform: translateX(0%); }
    .primary-navigation li { margin-left: 0; text-align: center; }
    .primary-navigation li a { font-size: 1.1rem; padding: 10px 0; }
    .nav-cta { margin-top: 15px; padding: 12px 25px; width: 80%; }

    .hero-section { min-height: 500px; height: auto; padding: 120px 0 60px; }
    .about-content { flex-direction: column; }
    .about-visual { flex: 0 0 auto; max-width: 250px; margin: 30px auto 0 auto; }
    .benefits-container, .plans-container, .use-cases-container { grid-template-columns: 1fr; }
    .content-section { padding: 60px 0; }
    blockquote { font-size: 1.1rem; padding-left: 30px; padding-right: 30px; }
    blockquote::before { font-size: 3rem; left: 5px; }
    blockquote::after { font-size: 3rem; right: 5px; bottom: -0.3em;}
    .carousel-controls button { width: 35px; height: 35px; font-size: 1.2rem; }
    .footer-container { text-align: center; }
    .footer-nav, .social-links { justify-content: center; }
    .footer-legal { margin-top: 10px; }

    /* Reduce glitch intensity slightly on mobile? */
    .glitch-blocky-effect::before,
    .glitch-blocky-effect::after {
        /* display: none; */ /* Optionally disable complex blocky on mobile */
    }
}