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

body {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

.desktop {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    padding: 80px 40px 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    background: linear-gradient(180deg, #F45454 0%, #C4374D 25%, #8A2E47 50%, #472143 75%, #1E1E3D 100%);
    overflow: hidden;
}

.header {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 999;
    transition: transform 1.5s ease;
}

.header.move-up {
    transform: translateY(-40px);
}

.stack-outer {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 5;
}

.stack-inner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

.frame {
    position: relative;
    width: 1px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(153, 238, 255, 1);
}

.title {
    position: relative;
    max-width: 600px;
    font-size: 82px;
    line-height: 1;
    font-weight: bold;
    background: radial-gradient(71% 100% at 50% 149.4%, rgb(233, 250, 0) 0%, rgb(255, 255, 255) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.subtitle {
    position: relative;
    width: 100%;
    max-width: 540px;
    font-size: 24px;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
    opacity: 1;
    margin-top: 10px;
}

.cta-button {
    margin-top: 40px;
    padding: 12px 28px;
    background-color: #0d0d18;
    color: #fcee0a;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 8px;
    border: 1px solid #fcee0a;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(252, 238, 10, 0.3);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    z-index: 100;
}

.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 238, 10, 0.3), transparent);
    transition: left 0.5s ease-in-out;
    z-index: -1;
}

.cta-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #fcee0a, #00f0ff, #ff0055);
    z-index: 1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-in-out;
}

.cta-button:hover {
    color: #ffffff;
    border-color: #ff0055;
    background-color: #1b1b4a;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5), 0 0 40px rgba(255, 0, 85, 0.3);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
    transform: translateY(-2px);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover::after {
    transform: scaleX(1);
}

.cta-button:active {
    transform: translateY(2px);
    box-shadow: 0 0 8px rgba(255, 0, 85, 0.5);
}

.cta-button span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

@keyframes glitch {
    0% { 
        text-shadow: 0.05em 0 0 rgba(255, 0, 85, 0.75), -0.05em -0.025em 0 rgba(0, 240, 255, 0.75);
        transform: translate(0px, 0);
    }
    14% { 
        text-shadow: 0.05em 0 0 rgba(255, 0, 85, 0.75), -0.05em -0.025em 0 rgba(0, 240, 255, 0.75);
        transform: translate(0px, 0);
    }
    15% { 
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 85, 0.75), 0.025em 0.025em 0 rgba(0, 240, 255, 0.75);
        transform: translate(-1px, 1px);
    }
    49% { 
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 85, 0.75), 0.025em 0.025em 0 rgba(0, 240, 255, 0.75);
        transform: translate(-1px, 1px);
    }
    50% { 
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 85, 0.75), 0.05em 0 0 rgba(0, 240, 255, 0.75);
        transform: translate(1px, 0);
    }
    99% { 
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 85, 0.75), 0.05em 0 0 rgba(0, 240, 255, 0.75);
        transform: translate(1px, 0);
    }
    100% { 
        text-shadow: -0.025em 0 0 rgba(255, 0, 85, 0.75), -0.025em -0.025em 0 rgba(0, 240, 255, 0.75);
        transform: translate(0px, 0);
    }
}

.cta-button:hover span {
    animation: glitch 1s linear infinite;
}

.prompt-container {
    position: relative;
    width: 100%;
    max-width: 670px;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    display: none;
}

.prompt-box {
    position: relative;
    width: 100%;
    height: 56px;
    background: rgba(32, 33, 35, 0.9);
    border: 1px solid rgba(86, 88, 105, 0.3);
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.prompt-box input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 16px;
    padding: 0 12px;
    font-family: inherit;
}

.prompt-box input::placeholder {
    color: rgba(142, 142, 160, 0.8);
}

.prompt-icon, .prompt-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 224px;
    background: linear-gradient(to bottom, rgba(30, 30, 61, 0) 0%, rgba(10, 10, 20, 1) 100%);
    z-index: 1;
}

.particles-section {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#particles-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.vignette {
    position: absolute;
    top: -3px;
    bottom: -3px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.67) 67%, rgba(0, 0, 0, 1) 100%);
    overflow: hidden;
    z-index: 1;
}

/* Circle container styles */
.circles-container {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 1574px;
    height: 1574px;
    transform: translate(-50%, -40%);
    opacity: 0.5;
    overflow: visible;
    mix-blend-mode: overlay;
    z-index: 0;
    animation: appear 3s cubic-bezier(0.44, 0, 0.56, 1) forwards;
}

@keyframes appear {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(1.3);
    }
    100% {
        opacity: 0.5;
        transform: translate(-50%, -40%) scale(1);
    }
}

@media (min-width: 1200px) {
    .circles-container {
        top: 80%;
    }
}

@media (max-width: 768px) {
    .circles-container {
        top: 65%;
        transform: translate(-50%, -35%);
    }
    
    @keyframes appear {
        0% {
            opacity: 0;
            transform: translate(-50%, -35%) scale(1.3);
        }
        100% {
            opacity: 0.5;
            transform: translate(-50%, -35%) scale(1);
        }
    }
}

/* Circle level 2a */
.circle-2a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 1574px;
    height: 1574px;
    border-radius: 100%;
    border: 1px dashed #FFFFFF;
    opacity: 0.5;
    overflow: visible;
    animation: rotate-ccw 80s linear infinite;
}

/* Circle level 2b */
.circle-2b {
    position: absolute;
    top: 100px;
    left: 100px;
    right: 100px;
    bottom: 100px;
    width: 1374px;
    height: 1374px;
    border-radius: 100%;
    border: 1px solid #FFFFFF;
    opacity: 1;
    overflow: visible;
    animation: rotate-cw 40s linear infinite;
}

/* Circle level 2c */
.circle-2c {
    position: absolute;
    top: 200px;
    left: 200px;
    right: 200px;
    bottom: 200px;
    width: 1174px;
    height: 1174px;
    border-radius: 100%;
    border: 1px dashed #FFFFFF;
    opacity: 1;
    overflow: visible;
    animation: rotate-ccw 100s linear infinite;
}

/* Circle level 2d */
.circle-2d {
    position: absolute;
    top: 300px;
    left: 300px;
    right: 300px;
    bottom: 300px;
    width: 974px;
    height: 974px;
    border-radius: 100%;
    border: 1px solid #FFFFFF;
    opacity: 1;
    overflow: visible;
    animation: rotate-cw 50s linear infinite;
}

/* Circle level 2e */
.circle-2e {
    position: absolute;
    top: 400px;
    left: 400px;
    right: 400px;
    bottom: 400px;
    width: 774px;
    height: 774px;
    border-radius: 100%;
    border: 1px dashed #FFFFFF;
    opacity: 1;
    overflow: visible;
    animation: rotate-ccw 80s linear infinite;
}

/* Circle level 2f */
.circle-2f {
    position: absolute;
    top: 500px;
    left: 500px;
    right: 500px;
    bottom: 500px;
    width: 574px;
    height: 574px;
    border-radius: 100%;
    border: 1px solid #FFFFFF;
    opacity: 1;
    overflow: visible;
    animation: rotate-cw 60s linear infinite;
}

/* Rotation animations */
@keyframes rotate-cw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-ccw {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Frame dots and small dots */
.frame-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    overflow: hidden;
}

.frame-dot-outer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    border: 1px solid #FFFFFF;
}

.frame-dot-inner {
    position: absolute;
    top: 7px;
    left: 7px;
    right: 7px;
    bottom: 7px;
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background-color: #FFFFFF;
}

.small-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 100%;
    background-color: #FFFFFF;
}

/* Circle 2b Frames and Dots */
.frame-1a {
    top: 1154px;
    left: 183px;
    bottom: 200px;
    right: 1171px;
}

.frame-1b {
    top: 447px;
    left: 1324px;
    bottom: 907px;
    right: 30px;
}

.dot-1c {
    top: 1161px;
    left: 1177px;
    bottom: 206px;
    right: 190px;
}

.dot-1d {
    top: 75px;
    left: 364px;
    bottom: 1292px;
    right: 1003px;
}

.dot-1e {
    top: 684px;
    left: -3px;
    bottom: 684px;
    right: 1370px;
}

/* Circle 2d Frames and Dots */
.frame-1f {
    top: 964px;
    left: 477px;
    bottom: -10px;
    right: 477px;
}

.frame-1g {
    top: 101px;
    left: 167px;
    bottom: 853px;
    right: 787px;
}

.dot-1h {
    top: 623px;
    left: 17px;
    bottom: 344px;
    right: 950px;
}

.dot-1i {
    top: 268px;
    left: 920px;
    bottom: 699px;
    right: 47px;
}

.dot-1j {
    top: 484px;
    left: 970px;
    bottom: 484px;
    right: -3px;
}

.dot-1k {
    top: -3px;
    left: 484px;
    bottom: 970px;
    right: 484px;
}

/* Circle 2f Frames and Dots */
.frame-1l {
    top: 70px;
    left: 80px;
    bottom: 484px;
    right: 474px;
}

.dot-1m {
    top: 487px;
    left: 486px;
    bottom: 80px;
    right: 81px;
}

.dot-1n {
    top: 83px;
    left: 489px;
    bottom: 484px;
    right: 78px;
}

.dot-1o {
    top: 284px;
    left: -3px;
    bottom: 284px;
    right: 570px;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 0 20px;
    }
    
    .title {
        font-size: 58px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .cta-button {
        font-size: 14px;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 46px;
    }

    .subtitle {
        font-size: 16px;
    }

    .cta-button {
        font-size: 14px;
        padding: 10px 24px;
    }
}

/* ========================================
   CHATPANE DEMO STYLES
   ======================================== */

.chatpane-demo {
    position: relative;
    width: 420px;
    max-width: calc(100% - 32px);
    margin-top: 40px;
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    box-shadow:
        0 0 40px rgba(252, 238, 10, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
}

.chatpane-demo.visible {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title Bar */
.demo-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 4px 12px;
}

.demo-tab-label {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.demo-titlebar-actions {
    display: flex;
    gap: 12px;
}

.demo-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    cursor: default;
}

/* Composer */
.demo-composer {
    padding: 12px;
    position: relative;
}

.demo-input-box {
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    min-height: 44px;
    position: relative;
}

.demo-input {
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    min-height: 20px;
}

.demo-input-placeholder {
    position: absolute;
    top: 12px;
    left: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    pointer-events: none;
}

.demo-input-placeholder.hidden {
    display: none;
}

.demo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.demo-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    background: rgba(80, 60, 120, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    color: #e0d0ff;
    font-size: 12px;
    font-weight: 500;
    cursor: default;
}

.demo-model-dropdown {
    background: rgba(40, 40, 60, 0.8);
    color: rgba(255, 255, 255, 0.7);
}

.demo-model-dropdown.selected {
    background: rgba(60, 60, 90, 0.9);
    color: #fff;
}

.demo-chevron {
    font-size: 10px;
    opacity: 0.6;
}

.demo-send {
    width: 32px;
    height: 32px;
    background: #fcee0a;
    border: none;
    border-radius: 8px;
    color: #0d0d18;
    font-size: 16px;
    font-weight: bold;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.demo-send.pulse {
    animation: sendPulse 0.3s ease;
}

@keyframes sendPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); box-shadow: 0 0 20px rgba(252, 238, 10, 0.5); }
}

/* Dropdown Menu */
.demo-dropdown-menu {
    position: absolute;
    left: 12px;
    top: 100px;
    background: rgba(30, 30, 50, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    z-index: 10;
}

.demo-dropdown-menu.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.demo-dropdown-item {
    padding: 8px 10px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    cursor: default;
    transition: background 0.15s ease;
}

.demo-dropdown-item.highlight {
    background: rgba(255, 255, 255, 0.1);
}

.demo-dropdown-item.selected {
    background: rgba(252, 238, 10, 0.2);
    color: #fcee0a;
}

/* Messages */
.demo-messages {
    padding: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
}

.demo-message.visible {
    animation: messageIn 0.3s ease forwards;
}

@keyframes messageIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-message.user {
    align-self: flex-end;
    background: rgba(100, 80, 150, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.demo-message.assistant {
    align-self: flex-start;
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.demo-typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 4px 0;
}

.demo-typing-indicator span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.demo-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Past Bar */
.demo-past-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* Animated Cursor */
.demo-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.5));
    transition: opacity 0.3s ease;
}

.demo-cursor.visible {
    opacity: 1;
}

/* ========================================
   RESPONSIVE: CHATPANE DEMO
   ======================================== */

@media (max-width: 1023px) {
    .header {
        margin-top: 100px;
    }

    .chatpane-demo {
        width: 380px;
    }
}

@media (max-width: 767px) {
    .header {
        margin-top: 80px;
    }

    .title {
        font-size: 42px;
    }

    .subtitle {
        font-size: 16px;
    }

    .chatpane-demo {
        width: 100%;
        max-width: none;
        margin: 30px 16px 0;
        border-radius: 10px;
    }

    .demo-input-box {
        padding: 10px;
        min-height: 40px;
    }

    .demo-input,
    .demo-input-placeholder {
        font-size: 13px;
    }

    .demo-message {
        font-size: 13px;
        padding: 8px 12px;
    }

    .demo-dropdown {
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .demo-model-dropdown span:first-child {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .demo-messages {
        min-height: 160px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 36px;
    }

    .chatpane-demo {
        margin: 24px 12px 0;
    }
}