/* ============================================
   CHECKPOINT - Estilos con paleta morada/púrpura
   Plataforma gamer con IA
   ============================================ */

/* ====== Base & Theme ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Checkpoint - Morados y Púrpuras */
    --purple-dark: #6a0dad;
    --purple-medium: #9d4edd;
    --purple-light: #c77dff;
    --purple-lighter: #e0aaff;
    --accent-cyan: #4ecdc4;
    --accent-pink: #ff6b6b;

    /* Backgrounds */
    --bg-dark: #1a1a2e;
    --bg-medium: #16213e;
    --bg-light: #0f3460;
    --bg-card: rgba(30, 30, 60, 0.8);

    /* Text */
    --text-white: #111827;
    --text-light: #374151;
    --text-muted: #6b7280;

    /* Effects */
    --radius: 15px;
    --shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    --shadow-hover: 0 20px 40px rgba(157, 78, 221, 0.4);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #111827;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 100vh;
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

/* ====== Header / Nav ====== */
body.nav-open {
    overflow: hidden;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.site-nav {
    max-width: 1200px;
    min-height: 72px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-container,
.logo-container a {
    display: inline-flex;
    align-items: center;
}

.logo-container img {
    height: 44px;
    object-fit: contain;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
}

.mobile-menu-brand {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links a,
.nav-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a {
    padding: 0 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: #ffffff;
    outline: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 999px;
    background: var(--purple-medium);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-item--dropdown {
    position: relative;
    min-width: 168px;
}

.nav-item--dropdown > a {
    gap: 0.35rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
}

.nav-dropdown-icon {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-item--dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    list-style: none;
    z-index: 200;
}

.nav-dropdown__inner {
    background: #070b12;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid var(--purple-medium);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-item--dropdown.open .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-dropdown li:last-child {
    border-bottom: none;
}

.nav-dropdown li a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    min-height: unset;
    border: 0;
}

.nav-dropdown li a::after {
    display: none;
}

.nav-dropdown li a:hover {
    color: #fff;
    background: rgba(157, 78, 221, 0.15);
}

@media (max-width: 860px) {
    .nav-dropdown,
    .nav-item--dropdown.open .nav-dropdown {
        display: none !important;
    }

    .nav-dropdown-icon {
        display: none !important;
    }
}

.nav-cta {
    padding: 0 1.05rem;
    color: #ffffff;
    background: var(--purple-dark);
    border: 1px solid transparent;
    box-shadow: 0 4px 16px rgba(106, 13, 173, 0.35);
    font-weight: 800;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-1px);
    background: var(--purple-medium);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(157, 78, 221, 0.5);
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1003;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    display: block;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====== Mobile nav panel ====== */
@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: fixed;
        inset: 0;
        z-index: 1001;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1rem;
        padding: 4.5rem 1.5rem 1.5rem;
        background: #070b12;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.22s ease, transform 0.28s ease, visibility 0.28s ease;
        overflow-y: auto;
    }

    .site-header.menu-open .nav-panel {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(157, 78, 221, 0.2);
    }

    .mobile-menu-brand img {
        width: min(140px, 44vw);
        height: auto;
        object-fit: contain;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .nav-item--dropdown {
        min-width: 0;
    }

    .nav-links a {
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        border-radius: 0;
        font-size: 1.04rem;
        padding: 0 0 0.5rem;
        color: rgba(255, 255, 255, 0.86);
        border-bottom: 1px solid rgba(157, 78, 221, 0.15);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        color: #fff;
        text-decoration: underline;
        text-decoration-color: var(--purple-light);
        text-decoration-thickness: 2px;
        text-underline-offset: 6px;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: #fff;
        background: transparent;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        border-radius: 4px;
        font-size: 1.02rem;
        margin-top: 0.5rem;
    }
}

/* ====== Section / Headings ====== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

h2 {
    text-align: center;
    margin-bottom: 3.5rem;
    font-size: 2.25rem;
    color: var(--text-white);
}

/* ====== Hero ====== */
.hero {
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    padding: 3.65rem 1.5rem 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: #070b12;
    animation: heroPaneUp 0.85s ease both;
}

.hero-pane {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(48vw, 680px);
    z-index: -3;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    background: #070707;
}

.hero-pane__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transform: translateY(-1.1rem);
}

.hero-content > * {
    max-width: 560px;
}

.hero h1 {
    font-size: clamp(1.85rem, 3.75vw, 3rem);
    margin-bottom: 0;
    color: #fff;
    font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .hero-subtitle {
    color: var(--purple-medium);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    max-width: 520px;
    margin: 1.6rem 0 0;
    animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes heroPaneUp {
    from {
        transform: translateY(32px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(45deg, var(--purple-dark), var(--purple-medium));
    box-shadow: 0 8px 28px rgba(106, 13, 173, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 2px solid rgba(157, 78, 221, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(45deg, var(--purple-medium), var(--purple-light));
    box-shadow: 0 12px 32px rgba(157, 78, 221, 0.5);
}

/* ====== Section Headers ====== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-lead {
    max-width: 780px;
    margin: 0.75rem auto 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ====== Features Grid ====== */
.features-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.25rem 0;
}

.feature-media {
    width: 100%;
}

.feature-media img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.feature-content h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin: 0;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .feature-item:nth-child(even) {
        grid-template-columns: 1fr 280px;
    }

    .feature-item:nth-child(even) .feature-media {
        order: 2;
    }

    .feature-item:nth-child(even) .feature-content {
        text-align: right;
    }
}

/* ====== Cards Grid (estilo editorial, sin paneles) ====== */
.cards-grid {
    display: grid;
    gap: 3rem 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.card-icon {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--purple-medium);
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}

.card h3 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ====== GLaDOS Section ====== */
.glados-avatar {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
}

.glados-example {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    padding: 1rem 0.5rem;
    border-radius: 18px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    width: fit-content;
    max-width: 85%;
    margin-top: 0.75rem;
}

.chat-bubble:first-child {
    margin-top: 0;
}

/* Contenedor que reserva el alto de la respuesta desde el inicio */
.chat-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0.75rem;
}

.chat-slot .chat-bubble {
    margin-top: 0;
}

.chat-bubble.visible {
    animation: chatAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--purple-medium), var(--purple-light));
    color: #ffffff;
    text-align: right;
    align-self: flex-end;
    max-width: 75%;
}

.chat-bubble.glados {
    background: #f3f4f6;
    border: 1px solid rgba(17, 24, 39, 0.1);
    color: var(--text-light);
    align-self: flex-start;
    max-width: 85%;
}

.chat-bubble.typing-bubble {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    max-width: 100px;
    padding: 0.8rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-bubble.typing-bubble:not(.visible) {
    display: none !important;
}

.chat-bubble p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--purple-medium);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
    30% { transform: translateY(-10px); opacity: 1; }
}

@keyframes chatAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ====== Premium Section ====== */
.premium-notice {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.premium-notice i {
    color: var(--purple-medium);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.premium-notice p {
    color: var(--text-light);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

/* ====== Contact Section ====== */
#contacto {
    margin-top: 3rem;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: -0.5rem 0 1.25rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-white);
    background: linear-gradient(45deg, var(--purple-dark), var(--purple-medium));
    border: 2px solid rgba(157, 78, 221, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border-radius: 10px;
}

.btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(45deg, var(--purple-medium), var(--purple-light));
    box-shadow: 0 12px 26px rgba(157, 78, 221, 0.4);
}

.btn-contact {
    min-width: 160px;
    text-align: center;
}

.btn-whatsapp {
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
}

.btn-whatsapp i {
    font-size: 1.2rem;
    line-height: 0;
}

.contact-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(12, 1fr);
}

.contact-card {
    grid-column: span 12;
    position: relative;
}

.map-card .map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(157, 78, 221, 0.4);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (min-width: 900px) {
    .contact-card:nth-child(1) {
        grid-column: span 4;
    }

    .contact-card:nth-child(2) {
        grid-column: span 5;
    }

    .contact-card:nth-child(3) {
        grid-column: span 3;
    }
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.contact-list a {
    color: var(--text-muted);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--purple-light);
}

.contact-value {
    color: var(--text-muted);
}

.mini-copy {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
}

.form-row label {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-row input,
.form-row textarea {
    background: rgba(30, 30, 60, 0.8);
    color: var(--text-white);
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    resize: none;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--purple-medium);
    box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.2);
}

.error {
    color: var(--accent-pink);
    font-size: 0.85rem;
    min-height: 1.1em;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.form-note {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.btn-submit {
    border-radius: 10px;
}

/* ====== Footer ====== */
footer {
    background: #111827;
    border-top: 1px solid rgba(157, 78, 221, 0.18);
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer-section h3 {
    color: var(--purple-light);
    margin-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    display: block;
    margin: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--purple-light);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    h2 {
        font-size: 2rem;
    }

}

@media (min-width: 768px) and (max-width: 900px) {
    .feature-item {
        grid-template-columns: 220px 1fr !important;
    }

    .feature-item:nth-child(even) {
        grid-template-columns: 1fr 220px !important;
    }
}

@media (max-width: 700px) {
    section, .content-section {
        padding: 4rem 1rem;
    }

    .hero {
        min-height: calc(100vh - 72px);
        min-height: calc(100svh - 72px);
        padding: 0 1.25rem 3.25rem;
        margin-bottom: 1rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 1.5rem;
        text-align: center;
        background: #070707;
    }

    .hero-content {
        transform: translateY(0);
        display: grid;
        justify-items: center;
        position: relative;
        z-index: 1;
    }

    /* Línea divisoria degradada entre imagen y texto */
    .hero-content::before {
        content: "";
        width: 76px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, var(--purple-medium), var(--purple-light), var(--purple-medium), transparent);
        margin-bottom: 1.4rem;
        animation: fadeInUp 0.8s ease 0.15s both;
    }

    .hero-content > * {
        max-width: 30rem;
    }

    .hero-pane {
        position: relative;
        inset: auto;
        width: calc(100% + 2.5rem);
        margin: 0 -1.25rem;
        aspect-ratio: 1200 / 630;
        clip-path: none;
        background: transparent;
        z-index: 1;
        animation: fadeInUp 0.8s ease 0.05s both;
    }

    #contacto {
        margin-top: 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 2.6rem);
        line-height: 1.02;
        margin-bottom: 0;
    }

    .hero .hero-subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-top: 1.1rem;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .card {
        text-align: center;
    }

    .card-icon {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .platform-icons {
        justify-content: center;
    }

    .feature-item {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 1rem 0;
        text-align: center;
    }

    .feature-media {
        max-width: 320px;
        margin: 0 auto;
    }

    .glados-example {
        padding: 1rem;
    }

    .chat-bubble {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        max-width: 90% !important;
        margin-top: 0.75rem;
    }

    .chat-bubble:first-child {
        margin-top: 0;
    }

    .chat-bubble.user {
        max-width: 85% !important;
    }

    .cta-button {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .hero {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .hero h1 {
        font-size: clamp(1.82rem, 11vw, 2.2rem);
    }

    .btn {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .glados-example {
        padding: 0.75rem;
    }

    .chat-bubble {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
        border-radius: 14px;
        margin-top: 0.75rem;
    }

    .chat-bubble:first-child {
        margin-top: 0;
    }

    .chat-bubble.typing-bubble {
        padding: 0.65rem 1rem;
    }

    .typing-indicator span {
        width: 8px;
        height: 8px;
    }
}