/* ========================================
   Nest Page - AI Location Service
======================================== */

/* Hero Section */
.nest-hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.nest-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,194,14,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,168,0,0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255,194,14,0.04) 0%, transparent 50%);
}

.nest-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 60px 20px;
}

.nest-hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255,194,14,0.15);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    border-radius: 30px;
    border: 1px solid rgba(255,194,14,0.3);
    margin-bottom: 30px;
}

.nest-hero-title {
    font-size: 52px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nest-hero-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.nest-hero-keywords {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.nest-hero-keywords span {
    padding: 8px 20px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.nest-hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    margin-bottom: 40px;
}

.nest-hero-highlight svg {
    width: 20px;
    height: 20px;
}

.nest-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nest-hero-buttons .btn-primary {
    padding: 16px 40px;
    font-size: 16px;
}

.nest-hero-buttons .btn-outline {
    padding: 16px 40px;
    font-size: 16px;
}

/* Common Section */
.nest-section {
    padding: 100px 20px;
}

/* ========================================
   Technology Section
======================================== */
.nest-tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.nest-tech-analysis h3,
.nest-tech-prediction h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* Analysis Grid */
.nest-analysis-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nest-analysis-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nest-analysis-item:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.nest-analysis-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, rgba(255,194,14,0.15) 0%, rgba(255,168,0,0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nest-analysis-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-dark);
}

.nest-analysis-item span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Prediction Flow */
.nest-prediction-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid var(--gray-light);
}

.nest-flow-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 25px;
    width: 100%;
    max-width: 250px;
}

.nest-flow-item.current {
    background: var(--primary);
    color: var(--dark);
}

.nest-flow-item.predicted {
    background: rgba(255,194,14,0.2);
    color: var(--text-dark);
    border: 1px dashed var(--primary);
}

.nest-flow-item.destination {
    background: #e74c3c;
    color: var(--white);
}

.nest-flow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.nest-flow-item.current .nest-flow-dot { background: var(--dark); }
.nest-flow-item.predicted .nest-flow-dot { background: var(--primary-dark); }
.nest-flow-item.destination .nest-flow-dot { background: var(--white); }

.nest-flow-label {
    font-size: 14px;
    font-weight: 600;
}

.nest-flow-arrow {
    height: 25px;
    display: flex;
    align-items: center;
}

.nest-flow-arrow svg {
    width: 20px;
    height: 20px;
    stroke: var(--text);
    opacity: 0.5;
}

/* Prediction Cards */
.nest-prediction-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.nest-predict-card {
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.nest-predict-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nest-predict-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 12px;
    background: rgba(255,194,14,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nest-predict-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-dark);
}

.nest-predict-card strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.nest-predict-card p {
    font-size: 12px;
    color: var(--text);
    line-height: 1.6;
}

/* Accuracy Section */
.nest-accuracy {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 50px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    color: var(--white);
}

.nest-accuracy-circle {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nest-accuracy-circle::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed rgba(255,194,14,0.3);
}

.nest-accuracy-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.nest-accuracy-number small {
    font-size: 28px;
}

.nest-accuracy-label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

.nest-accuracy-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.nest-accuracy-info p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.nest-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nest-tech-tags span {
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ========================================
   Scenario Section
======================================== */
.nest-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nest-scenario-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nest-scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.nest-scenario-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.nest-scenario-icon.family { background: rgba(52,152,219,0.1); }
.nest-scenario-icon.family svg { stroke: #3498db; }
.nest-scenario-icon.safety { background: rgba(46,204,113,0.1); }
.nest-scenario-icon.safety svg { stroke: #2ecc71; }
.nest-scenario-icon.share { background: rgba(155,89,182,0.1); }
.nest-scenario-icon.share svg { stroke: #9b59b6; }

.nest-scenario-icon svg {
    width: 30px;
    height: 30px;
}

.nest-scenario-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.nest-scenario-card > p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 25px;
}

.nest-scenario-example {
    background: var(--gray-bg);
    border-radius: 12px;
    padding: 20px;
}

.nest-example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.nest-example-row + .nest-example-row {
    border-top: 1px solid var(--gray-light);
}

.nest-example-label {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

.nest-example-value {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
}

.nest-example-value.highlight {
    color: var(--primary-dark);
}

.nest-example-alert {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nest-example-alert svg {
    width: 24px;
    height: 24px;
    stroke: #e74c3c;
    flex-shrink: 0;
}

.nest-example-alert strong {
    display: block;
    font-size: 14px;
    color: #e74c3c;
    margin-bottom: 3px;
}

.nest-example-alert span {
    font-size: 13px;
    color: var(--text);
}

/* ========================================
   Features Section
======================================== */
.nest-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nest-feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nest-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.nest-feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(255,194,14,0.15) 0%, rgba(255,168,0,0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nest-feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-dark);
}

.nest-feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

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

/* ========================================
   Advanced Features Section
======================================== */
.nest-advanced-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nest-advanced-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.nest-advanced-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.nest-advanced-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nest-advanced-icon.danger { background: rgba(231,76,60,0.1); border-color: #e74c3c; }
.nest-advanced-icon.danger svg { stroke: #e74c3c; }
.nest-advanced-icon.home { background: rgba(52,152,219,0.1); }
.nest-advanced-icon.home svg { stroke: #3498db; }
.nest-advanced-icon.disaster { background: rgba(243,156,18,0.1); }
.nest-advanced-icon.disaster svg { stroke: #f39c12; }

.nest-advanced-card:nth-child(1) { border-top-color: #e74c3c; }
.nest-advanced-card:nth-child(2) { border-top-color: #3498db; }
.nest-advanced-card:nth-child(3) { border-top-color: #f39c12; }

.nest-advanced-icon svg {
    width: 30px;
    height: 30px;
}

.nest-advanced-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.nest-advanced-card p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

/* ========================================
   How To Steps
======================================== */
.nest-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.nest-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.nest-step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--dark);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(255,194,14,0.3);
}

.nest-step-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.nest-step-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

.nest-step-connector {
    width: 60px;
    height: 2px;
    background: var(--gray-light);
    margin-top: 30px;
    flex-shrink: 0;
    position: relative;
}

.nest-step-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary);
    border-top: 2px solid var(--primary);
    transform: rotate(45deg);
}

/* ========================================
   Privacy Section
======================================== */
.nest-privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nest-privacy-item {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nest-privacy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nest-privacy-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(46,204,113,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nest-privacy-icon svg {
    width: 30px;
    height: 30px;
    stroke: #2ecc71;
}

.nest-privacy-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.nest-privacy-item p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

/* ========================================
   Download Section
======================================== */
.nest-download-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
    color: var(--white);
}

.nest-download-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.nest-download-section > .section-inner > p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

.nest-download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.nest-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
}

.nest-store-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.nest-store-btn svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.nest-store-btn small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    text-align: left;
}

.nest-store-btn strong {
    display: block;
    font-size: 18px;
    text-align: left;
}

/* ========================================
   Responsive - Nest Page
======================================== */
@media (max-width: 1024px) {
    .nest-hero-title {
        font-size: 40px;
    }

    .nest-tech-content {
        grid-template-columns: 1fr;
    }

    .nest-accuracy {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .nest-scenario-grid,
    .nest-features-grid,
    .nest-advanced-grid,
    .nest-privacy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nest-steps {
        flex-direction: column;
        align-items: center;
    }

    .nest-step-connector {
        width: 2px;
        height: 30px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .nest-step-connector::after {
        right: -3px;
        top: auto;
        bottom: -3px;
        transform: rotate(135deg);
    }
}

@media (max-width: 768px) {
    .nest-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .nest-hero-title {
        font-size: 32px;
    }

    .nest-hero-desc {
        font-size: 15px;
    }

    .nest-hero-keywords {
        gap: 8px;
    }

    .nest-hero-keywords span {
        font-size: 12px;
        padding: 6px 14px;
    }

    .nest-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .nest-section {
        padding: 60px 15px;
    }

    .nest-scenario-grid,
    .nest-features-grid,
    .nest-advanced-grid,
    .nest-privacy-grid {
        grid-template-columns: 1fr;
    }

    .nest-prediction-cards {
        grid-template-columns: 1fr;
    }

    .nest-accuracy {
        padding: 30px 20px;
    }

    .nest-accuracy-circle {
        width: 140px;
        height: 140px;
    }

    .nest-accuracy-number {
        font-size: 40px;
    }

    .nest-download-section h2 {
        font-size: 28px;
    }

    .nest-download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .nest-hero-title {
        font-size: 28px;
    }

    .nest-hero-badge {
        font-size: 11px;
        padding: 6px 18px;
    }
}