/* DamSmart Detail Page - Modern Grey & Tan Theme */

.ds-detail {
    --ds-bg: #ffffff;
    --ds-bg-alt: #faf6f1;
    --ds-accent: #a67c52;
    --ds-accent-dark: #8b6642;
    --ds-accent-light: #faf6f1;
    --ds-text: #2d2926;
    --ds-text-muted: #5c554d;
    --ds-border: #d6d0c8;
    --ds-shadow: 0 4px 6px -1px rgba(45, 41, 38, 0.08), 0 2px 4px -1px rgba(45, 41, 38, 0.04);
}

.ds-detail {
    background: var(--ds-bg);
    color: var(--ds-text);
    font-family: var(--font-sans);
}

/* Hero */
.ds-hero {
    background: linear-gradient(135deg, #faf6f1 0%, #f7f5f2 50%, #f5f3f0 100%);
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.ds-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.ds-hero-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
    text-align: left;
}

.ds-hero-image {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 420px;
    max-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.12),
        0 10px 30px rgba(166, 124, 82, 0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

.ds-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 900px) {
    .ds-hero {
        flex-direction: column;
        padding: 2rem;
    }
    .ds-hero-content {
        text-align: center;
        max-width: 100%;
    }
    .ds-hero-image {
        width: 100%;
        max-width: 350px;
        max-height: 500px;
    }
}

.ds-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--ds-accent);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.ds-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--ds-text);
}

.ds-tagline {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--ds-accent-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.ds-subtitle {
    font-size: 1.05rem;
    color: var(--ds-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.ds-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.ds-btn--primary {
    background: var(--ds-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.ds-btn--primary:hover {
    background: var(--ds-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.ds-btn--ghost {
    background: white;
    color: var(--ds-text);
    border: 2px solid var(--ds-border);
}

.ds-btn--ghost:hover {
    border-color: var(--ds-accent);
    color: var(--ds-accent);
}

.ds-btn--large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

/* Sections */
.ds-section {
    padding: 5rem 2rem;
}

.ds-section--alt {
    background: var(--ds-bg-alt);
}

.ds-section--cta {
    background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
}

.ds-container {
    max-width: 1100px;
    margin: 0 auto;
}

.ds-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ds-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ds-accent);
    margin-bottom: 0.5rem;
}

.ds-section-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--ds-text);
}

/* Problem Grid */
.ds-problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ds-problem-card {
    background: white;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ds-problem-card:hover {
    box-shadow: var(--ds-shadow);
    transform: translateY(-2px);
}

.ds-problem-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ds-problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--ds-text);
}

.ds-problem-card p {
    color: var(--ds-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Solution Intro */
.ds-solution-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.ds-solution-intro p {
    font-size: 1.1rem;
    color: var(--ds-text-muted);
    line-height: 1.7;
}

/* Flow Steps */
.ds-flow {
    max-width: 650px;
    margin: 0 auto;
}

.ds-flow-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.ds-flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -1.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--ds-accent) 0%, var(--ds-border) 100%);
}

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

.ds-flow-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--ds-text);
}

.ds-flow-content p {
    color: var(--ds-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Primitives Grid */
.ds-primitives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ds-primitive-card {
    background: var(--ds-accent-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 1.75rem;
    text-align: center;
}

.ds-primitive-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.ds-primitive-card h4 {
    color: var(--ds-accent-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ds-primitive-card p {
    color: var(--ds-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Anti-Drift */
.ds-antidrift-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.ds-antidrift-forbidden, .ds-antidrift-required {
    background: white;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.ds-antidrift-forbidden {
    border-left: 4px solid #ef4444;
}

.ds-antidrift-required {
    border-left: 4px solid #22c55e;
}

.ds-antidrift-forbidden h4, .ds-antidrift-required h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.ds-antidrift-forbidden ul, .ds-antidrift-required ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-antidrift-forbidden li, .ds-antidrift-required li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--ds-text-muted);
}

/* Center Text */
.ds-center-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--ds-text-muted);
    line-height: 1.7;
}

/* Screens Grid */
.ds-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.ds-screen-card {
    background: white;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.ds-screen-letter {
    width: 36px;
    height: 36px;
    background: var(--ds-accent);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.ds-screen-card h4 {
    color: var(--ds-text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.ds-screen-card p {
    font-size: 0.85rem;
    color: var(--ds-text-muted);
    line-height: 1.5;
}

.ds-optional-screen {
    background: var(--ds-accent-light);
    border: 1px dashed var(--ds-accent);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.ds-optional-screen h4 {
    color: var(--ds-accent-dark);
    margin-bottom: 0.5rem;
}

.ds-optional-screen p {
    color: var(--ds-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Stats Row */
.ds-stats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.ds-stat {
    text-align: center;
}

.ds-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ds-accent);
}

.ds-stat-label {
    font-size: 0.85rem;
    color: var(--ds-text-muted);
}

/* Tech Grid */
.ds-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.ds-tech-card {
    background: white;
    border: 1px solid var(--ds-border);
    border-radius: 12px;
    padding: 1.5rem;
}

.ds-tech-card h4 {
    color: var(--ds-accent-dark);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.ds-tech-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ds-tech-card li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--ds-border);
    font-size: 0.875rem;
    color: var(--ds-text-muted);
}

.ds-tech-card li:last-child {
    border-bottom: none;
}

/* AI Grid */
.ds-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ds-ai-card {
    background: var(--ds-accent-light);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.ds-ai-card h4 {
    color: var(--ds-accent-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.ds-ai-card p {
    color: var(--ds-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.ds-ai-forbidden {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.ds-ai-forbidden h4 {
    color: #b91c1c;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ds-ai-forbidden p {
    color: #7f1d1d;
    font-size: 0.85rem;
}

/* Docs Grid */
.ds-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.ds-doc-item {
    background: white;
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    padding: 1.25rem;
}

.ds-doc-item h4 {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--ds-accent-dark);
    margin-bottom: 0.5rem;
}

.ds-doc-item p {
    font-size: 0.85rem;
    color: var(--ds-text-muted);
    line-height: 1.5;
}

/* Transfer Grid */
.ds-transfer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.ds-transfer-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--ds-bg-alt);
    border: 1px solid var(--ds-border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ds-transfer-item:hover {
    border-color: var(--ds-accent);
}

.ds-transfer-item > span {
    font-size: 1.75rem;
}

.ds-transfer-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: var(--ds-text);
}

.ds-transfer-item p {
    font-size: 0.85rem;
    color: var(--ds-text-muted);
}

/* CTA Box */
.ds-cta-box {
    text-align: center;
    padding: 3.5rem 2rem;
    background: white;
    border: 2px solid var(--ds-accent);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.ds-cta-price {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--ds-accent);
    margin-bottom: 0.5rem;
}

.ds-cta-box h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--ds-text);
    margin-bottom: 0.75rem;
}

.ds-cta-box p {
    color: var(--ds-text-muted);
    margin-bottom: 1.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Back */
.ds-back {
    padding: 2rem;
    text-align: center;
    background: var(--ds-bg);
}

.ds-back a {
    color: var(--ds-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ds-back a:hover {
    color: var(--ds-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .ds-section {
        padding: 3.5rem 1.5rem;
    }
    
    .ds-hero {
        padding: 4rem 1.5rem;
    }
    
    .ds-flow-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ds-flow-step::after {
        display: none;
    }
    
    .ds-antidrift-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .ds-stats-row {
        gap: 1.5rem;
    }
    
    .ds-stat-number {
        font-size: 2rem;
    }
}
