
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0d14;
    color: #f5f5f7;
    font-family: Arial, sans-serif;
}

.navbar {
    height: 75px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #242633;
    background: #10121b;
}

.logo {
    font-size: 24px;
    font-weight: 900;
}

.logo span,
.hero h1 span {
    color: #9b72ff;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #a9a9b5;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: white;
}

.status {
    color: #65e6a3;
    font-size: 11px;
    font-weight: bold;
}

.hero {
    text-align: center;
    padding: 100px 20px 110px;
}

.tag {
    display: inline-block;
    border: 1px solid #533b8d;
    color: #b99cff;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 11px;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 76px);
    margin: 25px 0 15px;
    font-weight: 900;
}

.hero p,
.section-heading p,
.about p {
    color: #9293a3;
    line-height: 1.7;
}

.start-btn {
    display: inline-block;
    margin-top: 30px;
    background: #8155e9;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.start-btn:hover,
.run:hover {
    background: #7042db;
}

.playground {
    padding: 45px 5%;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2,
.about h2 {
    margin-bottom: 9px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button {
    cursor: pointer;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    padding: 11px 16px;
}

.secondary {
    background: #202231;
    color: white;
}

.run {
    background: #8155e9;
    color: white;
}

.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 470px;
    border: 1px solid #292b3b;
    border-radius: 12px;
    overflow: hidden;
    background: #11131d;
}

.editor-panel,
.preview-panel {
    min-width: 0;
}

.editor-panel {
    border-right: 1px solid #292b3b;
}

.tabs,
.preview-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    background: #191b28;
    border-bottom: 1px solid #292b3b;
}

.tab {
    background: transparent;
    color: #9293a3;
    height: 48px;
    border-radius: 0;
}

.tab.active {
    color: #b99cff;
    border-bottom: 2px solid #9b72ff;
}

.editor-area {
    position: relative;
    height: 420px;
    background: #1e1e1e;
}

.editor-container {
    position: absolute;
    inset: 0;
    visibility: hidden;
}

.editor-container.active {
    visibility: visible;
}

.preview-header {
    justify-content: space-between;
    color: #aaaabb;
    font-size: 11px;
    font-weight: bold;
    flex-wrap: wrap;
}

.preview-actions {
    display: flex;
    gap: 4px;
}

.size-btn {
    background: transparent;
    color: #9293a3;
    padding: 7px;
    font-size: 10px;
}

.size-btn.active {
    color: #b99cff;
    background: #29233c;
}

.preview-stage {
    height: 420px;
    background: #272a35;
    padding: 10px;
    display: flex;
    justify-content: center;
    overflow: auto;
}

.preview-stage iframe {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    border: none;
    background: white;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.preview-stage iframe.tablet {
    width: 768px;
    max-width: 100%;
}

.preview-stage iframe.mobile {
    width: 375px;
    max-width: 100%;
}

.console-panel {
    border: 1px solid #292b3b;
    border-radius: 10px;
    margin-top: 18px;
    background: #10121b;
    overflow: hidden;
}

.console-header {
    padding: 13px 17px;
    display: flex;
    justify-content: space-between;
    background: #191b28;
    border-bottom: 1px solid #292b3b;
    font-size: 11px;
    font-weight: bold;
}

.clear-btn {
    background: transparent;
    color: #aaaabb;
    padding: 0;
}

.console-output {
    min-height: 90px;
    max-height: 180px;
    overflow-y: auto;
    padding: 12px 17px;
    font: 12px/1.8 Consolas, monospace;
    color: #b8c5d8;
    overflow-wrap: anywhere;
}

.console-placeholder {
    color: #777987;
}

.console-line.error {
    color: #ff7777;
}

.console-line.warning {
    color: #f5c56c;
}

.about {
    text-align: center;
    padding: 85px 20px;
}

footer {
    text-align: center;
    padding: 25px;
    color: #777987;
    border-top: 1px solid #242633;
}

@media (max-width: 800px) {
    .navbar {
        padding: 0 4%;
    }

    nav {
        gap: 12px;
    }

    .status {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace {
        grid-template-columns: 1fr;
    }

    .editor-panel {
        border-right: none;
        border-bottom: 1px solid #292b3b;
    }

    .editor-area,
    .preview-stage {
        height: 350px;
    }

    .preview-header {
        padding: 8px;
    }
}
