@font-face {
    font-family: 'MiSans-Regular';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Regular.ttf');
}
@font-face {
    font-family: 'MiSans-Medium';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Medium.ttf');
}
@font-face {
    font-family: 'MiSans-Bold';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Bold.ttf');
}
@font-face {
    font-family: 'MiSans-Semibold';
    src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Semibold.ttf');
}

:root {
    --primary-green: #4CAF50;
    --brand-blue: #2196F3;
    --alert-red: #F44336;
    --alert-yellow: #FFC107;
    --bg-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --light-bg: #F9FAFB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MiSans-Regular', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0 auto;
}

img,
svg {
    max-width: 100%;
}

/* Header */
header {
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(20px, 5vw, 120px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'MiSans-Bold';
    font-size: 28px;
    color: var(--brand-blue);
} */

.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'MiSans-Bold';
    font-size: 20px;
    font-weight: bold;
    color: var(--brand-blue);
}

.logo img{
    height: 40px;
    width: auto;
}

/* .logo i {
    font-size: 32px;
    color: var(--primary-green);
} */

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    background: white;
    color: var(--text-dark);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    flex-shrink: 0;
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: 'MiSans-Medium';
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--brand-blue);
}

.cta-btn {
    background-color: var(--brand-blue);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'MiSans-Semibold';
    transition: background 0.3s;
}

.cta-btn:hover {
    background-color: #1976D2;
}

/* Hero Section */
.hero {
    padding: 160px clamp(20px, 5vw, 120px) 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #F0F9FF 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    min-width: 0;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'MiSans-Semibold';
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'MiSans-Bold';
    /* font-size: clamp(2.5rem, 5vw, 4rem); */
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

/* .hero h1 {
    font-family: 'MiSans-Bold';
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    max-width: 600px; /* THIS is key */
/* }  */

.hero h1 span {
    color: var(--brand-blue);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'MiSans-Bold';
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid #E5E7EB;
    padding: 16px 40px;
    border-radius: 8px;
    font-family: 'MiSans-Medium';
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* USP Section */
.usp {
    padding: 100px clamp(20px, 5vw, 120px);
    text-align: center;
    background-color: white;
}

.section-title {
    font-family: 'MiSans-Bold';
    font-size: 42px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 80px;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.usp-card {
    padding: 40px;
    border-radius: 20px;
    background-color: white;
    border: 1px solid #F3F4F6;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.usp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: transparent;
}

.usp-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.icon-blue { background: rgba(33, 150, 243, 0.1); color: var(--brand-blue); }
.icon-green { background: rgba(76, 175, 80, 0.1); color: var(--primary-green); }
.icon-red { background: rgba(244, 67, 54, 0.1); color: var(--alert-red); }

.usp-card h3 {
    font-family: 'MiSans-Bold';
    font-size: 24px;
    margin-bottom: 16px;
}

.usp-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Features & Workflow */
.features {
    padding: 100px clamp(20px, 5vw, 120px);
    background-color: var(--light-bg);
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
    flex-wrap: wrap;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    min-width: 0;
}

.feature-img {
    flex: 1;
    position: relative;
    min-width: 0;
}

.feature-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: white;
    padding: 20px;
}

.feature-tag {
    color: var(--brand-blue);
    font-family: 'MiSans-Semibold';
    margin-bottom: 16px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.feature-content h2 {
    font-family: 'MiSans-Bold';
    font-size: 36px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.feature-content p {
    color: var(--text-gray);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text-dark);
}

.feature-list li i {
    color: var(--primary-green);
    font-size: 20px;
    margin-top: 2px;
}

/* Workflow Detailed */
.workflow {
    padding: 100px clamp(20px, 5vw, 120px);
    background: white;
    text-align: center;
}

.workflow-diagram {
    margin-top: 60px;
    position: relative;
    padding: 40px;
    background: #F8FAFC;
    border-radius: 30px;
    border: 1px solid #E2E8F0;
}

.diagram-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 24px;
    flex-wrap: wrap;
}

.diagram-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 100px;
    right: 100px;
    height: 2px;
    background: #E2E8F0;
    z-index: 0;
    border-top: 2px dashed #CBD5E1;
}

.step-node {
    position: relative;
    z-index: 1;
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: min(280px, 100%);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #F1F5F9;
    flex: 1 1 220px;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.step-node:nth-child(2) .step-icon { border-color: var(--primary-green); color: var(--primary-green); }
.step-node:nth-child(3) .step-icon { border-color: var(--alert-yellow); color: var(--alert-yellow); }
.step-node:nth-child(4) .step-icon { border-color: var(--alert-red); color: var(--alert-red); }

.step-title {
    font-family: 'MiSans-Bold';
    font-size: 18px;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* App Showcase */
.app-showcase {
    padding: 100px clamp(20px, 5vw, 120px);
    background-color: #F0F9FF;
    text-align: center;
}

.mockups-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.mockup-item {
    width: min(380px, 100%);
    background: white;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 30px 60px rgba(33, 150, 243, 0.15);
    border: 8px solid #fff;
    position: relative;
    overflow: hidden;
}

.mockup-header {
    text-align: left;
    padding: 10px 10px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.mockup-header h4 {
    font-family: 'MiSans-Bold';
    font-size: 18px;
    color: var(--text-dark);
}
.mockup-header span {
    font-size: 12px;
    color: var(--text-gray);
}

.mockup-screen {
    background: #F8FAFC;
    border-radius: 20px;
    overflow: hidden;
    min-height: 600px;
    position: relative;
}

/* Parent App UI Simulation */
.parent-ui .map-view {
    height: 250px;
    background-color: #EBF8FF;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.parent-ui .map-marker {
    width: 40px;
    height: 40px;
    background: rgba(33, 150, 243, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.parent-ui .map-marker-inner {
    width: 16px;
    height: 16px;
    background: var(--brand-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
}

.parent-ui .status-card {
    margin: 20px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-align: left;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}
.status-safe { background: #E8F5E9; color: var(--primary-green); }
.status-alert { background: #FFEBEE; color: var(--alert-red); }

/* Child App UI Simulation */
.child-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F9FF 100%);
}
.sos-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--alert-red);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(244, 67, 54, 0.4);
    border: 8px solid rgba(244, 67, 54, 0.2);
    margin-bottom: 40px;
}
.sos-btn i { font-size: 40px; margin-bottom: 5px; }
.sos-btn span { font-weight: bold; font-size: 24px; }

.check-in-btn {
    width: 80%;
    padding: 15px;
    background: var(--primary-green);
    color: white;
    border-radius: 12px;
    border: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Tech Stack */
.tech-stack {
    padding: 80px clamp(20px, 5vw, 120px);
    background: white;
    text-align: center;
    border-top: 1px solid #F3F4F6;
}

.tech-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-family: 'MiSans-Medium';
}

.tech-icon {
    font-size: 40px;
    color: var(--text-dark);
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: #111827;
    color: white;
    padding: 80px clamp(20px, 5vw, 120px) 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'MiSans-Bold';
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #9CA3AF;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h3 {
    font-family: 'MiSans-Bold';
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #374151;
    text-align: center;
    color: #6B7280;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diagram-steps::before {
        display: none;
    }

    .mockups-container {
        gap: 32px;
    }
}

@media (max-width: 960px) {
    header {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding-top: 72px;
    }

    .hero-content,
    .hero-image,
    .feature-content,
    .feature-img {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .hero-image img {
        max-width: 640px;
    }

    .feature-block,
    .feature-block.reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 80px;
    }

    .section-subtitle {
        margin-bottom: 56px;
    }

    .mockup-screen {
        min-height: 540px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 22px;
    }

    .logo i {
        font-size: 26px;
    }

    nav ul {
        gap: 18px;
    }

    .cta-btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .section-title {
        font-size: 32px;
    }

    .usp-grid {
        grid-template-columns: 1fr;
    }

    .usp-card,
    .workflow-diagram,
    .mockup-item {
        padding-left: 20px;
        padding-right: 20px;
    }

    .step-node {
        flex-basis: 100%;
    }

    .mockup-screen {
        min-height: 500px;
    }

    .footer-content {
        margin-bottom: 40px;
    }
}

@media (max-width: 560px) {
    header {
        position: fixed;
        justify-content: space-between;
        align-items: center;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
    }

    nav {
        width: 100%;
        order: 4;
        display: none;
        margin-top: 8px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #E5E7EB;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    }

    nav.nav-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        width: 100%;
        font-size: 14px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    nav a:hover {
        background: #F3F4F6;
    }

    .cta-btn {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding-top: 138px;
        padding-bottom: 72px;
    }

    .hero::before {
        width: 360px;
        height: 360px;
        top: -60px;
        right: -120px;
    }

    .hero-tag {
        font-size: 12px;
    }

    .feature-content h2 {
        font-size: 28px;
    }

    .feature-content p,
    .section-subtitle {
        font-size: 16px;
    }

    .workflow-diagram {
        padding: 20px;
    }

    .step-node {
        padding: 24px 18px;
    }

    .step-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

    .mockup-item {
        padding: 14px;
        border-width: 5px;
        border-radius: 28px;
    }

    .mockup-screen {
        min-height: 460px;
    }

    .sos-btn {
        width: 132px;
        height: 132px;
    }

    .check-in-btn {
        width: calc(100% - 32px);
    }
}
