/* 
 * YONT - Design System (Precision Alignment with iOS App)
 * Aesthetic: High-end Liquid Glassmorphism
 */

:root {
    /* Brand Colors (Light Theme - App Values) */
    --brand-primary: #2C3D50;
    --brand-accent: #FF6B6B;
    --brand-bg: #F7F9FC;
    --brand-text: #1A1A1A;
    --brand-text-secondary: rgba(26, 26, 26, 0.6);
    --glass-fill: rgba(248, 249, 250, 0.1);
    --mesh-opacity-1: 0.08;
    --mesh-opacity-2: 0.06;
    --nav-bg: rgba(247, 249, 252, 0.4);
}

[data-theme="dark"] {
    /* Brand Colors (Dark Theme - App Values) */
    --brand-primary: #3E5871;
    --brand-accent: #FF6B6B;
    --brand-bg: #080C14;
    --brand-text: #F2F2F7;
    --brand-text-secondary: rgba(242, 242, 247, 0.6);
    --glass-fill: rgba(28, 28, 30, 0.3);
    --mesh-opacity-1: 0.12;
    --mesh-opacity-2: 0.08;
    --nav-bg: rgba(8, 12, 20, 0.4);
}

:root {
    /* Glass Parameters (Shared) */
    --glass-blur: blur(20px);
    --glass-stroke: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), transparent, rgba(255, 255, 255, 0.2));
    --glass-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--brand-text);
    background: var(--brand-bg);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Mesh Gradient Background (Precise Replication) --- */
.mesh-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--brand-bg);
}

.mesh-glow-1 {
    position: absolute;
    width: 60vw;
    height: 60vw;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 107, 107, var(--mesh-opacity-1)) 0%, transparent 70%);
    filter: blur(80px);
    animation: meshMove1 20s infinite alternate ease-in-out;
}

.mesh-glow-2 {
    position: absolute;
    width: 70vw;
    height: 70vw;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(79, 70, 229, var(--mesh-opacity-2)) 0%, transparent 70%);
    filter: blur(100px);
    animation: meshMove2 25s infinite alternate ease-in-out;
}

@keyframes meshMove1 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(100px, 50px) scale(1.1); }
}

@keyframes meshMove2 {
    from { transform: translate(0, 0) scale(1.1); }
    to { transform: translate(-80px, -40px) scale(1); }
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
}

.section-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-text-secondary);
    margin-bottom: 12px;
    display: block;
}

/* --- Glass Components --- */
.glass-card {
    background: var(--glass-fill);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    position: relative;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    overflow: hidden;
}

/* Precision Stroke Implementation */
.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 0.5px; /* Precision 0.5 stroke */
    background: var(--glass-stroke);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.5);
}

.logo {
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--brand-accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-text);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--brand-accent);
}

/* --- Buttons (Capsule Style) --- */
.btn-capsule {
    padding: 12px 32px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn-accent {
    background: var(--brand-accent);
    color: white !important;
    box-shadow: 0 8px 16px rgba(255, 107, 107, 0.25);
}

.btn-accent:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.35);
}

.btn-glass {
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .btn-glass {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--brand-text);
}

.btn-glass:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

[data-theme="dark"] .btn-glass:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 120px 8% 60px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 72px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--brand-accent);
    display: block;
}

.hero-content p {
    font-size: 22px;
    color: var(--brand-text-secondary);
    margin-bottom: 48px;
    max-width: 520px;
}

.micro-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--brand-accent);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 0.5px solid rgba(255, 107, 107, 0.2);
}


.hero-image {
    flex: 1.2;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* --- Premium CSS iPhone Mockup --- */
.iphone-mockup {
    width: 360px; /* Increased from 320 */
    height: 720px; /* Increased from 650 */
    position: relative;
    perspective: 2000px;
    animation: floatHero 6s ease-in-out infinite; /* Slightly faster for more life */
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.25));
}

.iphone-bezel {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 48px;
    padding: 12px;
    position: relative;
    box-shadow: 
        inset 0 0 4px rgba(255,255,255,0.2),
        0 30px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.iphone-bezel::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1.5px solid #2c3e50;
    border-radius: 44px;
    pointer-events: none;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a1a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 10;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-4deg); }
    50% { transform: translateY(-30px) rotateX(-4deg) rotateY(4deg); }
}

/* --- Features Grid --- */
.features {
    padding: 100px 8%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-icon.img-icon {
    background: transparent;
    overflow: hidden;
}

.feature-icon.img-icon img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

[data-theme="dark"] .feature-icon.img-icon img {
    filter: brightness(1.2);
}

.feature-card h3 {
    font-size: 24px;
}

.feature-card p {
    font-size: 16px;
    color: var(--brand-text-secondary);
}

/* --- CTA Section --- */
.cta {
    padding: 80px 8% 120px;
}

.cta-box {
    padding: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--brand-primary), #1a252f);
    color: white;
}

.cta-box h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 24px;
}

.cta-box p {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 40px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    nav {
        padding: 12px 5%;
    }

    .nav-links > a {
        display: none;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        height: 24px !important;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-content h1 {
        font-size: 56px;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-btns {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-image {
        margin-top: 40px;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 42px;
    }
    
    .iphone-mockup {
        width: 280px;
        height: 560px;
    }

    .cta-box {
        padding: 40px 20px;
    }
}

/* --- Testimonials --- */
.testimonials {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.testimonial-card {
    padding: 40px;
    text-align: left;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.quote {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--brand-text);
    margin-bottom: 24px;
    font-style: italic;
    flex-grow: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-accent);
    padding: 2px;
    background: white;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-info strong {
    font-size: 16px;
    color: var(--brand-text);
}

.author-info span {
    font-size: 13px;
    color: var(--brand-text-secondary);
}

@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 32px 20px;
    }
}
