/* ==========================================================================
   Check Point x Netpoleon - stylesheet
   Palette and dark theme are unchanged from the original single-file build;
   every colour below is the same value it was, just named once instead of
   being repeated inline ~40 times.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --cp-magenta: #E5006D;
    --pink: #ff69b4;
    --orange: #ff8c00;

    /* Surfaces */
    --bg-1: #1a1a2e;
    --bg-2: #16213e;
    --bg-3: #0f0f23;
    --nav-bg: rgba(26, 26, 46, 0.95);
    --nav-bg-solid: rgba(26, 26, 46, 0.98);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 105, 180, 0.1);
    --border: rgba(255, 105, 180, 0.2);

    /* Text */
    --text: #ffffff;
    --text-muted: #e0e0e0;
    --text-dim: #888888;

    /* Glows and shadows (same rgba values as the original) */
    --glow-magenta: rgba(229, 0, 109, 0.5);
    --glow-magenta-strong: rgba(229, 0, 109, 0.8);
    --glow-pink: rgba(255, 105, 180, 0.5);
    --shadow-pink-sm: 0 4px 15px rgba(255, 105, 180, 0.4);
    --shadow-pink-md: 0 8px 25px rgba(255, 105, 180, 0.6);
    --shadow-card: 0 10px 30px rgba(255, 105, 180, 0.3);
    --shadow-card-soft: 0 10px 25px rgba(255, 105, 180, 0.2);

    /* Gradients */
    --grad-brand: linear-gradient(45deg, var(--pink), var(--orange));
    --grad-underline: linear-gradient(90deg, var(--pink), var(--orange));

    /* Spacing scale */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.5rem;
    --sp-6: 2rem;
    --sp-7: 3rem;
    --sp-8: 5rem;

    /* Shape */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;

    /* Motion */
    --dur: 0.3s;
    --ease: ease;

    /* Layout */
    --max-w: 1200px;
    --nav-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Stops anchor targets landing underneath the fixed navbar. */
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    background-color: var(--bg-3);
    background-image: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    line-height: 1.25;
    text-wrap: balance;
}

::selection {
    background: var(--cp-magenta);
    color: var(--text);
}

/* Keyboard focus is visible everywhere; mouse clicks stay clean. */
:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -100px;
    z-index: 1100;
    padding: var(--sp-3) var(--sp-5);
    background: var(--cp-magenta);
    color: var(--text);
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--radius-sm);
    transition: top var(--dur) var(--ease);
}

.skip-link:focus {
    top: var(--sp-4);
}

/* Injected by main.js; IntersectionObserver watches it instead of running an
   unthrottled scroll listener for the navbar's solid state. */
.scroll-sentinel {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 50px;
    pointer-events: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--sp-4) var(--sp-6);
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

nav.scrolled {
    background: var(--nav-bg-solid);
    box-shadow: 0 2px 20px var(--border);
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
}

.brand {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}

.brand .brand-cp {
    color: var(--cp-magenta);
    text-shadow: 0 0 10px var(--glow-magenta);
}

.brand .brand-x {
    color: var(--text);
}

.brand .brand-np {
    color: var(--orange);
    text-shadow: 0 0 10px var(--glow-pink);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--sp-6);
    margin: 0;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--dur) var(--ease), text-shadow var(--dur) var(--ease);
    position: relative;
    display: inline-block;
    padding: var(--sp-1) 0;
}

.nav-menu a:hover {
    color: var(--orange);
    text-shadow: 0 0 8px rgba(255, 140, 0, 0.8);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-underline);
    transition: width var(--dur) var(--ease);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
    width: 100%;
}

/* Hamburger -- hidden on desktop, the only nav on small screens */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    place-items: center;
    gap: 5px;
    align-content: center;
    transition: border-color var(--dur) var(--ease);
}

.nav-toggle:hover {
    border-color: var(--pink);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + var(--sp-6)) var(--sp-6) var(--sp-8);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ff69b4" opacity="0.1" points="0,0 1000,300 1000,1000 0,700"/><polygon fill="%23ff8c00" opacity="0.1" points="0,300 1000,0 1000,400 0,1000"/></svg>');
    animation: float 6s ease-in-out infinite;
}

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

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

.hero-title {
    font-size: clamp(2.25rem, 6vw, 4rem);
    margin-bottom: var(--sp-4);
    animation: slideInDown 1s ease-out;
}

.hero-title .brand-cp {
    color: var(--cp-magenta);
    text-shadow: 0 0 20px var(--glow-magenta-strong);
}

.hero-title .brand-np {
    color: var(--orange);
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    color: var(--orange);
    margin-bottom: var(--sp-6);
    animation: slideInUp 1s ease-out 0.5s backwards;
    /* Reserves the line while the typing effect runs, so nothing jumps. */
    min-height: 1.6em;
}

.hero-description {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    margin-bottom: var(--sp-7);
    opacity: 0.9;
    animation: fadeIn 1s ease-out 1s backwards;
    max-width: 60ch;
    margin-inline: auto;
}

.cta-button {
    position: relative;
    display: inline-block;
    padding: var(--sp-4) var(--sp-6);
    background: var(--grad-brand);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    box-shadow: var(--shadow-pink-sm);
    /* `backwards`, not `both`: a filled animation keeps applying its final
       transform, which is what stopped the hover lift from ever showing. */
    animation: slideInUp 1s ease-out 1.5s backwards;
}

/* The pulse lives on a pseudo-element so it animates its own box-shadow and
   leaves the button's hover shadow and transform alone. Replaces the old
   setInterval, which wrote an inline style that permanently beat :hover. */
.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    animation: ctaPulse 4s ease-in-out 2.5s infinite;
    transition: opacity var(--dur) var(--ease);
}

.cta-button:hover,
.cta-button:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pink-md);
}

.cta-button:hover::after,
.cta-button:focus-visible::after {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   5. Animations
   -------------------------------------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

@keyframes slideInDown {
    from { transform: translateY(-100px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

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

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4); }
    50%      { box-shadow: 0 8px 25px rgba(255, 105, 180, 0.8); }
}

/* Reveal-on-scroll, driven by IntersectionObserver in main.js. The original
   observed whole grids, so every card in a section popped at once; these are
   per-card with a short stagger.

   Two deliberate choices here:
   - An animation, not a transition. Cards already own a `transition`
     shorthand, and a second one on .reveal would simply replace it.
   - The keyframes move `translate`, not `transform`. A filled animation keeps
     applying its final value, so animating `transform` would permanently beat
     the `:hover` lift -- the same trap the CTA button fell into.
   Gated on .js so the content is never invisible if the script fails. */
.js .reveal {
    opacity: 0;
}

/* opacity:1 is declared, not left to the animation's fill. If animations are
   throttled, disabled or interrupted, the content is still visible -- the
   animation only supplies the entrance. `backwards` covers the stagger delay
   so nothing flashes in before its turn. */
.js .reveal.is-visible {
    opacity: 1;
    animation: revealUp 0.6s var(--ease) backwards;
}

@keyframes revealUp {
    from { opacity: 0; translate: 0 30px; }
    to   { opacity: 1; translate: 0 0; }
}

.reveal:nth-child(2).is-visible  { animation-delay:  70ms; }
.reveal:nth-child(3).is-visible  { animation-delay: 140ms; }
.reveal:nth-child(4).is-visible  { animation-delay: 210ms; }
.reveal:nth-child(5).is-visible  { animation-delay: 280ms; }
.reveal:nth-child(6).is-visible  { animation-delay:  70ms; }
.reveal:nth-child(7).is-visible  { animation-delay: 140ms; }
.reveal:nth-child(8).is-visible  { animation-delay: 210ms; }
.reveal:nth-child(9).is-visible  { animation-delay: 280ms; }
.reveal:nth-child(10).is-visible { animation-delay: 350ms; }

/* --------------------------------------------------------------------------
   6. Section shell
   -------------------------------------------------------------------------- */
.section {
    padding: var(--sp-8) var(--sp-6);
    max-width: var(--max-w);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    margin-bottom: var(--sp-7);
    color: var(--orange);
    text-shadow: 0 0 10px var(--glow-pink);
    letter-spacing: 0.01em;
}

.panel {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: clamp(var(--sp-5), 4vw, var(--sp-7));
    margin: var(--sp-6) 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

/* Shared card treatment -- one definition instead of four near-copies. */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                background var(--dur) var(--ease);
}

/* --------------------------------------------------------------------------
   7. About
   -------------------------------------------------------------------------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    display: grid;
    gap: var(--sp-4);
}

.about-features {
    display: grid;
    gap: var(--sp-4);
    align-content: start;
}

.feature-item {
    padding: var(--sp-4) var(--sp-5);
    background: linear-gradient(45deg, rgba(255, 105, 180, 0.1), rgba(255, 140, 0, 0.1));
    border-radius: var(--radius-md);
    border-left: 4px solid var(--pink);
}

.feature-item h3 {
    font-size: 1.05rem;
    margin-bottom: var(--sp-1);
    color: var(--text);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   8. Solutions
   -------------------------------------------------------------------------- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}

.solution-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--pink);
    background: var(--surface-hover);
}

/* A fixed-height media strip. The original forced these wide banners into a
   1.5in x 2in portrait box, so a 2:1 image rendered small with ~120px of dead
   space above and below it. Same images, now sized to the space they have. */
.solution-media {
    --media-h: 112px;
    height: var(--media-h);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-5);
}

/* max-height in px, not 100%: a percentage would resolve against the track
   this image itself sizes, so it never actually constrains anything. */
.solution-media img {
    max-width: 100%;
    max-height: var(--media-h);
    width: auto;
    height: auto;
    object-fit: contain;
}

.solution-title {
    font-size: 1.3rem;
    color: var(--pink);
    margin-bottom: var(--sp-4);
}

.solution-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   9. Team
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}

.team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-card-soft);
}

.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto var(--sp-4);
    background: var(--grad-brand);
    overflow: hidden;
    flex: none;
}

.team-photo img {
    width: 100%;
    height: 100%;
    /* Was height:auto, which let the 1024x1536 portraits overflow the circle
       and left the near-square ones short of filling it. */
    object-fit: cover;
    border-radius: 50%;
}

.team-name {
    font-size: 1.2rem;
    color: var(--cp-magenta);
    margin-bottom: var(--sp-2);
}

.team-role {
    color: var(--orange);
    font-weight: bold;
    margin-bottom: var(--sp-4);
    font-size: 0.95rem;
}

.team-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. Feedback
   -------------------------------------------------------------------------- */
.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}

.feedback-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: var(--sp-7);
}

.feedback-card:hover {
    box-shadow: var(--shadow-card-soft);
}

/* Alternating tilt -- was three JS mouseenter/mouseleave handlers writing
   inline transforms. */
.feedback-card:nth-child(odd):hover  { transform: rotate(1deg) scale(1.02); }
.feedback-card:nth-child(even):hover { transform: rotate(-1deg) scale(1.02); }

.feedback-card::before {
    content: '"';
    position: absolute;
    top: 0;
    left: var(--sp-5);
    font-size: 4rem;
    line-height: 1;
    color: var(--pink);
    opacity: 0.3;
}

.feedback-text {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: var(--sp-5);
    line-height: 1.6;
}

/* Pins every author block to the card bottom so they line up across a row. */
.feedback-author {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-top: auto;
}

.feedback-avatar {
    width: 50px;
    height: 50px;
    flex: none;
    border-radius: 50%;
    background: var(--grad-brand);
    display: grid;
    place-items: center;
    font-weight: bold;
}

.feedback-info h4 {
    color: var(--pink);
    margin-bottom: var(--sp-1);
}

.feedback-info p {
    color: var(--orange);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   11. Contact
   -------------------------------------------------------------------------- */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-7);
}

.contact-info {
    color: var(--text-muted);
}

.contact-info h3 {
    color: var(--pink);
    margin-bottom: var(--sp-5);
}

.contact-list {
    list-style: none;
    display: grid;
    gap: var(--sp-5);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.contact-icon {
    width: 40px;
    height: 40px;
    flex: none;
    background: var(--grad-brand);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.contact-item a:hover {
    color: var(--orange);
    border-bottom-color: var(--orange);
}

.contact-form {
    display: grid;
    gap: var(--sp-4);
    align-content: start;
}

.form-group {
    display: grid;
    gap: var(--sp-2);
}

.form-group label {
    color: var(--pink);
    font-weight: bold;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid rgba(255, 105, 180, 0.3);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.submit-btn {
    background: var(--grad-brand);
    color: var(--text);
    padding: var(--sp-4) var(--sp-6);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    justify-self: start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-pink-sm);
}

/* Replaces the alert() the form used to fire. */
.form-status {
    min-height: 1.5em;
    font-size: 0.95rem;
    color: var(--orange);
}

.form-status[data-state="error"] {
    color: var(--pink);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--nav-bg);
    padding: var(--sp-7) var(--sp-6) var(--sp-4);
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: var(--sp-6);
}

.footer-content {
    max-width: var(--max-w);
    margin: 0 auto var(--sp-6);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-6);
    text-align: left;
}

.footer-section h3 {
    color: var(--pink);
    margin-bottom: var(--sp-4);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: var(--sp-2);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--dur) var(--ease);
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: var(--sp-4);
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   13. Chatbot
   -------------------------------------------------------------------------- */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    background: var(--grad-brand);
    border: none;
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-pink-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

.chatbot-panel {
    display: none;
    width: 350px;
    height: 500px;
    position: absolute;
    bottom: 70px;
    right: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: var(--bg-1);
}

.chatbot-panel.is-open {
    display: block;
}

.chatbot-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-toggle {
        display: grid;
    }

    .brand {
        font-size: 1.35rem;
    }

    /* The original simply hid the menu here, leaving phones with no navigation
       at all. It is now a panel the hamburger opens. */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--nav-bg-solid);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        padding: var(--sp-2) var(--sp-6) var(--sp-5);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu li + li {
        border-top: 1px solid var(--border);
    }

    .nav-menu a {
        display: block;
        padding: var(--sp-4) 0;
    }

    .nav-menu a::after {
        display: none;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--sp-7) var(--sp-4);
    }

    .hero {
        padding-inline: var(--sp-4);
    }

    .chatbot-panel {
        width: min(320px, calc(100vw - 40px));
        height: 440px;
    }

    footer {
        padding-inline: var(--sp-4);
    }
}

@media (max-width: 420px) {
    .solution-media {
        --media-h: 92px;
    }

    .submit-btn {
        justify-self: stretch;
    }
}

/* --------------------------------------------------------------------------
   15. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        /* Without this, entrance animations that use `backwards` fill sit on
           their `from` keyframe for the length of the delay -- the CTA would
           park 100px low for 1.5s before snapping into place. */
        animation-delay: -1ms !important;
        transition-duration: 0.01ms !important;
    }

    .js .reveal,
    .js .reveal.is-visible {
        opacity: 1;
        translate: none;
        animation: none;
    }

    .hero::before {
        animation: none;
    }
}
