/* ====================================
   Diet-GEM Landing Page Styles
   Theme: Amber/Orange (#F59E0B)
   ==================================== */

@import url('/css/design-tokens.css');

:root {
    --dgl-primary: #F59E0B;
    --dgl-primary-dark: #D97706;
    --dgl-primary-darker: #B45309;
    --dgl-primary-light: #FEF3C7;
    --dgl-primary-lighter: #FFFBEB;
    --dgl-bg: #FAFAFA;
    --dgl-bg-dark: #1A1A1A;
    --dgl-card-bg: #FFFFFF;
    --dgl-text: #111827;
    --dgl-text-secondary: #6B7280;
    --dgl-text-muted: #9CA3AF;
    --dgl-border: #E5E7EB;
    --dgl-radius: 16px;
    --dgl-radius-sm: 10px;
    --dgl-radius-lg: 24px;
    --dgl-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --dgl-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --dgl-font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--dgl-font);
    background: var(--dgl-bg);
    color: var(--dgl-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

em {
    font-style: normal;
    color: var(--dgl-primary-dark);
    font-weight: 600;
}

/* ====================================
   Header
   ==================================== */
.dgl-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 24px;
}

.dgl-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.dgl-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dgl-text);
}

.dgl-logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dgl-primary-dark);
}

.dgl-logo-icon svg {
    width: 100%;
    height: 100%;
}

.dgl-logo-text {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.dgl-logo-text span {
    color: var(--dgl-primary-dark);
    font-weight: 700;
}

.dgl-nav {
    display: flex;
    gap: 32px;
}

.dgl-nav-item {
    text-decoration: none;
    color: var(--dgl-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.dgl-nav-item:hover {
    color: var(--dgl-text);
}

.dgl-header-actions {
    display: flex;
    align-items: center;
}

/* Buttons */
.dgl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--dgl-primary), var(--dgl-primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--dgl-radius-sm);
    font-family: var(--dgl-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.dgl-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

.dgl-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--dgl-text);
    border: 1px solid var(--dgl-border);
    border-radius: var(--dgl-radius-sm);
    font-family: var(--dgl-font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.dgl-btn-secondary:hover {
    border-color: var(--dgl-primary);
    color: var(--dgl-primary-dark);
}

.dgl-btn-start {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--dgl-primary), var(--dgl-primary-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: var(--dgl-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.dgl-btn-start:hover {
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

/* ====================================
   Hero Section
   ==================================== */
.dgl-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFF9ED 100%);
}

.dgl-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.dgl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.dgl-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--dgl-primary);
    top: -200px;
    right: -200px;
    animation: dgl-float 20s ease-in-out infinite;
}

.dgl-orb-2 {
    width: 400px;
    height: 400px;
    background: #EF4444;
    bottom: -100px;
    left: -100px;
    animation: dgl-float 15s ease-in-out infinite reverse;
}

.dgl-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--dgl-primary-dark);
    top: 40%;
    left: 50%;
    animation: dgl-float 18s ease-in-out infinite 2s;
}

@keyframes dgl-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.dgl-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dgl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--dgl-primary-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--dgl-primary-darker);
    margin-bottom: 32px;
}

.dgl-hero-badge-icon {
    display: flex;
    color: var(--dgl-primary-dark);
}

.dgl-hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.dgl-title-line {
    display: block;
}

.dgl-title-accent {
    background: linear-gradient(135deg, var(--dgl-primary), var(--dgl-primary-darker));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dgl-hero-subtitle {
    font-size: 18px;
    color: var(--dgl-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.dgl-hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.dgl-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.dgl-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dgl-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--dgl-text);
}

.dgl-stat-label {
    font-size: 13px;
    color: var(--dgl-text-muted);
    font-weight: 400;
}

.dgl-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--dgl-border);
}

/* ====================================
   Problem Section
   ==================================== */
.dgl-problem {
    padding: 100px 0;
    background: #fff;
}

.dgl-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.dgl-section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dgl-primary-dark);
    margin-bottom: 16px;
}

.dgl-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.dgl-section-subtitle {
    font-size: 16px;
    color: var(--dgl-text-secondary);
    line-height: 1.7;
}

.dgl-problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dgl-problem-card {
    padding: 36px;
    border-radius: var(--dgl-radius);
    background: var(--dgl-bg);
    border: 1px solid var(--dgl-border);
    transition: all 0.3s ease;
}

.dgl-problem-card:hover {
    border-color: var(--dgl-primary);
    box-shadow: var(--dgl-shadow);
    transform: translateY(-2px);
}

.dgl-problem-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dgl-primary-light);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--dgl-primary-dark);
}

.dgl-problem-icon svg {
    width: 24px;
    height: 24px;
}

.dgl-problem-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dgl-problem-card p {
    font-size: 14px;
    color: var(--dgl-text-secondary);
    line-height: 1.7;
}

/* ====================================
   How It Works Section
   ==================================== */
.dgl-how-it-works {
    padding: 100px 0;
    background: var(--dgl-bg);
}

.dgl-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.dgl-steps::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 32px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(to bottom, var(--dgl-primary), var(--dgl-primary-darker));
    opacity: 0.2;
}

.dgl-step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    position: relative;
}

.dgl-step-number {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dgl-primary), var(--dgl-primary-dark));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.dgl-step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.dgl-step-content p {
    font-size: 15px;
    color: var(--dgl-text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.dgl-step-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dgl-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--dgl-primary-light);
    color: var(--dgl-primary-darker);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

/* ====================================
   Features Section
   ==================================== */
.dgl-features {
    padding: 100px 0;
    background: #fff;
}

.dgl-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.dgl-feature-card:hover {
    border-color: var(--dgl-primary);
    box-shadow: var(--dgl-shadow);
}

.dgl-feature-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
}

.dgl-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dgl-primary-light);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--dgl-primary-dark);
}

.dgl-feature-icon svg {
    width: 24px;
    height: 24px;
}

.dgl-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dgl-feature-card p {
    font-size: 14px;
    color: var(--dgl-text-secondary);
    line-height: 1.7;
}

/* Glucose Demo Visual */
.dgl-glucose-demo {
    background: var(--dgl-card-bg);
    border-radius: var(--dgl-radius);
    padding: 24px;
    border: 1px solid var(--dgl-border);
    box-shadow: var(--dgl-shadow);
}

.dgl-demo-header {
    font-size: 14px;
    font-weight: 600;
    color: var(--dgl-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--dgl-border);
}

.dgl-demo-meal {
    margin-bottom: 16px;
}

.dgl-demo-meal-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--dgl-text);
    margin-bottom: 8px;
}

.dgl-demo-macros {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dgl-demo-macros span {
    font-size: 12px;
    color: var(--dgl-text-muted);
    background: var(--dgl-primary-lighter);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.dgl-demo-curve {
    padding: 8px 0;
}

.dgl-demo-curve svg {
    width: 100%;
    height: auto;
}

.dgl-feature-content h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.dgl-feature-content p {
    font-size: 15px;
    line-height: 1.8;
}

/* ====================================
   CTA Section
   ==================================== */
.dgl-cta {
    padding: 100px 0;
    background: var(--dgl-bg);
}

.dgl-cta-card {
    position: relative;
    padding: 80px 48px;
    background: var(--dgl-bg-dark);
    border-radius: var(--dgl-radius-lg);
    text-align: center;
    overflow: hidden;
}

.dgl-cta-content {
    position: relative;
    z-index: 1;
}

.dgl-cta-content h2 {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.dgl-cta-content h2 em {
    color: var(--dgl-primary);
}

.dgl-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
}

.dgl-btn-cta {
    font-size: 16px;
    padding: 14px 32px;
}

.dgl-cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dgl-cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.dgl-cta-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--dgl-primary);
    opacity: 0.15;
    top: -100px;
    right: -50px;
}

.dgl-cta-orb-2 {
    width: 200px;
    height: 200px;
    background: #EF4444;
    opacity: 0.08;
    bottom: -50px;
    left: -50px;
}

/* ====================================
   Footer
   ==================================== */
.dgl-footer {
    padding: 40px 0;
    background: var(--dgl-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.dgl-footer-inner {
    text-align: center;
}

.dgl-footer-wordmark {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.5px;
}

.dgl-gem {
    color: var(--dgl-primary);
    font-weight: 700;
}

.dgl-footer-tagline {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 4px;
    margin-bottom: 20px;
}

.dgl-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.dgl-footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.dgl-footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 768px) {
    .dgl-nav {
        display: none;
    }

    .dgl-hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .dgl-hero-title {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .dgl-hero-subtitle {
        font-size: 15px;
    }

    .dgl-hero-subtitle br {
        display: none;
    }

    .dgl-hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .dgl-hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .dgl-stat-divider {
        width: 40px;
        height: 1px;
    }

    .dgl-problem-cards {
        grid-template-columns: 1fr;
    }

    .dgl-features-grid {
        grid-template-columns: 1fr;
    }

    .dgl-feature-large {
        grid-template-columns: 1fr;
    }

    .dgl-section-subtitle br {
        display: none;
    }

    .dgl-cta-content h2 br {
        display: none;
    }
}
