
:root {
    --color-primary: #0b57d0;
    --color-secondary: #00639b;
    --color-success: #146c2e;
    --color-danger: #b3261e;
    --color-warning: #935a00;
    --color-purple: #6750a4;
    --color-text-main: #1f1f1f;
    --color-text-muted: #444746;
    --color-bg-main: #ffffff;
    --color-bg-alt: #f3f6fc;
    --color-border: #c7c7c7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 100px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Roboto', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s ease;
}


.material-icons {
    vertical-align: middle;
    font-size: 1.25rem;
}


.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
}

.brand-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.brand-logo span {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0842a0;
    box-shadow: var(--shadow-sm);
}

.btn-success {
    background-color: var(--color-success);
    color: white;
}

.btn-success:hover {
    background-color: #0f5223;
    box-shadow: var(--shadow-sm);
}

.btn-danger {
    background-color: var(--color-danger);
    color: white;
}

.btn-danger:hover {
    background-color: #8c1d18;
    box-shadow: var(--shadow-sm);
}

.btn-tonal {
    background-color: #d3e3fd;
    color: #041e49;
}

.btn-tonal:hover {
    background-color: #b4cff7;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #747775;
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: #f3f6fc;
}


.hero-section {
    position: relative;
    text-align: center;
    overflow: hidden;
    background-color: #fcfcfd;
    transition: background-color 0.3s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(162, 81, 227, 0.6) 0%, rgba(255, 105, 180, 0.4) 100%);
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: 20%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(19, 185, 253, 0.6) 0%, rgba(2, 86, 155, 0.5) 100%);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    animation: float 10s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    50% {
        transform: translate(30px, -40px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.hero-glass {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 100px 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-title {
    font-size: 4.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #000;
    transition: color 0.3s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}


.module-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-header {
    text-align: center;
    margin-bottom: 64px;
}

.module-eyebrow {
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.module-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #000;
    transition: color 0.3s ease;
}


.feature-split {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.feature-text {
    flex: 1;
}

.feature-media {
    flex: 1.2;
    background: #1e1e1e;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    
}

.code-window-header {
    background: #2d2d2d;
    padding: 12px 16px;
    border-bottom: 1px solid #444;
    display: flex;
    gap: 8px;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot:nth-child(1) {
    background: #ff5f56;
}

.window-dot:nth-child(2) {
    background: #ffbd2e;
}

.window-dot:nth-child(3) {
    background: #27c93f;
}

.code-split {
    display: flex;
    flex-direction: column;
}


.code-block-container {
    position: relative;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #333;
    max-height: 200px;
}

.code-block-container:last-child {
    border-bottom: none;
}

.code-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 0;
    background: #1e1e1e;
}

.code-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: #333;
    color: #fff;
    border-color: #666;
}

.code-content-scroll {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: auto;
    
    padding: 12px 20px 20px;
    width: 100%;
}


.code-content-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-content-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.code-content-scroll::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.code-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #666;
}

pre {
    margin: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
}


.hl-tag {
    color: #569cd6;
}

.hl-attr {
    color: #9cdcfe;
}

.hl-val {
    color: #ce9178;
}

.hl-class {
    color: #d7ba7d;
}

.hl-prop {
    color: #9cdcfe;
}

.hl-comment {
    color: #6a9955;
}


.material-result-container {
    padding: 32px;
    background: var(--color-bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.coppax-card {
    background-color: #f3f6fc;
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.coppax-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.coppax-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coppax-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f1f1f;
    margin: 0;
    transition: color 0.3s ease;
}

.coppax-card-text {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    color: #444746;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.coppax-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
}

.coppax-btn {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.coppax-btn-primary {
    background-color: #0b57d0;
    color: #ffffff;
}

.coppax-btn-primary:hover {
    background-color: #0842a0;
}

.coppax-btn-tonal {
    background-color: #d3e3fd;
    color: #041e49;
}

.coppax-btn-tonal:hover {
    background-color: #b4cff7;
}


.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.widget-card {
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.widget-card:hover {
    box-shadow: var(--shadow-md);
}

.widget-card h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-bg-alt);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s ease;
}


.material-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #747775;
    border-radius: 4px 4px 0 0;
    background: #f3f3f3;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 16px;
    border-bottom: 2px solid #444746;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.material-input:focus {
    border-bottom-color: var(--color-primary);
}

.chip-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.material-chip {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-border);
}

.chip-purple {
    background: #eaddff;
    color: #21005d;
    border: none;
}

.chip-green {
    background: #c4eed0;
    color: #072711;
    border: none;
}

.chip-red {
    background: #f9dedc;
    color: #410e0b;
    border: none;
}

.material-alert {
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.alert-warning {
    background: #ffefd1;
    color: #311c00;
}

.alert-info {
    background: #d3e3fd;
    color: #041e49;
}


.material-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.material-switch-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.material-switch {
    width: 52px;
    height: 32px;
    border-radius: 16px;
    position: relative;
    background-color: var(--color-primary);
    display: inline-block;
    cursor: pointer;
    transition: 0.2s ease;
}

.material-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 24px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: 0.2s ease;
}

.material-switch.off {
    background-color: var(--color-bg-alt);
    border: 2px solid #747775;
}

.material-switch.off::after {
    left: 4px;
    top: 2px;
    background-color: #747775;
    box-shadow: none;
}


.material-progress-bg {
    width: 100%;
    height: 8px;
    background-color: #d3e3fd;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.material-progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 4px;
}

.bg-purple {
    background-color: #eaddff;
}

.bar-purple {
    background-color: var(--color-purple);
}


.logo-garden {
    background-color: var(--color-bg-alt);
    padding: 80px 24px;
    text-align: center;
    border-radius: 32px;
    max-width: 1200px;
    margin: 0 auto;
    transition: background-color 0.3s ease;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
    margin-top: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text-main);
}


.cta-section {
    background: linear-gradient(135deg, var(--color-primary), #0a3a6a);
    color: white;
    padding: 100px 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin: 80px auto;
    max-width: 1200px;
}

.cta-code {
    background: rgba(0, 0, 0, 0.3);
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-family: 'Roboto Mono', monospace;
    margin: 32px 9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8c7fa;
    max-width: 100%;
    overflow-x: auto;
}


.main-footer {
    border-top: 1px solid var(--color-border);
    padding: 48px 24px 24px;
    background: var(--color-bg-main);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}


@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .feature-split {
        flex-direction: column;
        width: 100%;
    }

    .feature-media,
    .feature-text {
        width: 100%;
    }

    .main-nav {
        display: none;
    }

    .hero-glass {
        padding: 40px 24px;
    }

    .footer-content {
        display: block;
        text-align: center;
    }
}


body.dark-mode {
    --color-secondary: #7fcfff;
    --color-text-main: #e3e3e3;
    --color-text-muted: #c4c7c5;
    --color-bg-main: #121212;
    --color-bg-alt: #1e1f22;
    --color-border: #444746;
}

body.dark-mode .page-header {
    background-color: rgba(18, 18, 18, 0.95);
}

body.dark-mode .hero-section {
    background-color: #121212;
}

body.dark-mode .hero-glass {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .brand-logo,
body.dark-mode .hero-title,
body.dark-mode .module-title,
body.dark-mode .coppax-card-title {
    color: #e3e3e3;
}

body.dark-mode .btn-tonal {
    background-color: #3f4759;
    color: #d3e3fd;
}

body.dark-mode .btn-tonal:hover {
    background-color: #535f75;
}

body.dark-mode .material-result-container {
    background-color: #121212;
}

body.dark-mode .coppax-card {
    background-color: #1e1f22;
}

body.dark-mode .coppax-card-text {
    color: #c4c7c5;
}

body.dark-mode .material-input {
    background-color: #1e1f22;
    color: #e3e3e3;
    border-color: #444746;
}

body.dark-mode .material-switch.off {
    background-color: #1e1f22;
    border-color: #8e918f;
}

body.dark-mode .material-switch.off::after {
    background-color: #8e918f;
}

body.dark-mode .material-progress-bg {
    background-color: #3f4759;
}

body.dark-mode .bg-purple {
    background-color: #4a4458;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--color-bg-alt);
}