/* ================================
   KEYFRAME ANIMATIONS
   ================================ */

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes patternFloat {
    0%,
    100% {
        transform: translate(0px, 0px);
    }
    33% {
        transform: translate(10px, -10px);
    }
    66% {
        transform: translate(-5px, 10px);
    }
}

@keyframes shimmer {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(10deg);
    }
}

@keyframes terminalGlow {
    0% {
        box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(82, 117, 211, 0.1);
    }
    100% {
        box-shadow:
            0 25px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(82, 117, 211, 0.3);
    }
}

@keyframes typewriter {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   HERO SECTION
   ================================ */

.heroBanner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #5275d3 0%, #4662ab 50%, #3a5084 100%);
    padding: clamp(2rem, 5vw, 4rem) 0;
}

body[data-page="homepage"] .heroBanner {
    padding-top: calc(var(--ifm-navbar-height) + clamp(2rem, 5vw, 4rem));
}

[data-theme="dark"] .heroBanner {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
}

.heroBackground {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(
            circle at 20% 80%,
            rgba(96, 165, 250, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(168, 139, 250, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 40%,
            rgba(96, 165, 250, 0.2) 0%,
            transparent 50%
        );
    animation: float 6s ease-in-out infinite;
}

.heroPattern {
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(
            circle at 25% 25%,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 75% 75%,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        );
    background-size:
        clamp(40px, 8vw, 60px) clamp(40px, 8vw, 60px),
        clamp(30px, 6vw, 40px) clamp(30px, 6vw, 40px);
    animation: patternFloat 8s ease-in-out infinite;
}

.heroContent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.heroText {
    color: white;
}

.heroTitle {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: white;
    word-wrap: break-word;
    hyphens: auto;
}

.heroTitleGradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 2s ease-in-out infinite alternate;
    display: inline-block;
}

[data-theme="dark"] .heroTitleGradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.heroSubtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    opacity: 0.9;
    font-weight: 400;
    max-width: 90%;
}

.heroButtons {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    flex-wrap: wrap;
    align-items: center;
}

/* ================================
   HERO BUTTONS
   ================================ */

.primaryButton {
    background: linear-gradient(135deg, #6089f7 0%, #5275d3 100%);
    border: none;
    color: white;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(82, 117, 211, 0.4);
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Touch target size */
    text-decoration: none;
    white-space: nowrap;
}

.primaryButton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.primaryButton:hover::before {
    left: 100%;
}

.primaryButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(82, 117, 211, 0.5);
    text-decoration: none;
    color: white;
}

.secondaryButton {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    min-height: 44px; /* Touch target size */
    text-decoration: none;
    white-space: nowrap;
}

.secondaryButton:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

/* ================================
   TERMINAL DEMO
   ================================ */

.heroDemo {
    position: relative;
    width: 100%;
}

.terminalWindow {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: terminalGlow 2s ease-in-out infinite alternate;
    width: 100%;
    max-width: 100%;
}

.terminalHeader {
    display: flex;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminalButtons {
    display: flex;
    gap: 0.5rem;
}

.terminalButton {
    width: clamp(10px, 2vw, 12px);
    height: clamp(10px, 2vw, 12px);
    border-radius: 50%;
    background: #ff5f56;
}

.terminalButton:nth-child(2) {
    background: #ffbd2e;
}
.terminalButton:nth-child(3) {
    background: #27ca3f;
}

.terminalContent {
    padding: clamp(1rem, 3vw, 1.5rem);
    font-family: "JetBrains Mono", "Fira Code", "Monaco", monospace;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    overflow-x: auto;
    text-align: left;
}

.terminalLine {
    display: flex;
    margin-bottom: 0.5rem;
    animation: typewriter 0.5s ease-out;
    white-space: nowrap;
    text-align: left;
    justify-content: flex-start;
}

.prompt {
    color: #6089f7;
    margin-right: 0.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.command {
    color: #e5e7eb;
    min-width: 0;
}

/* Terminal output animations */
.terminalOutput {
    margin-top: 1rem;
}

.validationLine {
    color: #0dbc79;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

.generatingLine {
    display: flex;
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.arrow {
    color: #007fd4;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.generatingText {
    color: #e5e7eb;
}

.resultsText {
    color: #0dbc79;
    margin: 0.75rem 0 0.5rem;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

.successLine {
    margin-bottom: 0.25rem;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    display: flex;
    align-items: center;
}

.successLine:nth-of-type(4) {
    animation-delay: 1.6s;
}
.successLine:nth-of-type(5) {
    animation-delay: 1.8s;
}

.plus {
    color: #007fd4;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.generated {
    color: #e5e7eb;
}

.completeLine {
    margin-top: 0.75rem;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
}

.completeText {
    color: #0dbc79;
}
.fileCount {
    color: #9ca3af;
}
.timing {
    color: #6b7280;
}

/* ================================
   STATS SECTION
   ================================ */

.statsSection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
    color: white;
    padding: clamp(0.5rem, 2vw, 1rem);
}

.statNumber {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .statNumber {
    background: linear-gradient(135deg, #6089f7 0%, #7c9df9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.statLabel {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* ================================
   FEATURES SECTION
   ================================ */

.featuresSection {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
    background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
}

[data-theme="dark"] .featuresSection {
    background: linear-gradient(to bottom, #020617 0%, #0f172a 100%);
}

.sectionHeader {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(3rem, 6vw, 4rem);
}

.sectionTitle {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: #1e293b;
    line-height: 1.2;
}

[data-theme="dark"] .sectionTitle {
    color: #f1f5f9;
}

.sectionSubtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #64748b;
    line-height: 1.6;
}

[data-theme="dark"] .sectionSubtitle {
    color: #cbd5e1;
}

.featuresGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(1.5rem, 4vw, 2rem);
    max-width: 100%;
}

/* Limit to max 3 columns on large screens */
@media screen and (min-width: 1200px) {
    .featuresGrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featureCard {
    background: white;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform;
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .featureCard {
    background: #1e293b;
    border: 1px solid #334155;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.featureCard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #5275d3 0%, #6089f7 50%, #7c9df9 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.featureCard:hover::before {
    transform: scaleX(1);
}

.featureCard:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .featureCard:hover {
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.featureIcon {
    width: clamp(48px, 12vw, 64px);
    height: clamp(48px, 12vw, 64px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    background: linear-gradient(135deg, #5275d3 0%, #6089f7 100%);
    color: white;
    position: relative;
    flex-shrink: 0;
}

.featureIcon::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, #5275d3 0%, #6089f7 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featureCard:hover .featureIcon::after {
    opacity: 1;
}

.featureTitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: #1e293b;
    line-height: 1.3;
}

[data-theme="dark"] .featureTitle {
    color: #f1f5f9;
}

.featureDescription {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    font-size: clamp(0.875rem, 2vw, 1rem);
    flex-grow: 1;
}

[data-theme="dark"] .featureDescription {
    color: #cbd5e1;
}

/* ================================
   CODE SECTION
   ================================ */

.codeSection {
    padding: clamp(4rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
    background: linear-gradient(135deg, #5275d3 0%, #3a5084 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .codeSection {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.codeSection::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.codeContent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.codeText {
    color: white;
}

.codeTitle {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: white;
    line-height: 1.2;
}

.codeDescription {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    opacity: 0.9;
}

.codeFeatures {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.codeFeature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: clamp(0.875rem, 2vw, 1rem);
    opacity: 0.9;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.codeFeature::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: #6089f7;
    font-weight: bold;
}

.ctaButton {
    background: white;
    color: #5275d3;
    border: 2px solid white;
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 12px;
    font-weight: 600;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ctaButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #4662ab;
    background: #f1f5f9;
    border-color: #f1f5f9;
}

[data-theme="dark"] .ctaButton {
    background: #5275d3;
    color: white;
    border-color: #5275d3;
    box-shadow: 0 4px 14px 0 rgba(82, 117, 211, 0.4);
}

[data-theme="dark"] .ctaButton:hover {
    background: #4662ab;
    color: white;
    border-color: #4662ab;
    box-shadow: 0 8px 25px 0 rgba(82, 117, 211, 0.5);
}

.codeBlock {
    position: relative;
    width: 100%;
}

.codeBlockContent {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow-x: auto;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Large screens */
@media screen and (min-width: 1400px) {
    .heroContent,
    .codeContent {
        max-width: 1400px;
    }
}

/* Tablets and small laptops */
@media screen and (max-width: 1024px) {
    .heroBanner {
        min-height: 90vh;
    }

    .heroContent {
        gap: 3rem;
    }

    .terminalContent {
        font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    }

    .codeContent {
        text-align: left !important;
    }

    .codeText {
        text-align: left !important;
    }

    .codeBlock,
    .codeBlockContent,
    .codeBlockContent *,
    .codeBlockContent pre,
    .codeBlockContent code {
        text-align: left !important;
    }
}

/* Tablet portrait */
@media screen and (max-width: 996px) {
    .heroBanner {
        min-height: auto;
        padding: clamp(3rem, 6vw, 5rem) 0;
    }

    .heroContent {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
        text-align: center;
    }

    .heroTitle {
        font-size: clamp(1.875rem, 6vw, 2.75rem);
    }

    .heroSubtitle {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        max-width: 100%;
    }

    .heroButtons {
        justify-content: center;
        gap: 1rem;
    }

    .statsSection {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .codeContent {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 5vw, 3rem);
        text-align: center;
    }
}

/* Mobile landscape */
@media screen and (max-width: 768px) {
    .heroBanner {
        padding: clamp(2.5rem, 5vw, 4rem) 0;
    }

    body[data-page="homepage"] .heroBanner {
        padding-top: calc(var(--ifm-navbar-height) + 2rem);
        min-height: auto;
    }

    .heroTitle {
        font-size: clamp(1.75rem, 5.5vw, 2.25rem);
        margin-bottom: 1rem;
    }

    .heroSubtitle {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
        margin-bottom: 1.5rem;
    }

    .heroButtons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .primaryButton,
    .secondaryButton {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .terminalWindow {
        margin: 0;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .terminalContent {
        padding: 1rem;
        font-size: 0.75rem;
        overflow-x: auto;
        scrollbar-width: thin;
        text-align: left !important;
    }

    .terminalContent::-webkit-scrollbar {
        height: 4px;
    }

    .terminalContent::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }

    .terminalContent::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
    }

    .terminalLine,
    .validationLine,
    .generatingLine,
    .resultsText,
    .successLine,
    .completeLine {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .statNumber {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .featuresGrid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featureCard {
        padding: 1.5rem;
    }

    .featureIcon {
        width: 56px;
        height: 56px;
    }

    .codeTitle {
        font-size: clamp(1.625rem, 4.5vw, 2rem);
    }

    .codeDescription {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }

    .codeContent {
        grid-template-columns: 1fr;
        gap: clamp(2.5rem, 5vw, 3rem);
        text-align: left !important;
        padding: 0 1rem;
    }

    .codeText {
        text-align: left !important;
    }

    .codeBlock {
        margin: 0;
        width: 100%;
        overflow: hidden;
    }

    .codeBlockContent {
        border-radius: 12px;
        text-align: left !important;
        overflow-x: auto;
    }

    .codeBlockContent * {
        text-align: left !important;
    }
}

/* Mobile portrait */
@media screen and (max-width: 480px) {
    .heroBanner {
        padding: 2rem 0;
    }

    .heroContent {
        padding: 0 1rem;
    }

    .heroTitle {
        font-size: clamp(1.5rem, 5vw, 1.875rem);
        line-height: 1.2;
    }

    .heroSubtitle {
        font-size: clamp(0.875rem, 2vw, 0.95rem);
    }

    .heroButtons {
        max-width: 280px;
        gap: 0.75rem;
    }

    .primaryButton,
    .secondaryButton {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .terminalWindow {
        margin: 0 -0.5rem;
        border-radius: 10px;
    }

    .terminalHeader {
        padding: 0.75rem 1rem;
    }

    .terminalButton {
        width: 8px;
        height: 8px;
    }

    .terminalTitle {
        font-size: 0.75rem;
    }

    .terminalContent {
        padding: 0.875rem;
        font-size: 0.7rem;
    }

    .statsSection {
        padding: 1.25rem;
        margin-top: 2rem;
        border-radius: 12px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stat {
        padding: 0.75rem 0;
    }

    .statNumber {
        font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    }

    .statLabel {
        font-size: 0.75rem;
    }

    .featuresSection,
    .codeSection {
        padding: 3rem 1rem;
    }

    .featureCard {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .featureIcon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .featureTitle {
        font-size: 1.125rem;
    }

    .featureDescription {
        font-size: 0.875rem;
    }

    .codeFeature {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .ctaButton {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .codeBlock {
        margin: 0 -0.5rem;
    }

    .codeBlockContent {
        border-radius: 10px;
    }
}

/* Extra small screens */
@media screen and (max-width: 360px) {
    .heroTitle {
        font-size: 1.375rem;
    }

    .heroSubtitle {
        font-size: 0.825rem;
    }

    .terminalContent {
        font-size: 0.65rem;
    }

    .primaryButton,
    .secondaryButton {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .statsSection {
        padding: 1rem;
    }

    .featuresSection,
    .codeSection {
        padding: 2.5rem 0.75rem;
    }

    .featureCard {
        padding: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .terminalWindow,
    .featureCard,
    .codeBlockContent {
        backdrop-filter: blur(20px);
    }
}

/* Landscape phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .heroBanner {
        min-height: auto;
        padding: 2rem 0;
    }

    .heroContent {
        gap: 2rem;
    }

    .heroTitle {
        margin-bottom: 0.75rem;
    }

    .heroSubtitle {
        margin-bottom: 1.25rem;
    }

    .terminalWindow {
        max-height: 300px;
        overflow: hidden;
    }

    .terminalContent {
        max-height: 250px;
        overflow-y: auto;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .heroBackground,
    .heroPattern,
    .terminalWindow {
        animation: none;
    }

    .featureCard,
    .primaryButton,
    .secondaryButton,
    .ctaButton {
        transition: none;
    }

    .featureCard:hover,
    .primaryButton:hover,
    .secondaryButton:hover,
    .ctaButton:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .heroBanner {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }

    .heroTitle,
    .heroSubtitle,
    .sectionTitle,
    .featureTitle {
        color: black !important;
    }

    .terminalWindow,
    .featureCard {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .heroButtons,
    .ctaButton {
        display: none;
    }
}
