/* Lightspeed - Website Hosting Platform */

:root {
    /* Color Palette from coolors.co */
    --accent: #deb841;
    --dark-gray: #6d6a75;
    --off-white: #e5e4e8;
    --accent-secondary: #de9e36;
    --black: #37323e;

    /* Extended palette */
    --white: #ffffff;
    --light-gray: #bfbdc1;
    --lighter-gray: #e8e7ea;
    --darker-gray: #37323e;
    --accent-dark: #c9a336;
    --accent-light: #e8c95e;

    /* Semantic */
    --text-primary: var(--darker-gray);
    --text-secondary: var(--dark-gray);
    --text-light: var(--light-gray);
    --bg-dark: var(--darker-gray);
    --bg-light: var(--off-white);

    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.highlight {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-light:hover {
    background: var(--off-white);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* Transparent header on hero pages (before scroll) */
.has-hero .site-header:not(.scrolled) {
    background: transparent;
    box-shadow: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 32px;
    color: var(--accent);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
}

.has-hero .site-header:not(.scrolled) .logo-text {
    color: var(--white);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.has-hero .site-header:not(.scrolled) .nav-menu a {
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.has-hero .site-header:not(.scrolled) .nav-menu a:hover {
    color: var(--white);
}

.has-hero .site-header:not(.scrolled) .nav-menu a.active {
    color: var(--accent);
}

.has-hero .site-header:not(.scrolled) .btn-primary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.has-hero .site-header:not(.scrolled) .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--darker-gray);
    transition: var(--transition);
}

.has-hero .site-header:not(.scrolled) .mobile-menu-toggle span {
    background: var(--white);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg .slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg .slide.active {
    opacity: 1;
}

.hero-bg .slide:nth-child(1) { background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80'); }
.hero-bg .slide:nth-child(2) { background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1920&q=80'); }

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(55, 50, 62, 0.85) 0%, rgba(55, 50, 62, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Terminal */
.hero-terminal {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.terminal-header {
    background: #333;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-body code {
    display: block;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.terminal-body .prompt {
    color: var(--accent);
}

.terminal-body .output {
    color: #888;
    padding-left: 1rem;
}

.terminal-body .output.success {
    color: #27c93f;
}

.terminal-body .output.url {
    color: var(--accent);
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Features */
.features-section {
    padding: 8rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: var(--off-white);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

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

/* How It Works */
.how-section {
    padding: 8rem 0;
    background: var(--off-white);
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black);
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Code Block */
.code-block {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    width: 700px;
}

.code-header {
    background: #333;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-header span {
    color: #888;
    font-size: 0.8rem;
}

.copy-btn {
    background: transparent;
    border: 1px solid #555;
    color: #888;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: #444;
    color: #fff;
}

.code-block pre {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.code-block .prompt {
    color: var(--accent);
}

.code-block .output {
    color: #888;
}

.code-block .output.success {
    color: #27c93f;
}

.code-block .output.url {
    color: var(--accent);
}

/* Pricing */
.pricing-section {
    padding: 8rem 0;
    background: var(--white);
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--white);
    border: 2px solid var(--lighter-gray);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--lighter-gray);
}

.pricing-header h3 {
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.price .amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1;
}

.price .period {
    font-size: 1rem;
    color: var(--dark-gray);
}

.pricing-header p {
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-primary);
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    flex-shrink: 0;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Showcase */
.showcase-section {
    padding: 8rem 0;
    background: var(--white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.showcase-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.showcase-image {
    aspect-ratio: 4/3;
    background: var(--lighter-gray);
}

.showcase-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker-gray) 0%, var(--dark-gray) 100%);
    color: var(--white);
    font-weight: 600;
    font-size: 1.25rem;
}

.showcase-info {
    padding: 1.5rem;
}

.showcase-info h4 {
    margin-bottom: 0.25rem;
}

.showcase-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--darker-gray) 0%, var(--dark-gray) 100%);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 450px;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.site-footer {
    background: var(--black);
    color: var(--light-gray);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--light-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 2.5rem; }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .has-hero .site-header:not(.scrolled) .nav-menu a {
        color: var(--dark-gray);
    }

    .has-hero .site-header:not(.scrolled) .btn-primary {
        background: var(--accent);
        color: var(--black);
        border-color: var(--accent);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step .code-block {
        text-align: left;
    }

    .step-number {
        margin: 0 auto;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
