/* ==========================================
   SHIPTO.SPACE - USPS SALES PROMPT LIBRARY
   Dark Theme Design System
   ========================================== */

/* ========== CSS Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-bg: #0A0F1A;
    --secondary-bg: #161C25;
    --card-bg: #1A2130;
    --border-color: #2A2F38;
    --accent-blue: #5B7CFF;
    --accent-purple: #4C62E8;
    --accent-pink: #FF4FA3;
    --text-white: #FFFFFF;
    --text-gray: #A8B0C0;
    --text-muted: #6B7280;
    
    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-spacing-desktop: 120px;
    --section-spacing-mobile: 60px;
    --card-padding: 32px;
    --border-radius: 16px;
    --border-radius-small: 12px;
    --border-radius-button: 10px;
    
    /* Shadows & Glows */
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --card-glow: 0 0 40px rgba(91, 124, 255, 0.15);
    --pink-glow: 0 0 30px rgba(255, 79, 163, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-pink);
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-white);
    box-shadow: 0 4px 16px rgba(91, 124, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 124, 255, 0.5);
    color: var(--text-white);
}

.btn-link {
    color: var(--accent-blue);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-pink);
    gap: 12px;
}

/* ========== Section Titles ========== */
.section-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-white), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: var(--text-gray);
    font-size: 1.125rem;
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--primary-bg) 0%, #0C1116 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(91, 124, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-gray);
    font-size: 1rem;
}

.hero-benefits i {
    color: var(--accent-blue);
    font-size: 1.25rem;
    min-width: 24px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Hero Visual Mockup */
.hero-visual {
    position: relative;
}

.mockup-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--card-shadow), var(--card-glow);
    position: relative;
    overflow: hidden;
}

.mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.mockup-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.mockup-dots span:nth-child(1) {
    background: #FF5F57;
}

.mockup-dots span:nth-child(2) {
    background: #FFBD2E;
}

.mockup-dots span:nth-child(3) {
    background: #28CA42;
}

.mockup-title {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
}

.mockup-content {
    position: relative;
}

.mockup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(91, 124, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(91, 124, 255, 0.1);
}

.mockup-item:last-child {
    margin-bottom: 0;
}

.mockup-item i {
    color: var(--accent-pink);
    font-size: 1.25rem;
}

.mockup-item span {
    color: var(--text-white);
    font-size: 0.875rem;
    font-weight: 500;
}

.mockup-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 79, 163, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* ==========================================
   DISCLAIMER SECTION
   ========================================== */
.disclaimer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.disclaimer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

.disclaimer strong {
    color: var(--text-gray);
}

/* ==========================================
   FEATURES SECTION
   ========================================== */
.features {
    padding: var(--section-spacing-desktop) 0;
    background: var(--primary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    transition: all 0.3s ease;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91, 124, 255, 0.15), rgba(255, 79, 163, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--pink-glow);
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--accent-pink);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.feature-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   PROMPT LIBRARY SECTION
   ========================================== */
.library {
    padding: var(--section-spacing-desktop) 0;
    background: linear-gradient(180deg, var(--primary-bg) 0%, #0C1116 100%);
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.prompt-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.prompt-card:hover {
    transform: scale(1.02);
    box-shadow: var(--card-glow);
    border-color: rgba(91, 124, 255, 0.3);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.prompt-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 79, 163, 0.2), rgba(255, 79, 163, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 79, 163, 0.2);
}

.prompt-icon i {
    color: var(--accent-pink);
    font-size: 1.5rem;
}

.copy-btn {
    background: rgba(91, 124, 255, 0.1);
    border: 1px solid rgba(91, 124, 255, 0.3);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    background: rgba(91, 124, 255, 0.2);
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: rgba(40, 202, 66, 0.2);
    border-color: rgba(40, 202, 66, 0.5);
    color: #28CA42;
}

.prompt-title {
    font-size: 1.375rem;
    margin-bottom: 12px;
    color: var(--text-white);
}

.prompt-description {
    color: var(--text-gray);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.prompt-code {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    padding: 20px;
    margin-top: auto;
    max-height: 220px;
    overflow-y: auto;
}

.prompt-code::-webkit-scrollbar {
    width: 8px;
}

.prompt-code::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 4px;
}

.prompt-code::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.prompt-code::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

.prompt-code pre {
    margin: 0;
    font-family: var(--font-code);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-gray);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt-code code {
    font-family: var(--font-code);
    color: var(--text-gray);
}

/* ==========================================
   USE CASES SECTION
   ========================================== */
.use-cases {
    padding: var(--section-spacing-desktop) 0;
    background: var(--primary-bg);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.use-case-card {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    position: relative;
    transition: all 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 32px rgba(91, 124, 255, 0.15);
}

.use-case-number {
    position: absolute;
    top: -20px;
    right: 32px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(91, 124, 255, 0.1);
    font-family: var(--font-heading);
    line-height: 1;
}

.use-case-card h3 {
    margin-bottom: 16px;
    font-size: 1.375rem;
    color: var(--accent-blue);
}

.use-case-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.use-case-card p:last-child {
    margin-bottom: 0;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    padding: var(--section-spacing-desktop) 0;
    background: linear-gradient(180deg, #0C1116 0%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 124, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
    position: relative;
}

.about-avatar {
    position: relative;
    display: flex;
    justify-content: center;
}

.avatar-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-bg), var(--card-bg));
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.avatar-circle i {
    font-size: 5rem;
    color: var(--accent-blue);
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91, 124, 255, 0.2) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.about-text h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-white);
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-mission {
    background: rgba(91, 124, 255, 0.1);
    border-left: 4px solid var(--accent-blue);
    padding: 24px;
    border-radius: 8px;
    font-size: 1.125rem !important;
}

.about-mission strong {
    color: var(--accent-blue);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
    padding: var(--section-spacing-desktop) 0;
    background: var(--primary-bg);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(91, 124, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-blue);
}

.faq-question i {
    color: var(--accent-blue);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.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;
    padding: 0 28px 24px;
}

.faq-answer p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   MOBILE FAQ FIXES - Add these to your CSS
   ========================================== */

/* Improve touch targets for mobile */
.faq-question {
    /* Ensure minimum touch target size (44px recommended) */
    min-height: 44px;
    
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Ensure touch events work */
    touch-action: manipulation;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .faq-question {
        padding: 24px 20px; /* Increase padding for better touch area */
        font-size: 1.1rem; /* Slightly larger text for mobile */
    }
    
    .faq-answer {
        /* Improve mobile animation performance */
        will-change: max-height, padding;
    }
    
    /* Remove hover effects on touch devices */
    .faq-question:hover {
        color: var(--text-white); /* Reset to normal color */
    }
}

/* Specific fixes for touch devices */
@media (hover: none) and (pointer: coarse) {
    .faq-question:hover {
        color: var(--text-white); /* Remove hover color on touch devices */
    }
    
    .faq-item:hover {
        border-color: var(--border-color); /* Remove hover border on touch devices */
    }
}

/* Add active/pressed state for touch feedback */
.faq-question:active {
    color: var(--accent-blue);
    background-color: rgba(91, 124, 255, 0.1);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 48px;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: var(--text-white);
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-gray);
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

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

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .library-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-avatar {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing-desktop: var(--section-spacing-mobile);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2, .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .features-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .library-grid {
        grid-template-columns: 1fr;
    }
    
    .prompt-card {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .card-padding {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .mockup-card {
        padding: 16px;
    }
    
    .prompt-code {
        padding: 16px;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 2rem;
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Scroll to Top Button Styles */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: var(--text-white);
    font-size: 1.5rem;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(91, 124, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(91, 124, 255, 0.5);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}
