/* Dev Demand - Go HTMX Styles */

/* CSS Variables / Design Tokens */
:root {
    --background: #141414;
    --foreground: #f2f2f2;
    --card: #1f1f1f;
    --card-foreground: #f2f2f2;
    --border: #2a2a2a;
    --muted: #2a2a2a;
    --muted-foreground: #888888;
    --accent: #f06021;
    --accent-foreground: #ffffff;
    --radius: 0.625rem;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utility Classes */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-card\/50 { background-color: rgba(31, 31, 31, 0.5); }
.bg-accent { background-color: var(--accent); }
.bg-accent\/5 { background-color: rgba(240, 96, 33, 0.05); }
.bg-accent\/20 { background-color: rgba(240, 96, 33, 0.2); }

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }

.border-border { border-color: var(--border); }
.border-border\/60 { border-color: rgba(42, 42, 42, 0.6); }

/* Layout */
.min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.p-6 { padding: 1.5rem; }
.p-4 { padding: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row { flex-direction: row; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 640px) {
    .sm\:text-xl { font-size: 1.25rem; }
    .sm\:text-5xl { font-size: 3rem; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:inline { display: inline; }
}

@media (min-width: 1024px) {
    .lg\:text-7xl { font-size: 4.5rem; }
}

/* Display */
.block { display: block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }
@media (min-width: 640px) {
    .sm\:block { display: block; }
    .sm\:inline { display: inline; }
}

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.top-1\/2 { top: 50%; }
.left-1\/2 { left: 50%; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }
.-top-3 { top: -0.75rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.-z-10 { z-index: -10; }
.overflow-hidden { overflow: hidden; }

/* Sizing */
.w-full { width: 100%; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-24 { width: 6rem; }
.w-\[600px\] { width: 600px; }
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-80 { height: 20rem; }
.h-\[600px\] { height: 600px; }

/* Typography Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.leading-relaxed { line-height: 1.625; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-dashed { border-style: dashed; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.2s; }
.transition-all { transition: all 0.2s; }
.transition-opacity { transition: opacity 0.2s; }
.duration-200 { transition-duration: 0.2s; }
.opacity-0 { opacity: 0; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.font-sans { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.pl-14 { padding-left: 3.5rem; }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:border-border { border-color: var(--border); }
.group:hover .group-hover\:bg-card { background-color: var(--card); }

/* Background Patterns */
.grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 64px 64px;
}

.radial-gradient {
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: rgba(242, 242, 242, 0.9);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

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

/* Bento Cards */
.bento-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px -10px rgba(240, 96, 33, 0.3);
    transform: translateY(-2px);
}

.bento-card-featured {
    border-color: rgba(240, 96, 33, 0.3);
}

/* Comparison Cards */
.comparison-card {
    position: relative;
    border-radius: 0.75rem;
    padding: 2rem;
}

.comparison-card-negative {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.comparison-card-positive {
    background-color: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Stage Cards */
.stage-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.stage-card:hover {
    border-color: var(--muted-foreground);
}

/* Tech Badge */
.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--muted);
    color: var(--muted-foreground);
}

/* Process Steps */
.process-step {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.process-step-active {
    border-color: var(--accent);
    box-shadow: 0 0 30px -10px rgba(240, 96, 33, 0.3);
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background-color: var(--muted);
    color: var(--muted-foreground);
    flex-shrink: 0;
}

.step-number-active {
    background-color: var(--accent);
    color: white;
}

/* Go Further Pills */
.go-further-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    transition: all 0.2s;
    min-width: 200px;
}

.go-further-pill:hover {
    border-color: var(--muted-foreground);
}

.go-further-pill-purple:hover {
    border-color: #8b5cf6;
}

.go-further-pill-green:hover {
    border-color: #22c55e;
}

/* FAQ Accordion */
.faq-item {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--muted-foreground);
}

.faq-item-open {
    border-color: var(--accent);
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    text-align: left;
}

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

.faq-item-open .faq-content {
    max-height: 500px;
}

.faq-item-open .faq-chevron {
    transform: rotate(180deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prose for legal pages */
.prose p {
    margin-bottom: 1rem;
}

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose ul {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Specific color utilities */
.text-\[\#f06021\] { color: #f06021; }
.text-\[\#8b5cf6\] { color: #8b5cf6; }
.text-\[\#22c55e\] { color: #22c55e; }
.bg-\[\#f06021\] { background-color: #f06021; }
.bg-\[\#f06021\]\/20 { background-color: rgba(240, 96, 33, 0.2); }
.bg-\[\#8b5cf6\]\/20 { background-color: rgba(139, 92, 246, 0.2); }
.bg-\[\#22c55e\]\/20 { background-color: rgba(34, 197, 94, 0.2); }
.border-\[\#f06021\] { border-color: #f06021; }
.text-red-400 { color: #f87171; }
.text-green-400 { color: #4ade80; }
.bg-red-500\/20 { background-color: rgba(239, 68, 68, 0.2); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
