/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Dithering texture overlay */
.dithered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px
        );
    pointer-events: none;
    z-index: 1;
}

.dithered {
    position: relative;
}

.dithered > * {
    position: relative;
    z-index: 2;
}

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

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 2px solid var(--black);
}

.nav-brand {
    font-size: 18px;
    font-weight: 400;
    color: var(--black);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-brand-link {
    color: var(--black);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand-link:hover {
    opacity: 0.7;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--black);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

/* Retro scanline hover effect for desktop */
@media (min-width: 769px) {
    .nav-links a:not(.btn)::before {
        content: '';
        position: absolute;
        top: 0;
        left: -4px;
        right: -4px;
        bottom: 0;
        background:
            repeating-linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.15) 0px,
                transparent 1px,
                transparent 2px,
                rgba(0, 0, 0, 0.15) 3px
            );
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
        z-index: 1;
    }

    .nav-links a:not(.btn)::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: var(--black);
        transition: width 0.3s ease;
    }

    .nav-links a:not(.btn):hover {
        letter-spacing: 1.5px;
        transform: translateY(-1px);
    }

    .nav-links a:not(.btn):hover::before {
        opacity: 1;
        animation: scanline 0.1s linear;
    }

    .nav-links a:not(.btn):hover::after {
        width: 100%;
    }

    @keyframes scanline {
        0%, 100% {
            transform: translateY(0);
        }
        25% {
            transform: translateY(-1px) scaleY(1.05);
        }
        75% {
            transform: translateY(1px) scaleY(0.95);
        }
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 2px solid var(--black);
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--white);
    color: var(--black);
}

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

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
}

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

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border-color: var(--black);
    padding: 12px 24px;
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

.btn-large {
    padding: 20px 48px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    background: var(--white);
    color: var(--black);
    padding-bottom: 80px;
    border-bottom: 2px solid var(--black);
}

.hero-content {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-image {
    position: relative;
    transform: scale(1.15);
    transform-origin: center;
}

.hero-image img {
    width: 100%;
    border: 2px solid var(--black);
    box-shadow: 8px 8px 0 var(--black);
}

.hero h1 {
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -2px;
}

.hero .highlight {
    display: block;
    font-weight: 400;
    border-left: 4px solid var(--black);
    padding-left: 24px;
    margin-top: 16px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--gray-600);
    max-width: 680px;
}

.hero-bullets {
    list-style: none;
    margin: 32px 0 48px 0;
    padding: 0;
    max-width: 680px;
}

.hero-bullets li {
    font-size: 18px;
    color: var(--gray-600);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.hero-bullets li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: normal;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 14px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Themes Section */
.themes {
    padding: 120px 0;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.themes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.015) 1px,
            rgba(0, 0, 0, 0.015) 2px
        );
    pointer-events: none;
    z-index: 0;
}

.themes .container {
    position: relative;
    z-index: 1;
}

.themes h2 {
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 80px;
}

.theme-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 650px;
    perspective: 1500px;
    overflow: visible;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    transform-style: preserve-3d;
}

.theme-card {
    position: absolute;
    width: 80%;
    max-width: 700px;
    left: 50%;
    top: 10%;
    background: var(--white);
    border: 2px solid var(--black);
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform-origin: center center;
}

.theme-card.active {
    opacity: 1;
    z-index: 3;
    pointer-events: auto;
    transform: translateX(-50%) scale(1) translateZ(0) rotateY(0deg);
}

.theme-card.prev {
    opacity: 0.5;
    z-index: 2;
    transform: translateX(-150%) scale(0.75) translateZ(-200px) rotateY(35deg);
    filter: blur(1px);
}

.theme-card.next {
    opacity: 0.5;
    z-index: 2;
    transform: translateX(50%) scale(0.75) translateZ(-200px) rotateY(-35deg);
    filter: blur(1px);
}

.theme-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--black);
}

.theme-card-info {
    padding: 32px;
    background: var(--white);
}

.theme-card h3 {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.theme-card p {
    color: var(--gray-600);
    font-size: 15px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}

.carousel-btn {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    padding: 16px 32px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
}

.carousel-btn:hover {
    background: var(--white);
    color: var(--black);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: var(--gray-300);
    border: 2px solid var(--black);
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: var(--black);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
}

.features h2 {
    font-size: 48px;
    font-weight: 400;
    text-align: left;
    margin-bottom: 80px;
    letter-spacing: -1px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2px;
    background: var(--black);
    border: 2px solid var(--black);
}

.feature-card {
    background: var(--white);
    padding: 48px;
    transition: background 0.2s ease;
}

.feature-card:hover {
    background: var(--gray-100);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 15px;
}

/* Batch Preview Section */
.batch-preview {
    padding: 120px 0;
    background: var(--gray-100);
}

.batch-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.batch-text h2 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.batch-text p {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
    border-left: 2px solid var(--black);
    padding-left: 24px;
}

.feature-list li {
    padding: 12px 0;
    font-size: 16px;
    color: var(--gray-700);
}

.feature-list li:before {
    content: "→ ";
    color: var(--black);
    font-weight: normal;
}

.batch-image img {
    width: 100%;
    border: 2px solid var(--black);
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.why-section h2 {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.why-section p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

/* Pricing Section */
.pricing {
    padding: 120px 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
}

.pricing h2 {
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.pricing-card {
    max-width: 600px;
    margin: 80px auto 0;
    background: var(--white);
    border: 2px solid var(--black);
    overflow: hidden;
}

.pricing-header {
    background: var(--black);
    color: var(--white);
    padding: 48px;
    text-align: left;
    position: relative;
}

.pricing-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(255, 255, 255, 0.03) 2px
        );
    pointer-events: none;
}

.pricing-header h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.currency {
    font-size: 32px;
    font-weight: 400;
    margin-top: 8px;
    margin-right: 4px;
}

.amount {
    font-size: 96px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -3px;
}

.price-subtitle {
    font-size: 16px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-features {
    list-style: none;
    padding: 48px;
    background: var(--white);
}

.pricing-features li {
    padding: 16px 0;
    font-size: 15px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    margin: 0 48px 48px;
    width: calc(100% - 96px);
}

.pricing-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    padding-bottom: 48px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* FAQ Section */
.faq {
    padding: 120px 0;
    background: var(--gray-100);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.015) 1px,
            rgba(0, 0, 0, 0.015) 2px
        );
    pointer-events: none;
}

.faq h2 {
    font-size: 48px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
    position: relative;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    border: 2px solid var(--black);
}

.faq-item {
    background: var(--white);
    border-bottom: 2px solid var(--black);
    transition: background 0.2s ease;
    position: relative;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item.active {
    background: var(--gray-100);
}

.faq-question {
    padding: 32px 80px 32px 40px;
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    flex: 1;
}

.faq-icon {
    position: absolute;
    right: 40px;
    font-size: 24px;
    transition: transform 0.3s ease;
    color: var(--black);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 40px 32px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 15px;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 24px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 32px 32px;
        gap: 24px;
        border-left: 2px solid var(--black);
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
    }

    .nav-links .btn-outline {
        width: 100%;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin: 40px auto 0;
    }

    .hero-image {
        transform: scale(1);
        order: 1;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .btn-large {
        width: 100%;
    }

    .themes h2,
    .features h2,
    .pricing h2,
    .faq h2,
    .batch-text h2 {
        font-size: 36px;
    }

    .theme-carousel {
        height: auto;
        perspective: none;
    }

    .carousel-container {
        height: auto;
        transform-style: flat;
    }

    .theme-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        left: 0;
        top: 0;
        display: none;
        transform: none !important;
        filter: none !important;
    }

    .theme-card.active {
        display: block;
        opacity: 1;
        transform: none !important;
    }

    .theme-card.prev,
    .theme-card.next {
        display: none;
    }

    .theme-card img {
        height: 350px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .batch-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .batch-image {
        order: -1;
    }

    .container {
        padding: 0 24px;
    }

    .nav {
        padding: 24px;
    }
}

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

    .nav-links {
        width: 100%;
    }

    .theme-carousel {
        height: auto;
    }

    .theme-card img {
        height: 300px;
    }

    .theme-card-info {
        padding: 24px;
    }

    .carousel-controls {
        gap: 8px;
    }

    .carousel-btn {
        padding: 12px 24px;
        font-size: 12px;
    }

    .feature-card {
        padding: 32px;
    }

    .pricing-features,
    .pricing-card .btn {
        padding: 32px;
    }

    .faq-item {
        padding: 32px;
    }

    .faq-question {
        padding: 24px 60px 24px 24px;
    }

    .faq-icon {
        right: 24px;
    }

    .faq-answer p {
        padding: 0 24px 24px;
    }

    .amount {
        font-size: 72px;
    }
}
