:root {
    --bg-color: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-color: #08415C;
    --accent-color: #CC2936;
    --accent-hover: #a51f2a;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: #ffffff;
    --gradient-start: #08415C;
    --gradient-end: #CC2936;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(8, 65, 92, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(204, 41, 54, 0.05), transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.highlight {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Buttons */
.app-store-badge img {
    height: 48px;
    width: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
}

.app-store-badge:hover img {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.app-store-badge-nav img {
    height: 40px;
    width: auto;
    transition: transform 0.2s ease;
    border-radius: 6px;
}

.app-store-badge-nav:hover img {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(204, 41, 54, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 41, 54, 0.45);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 99px;
    border: 1px solid var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(8, 65, 92, 0.05);
    border-color: var(--primary-color);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 80px);
    padding: 4rem 5%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content p {
    margin-bottom: 2.5rem;
    font-size: 1.25rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

/* Phone Mockup */
.phone-mockup {
    width: 320px;
    height: 640px;
    background: #ffffff;
    border: 8px solid #f8fafc;
    border-radius: 40px;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotate(0deg) translateY(-10px);
}

.phone-header {
    padding: 16px 24px 10px;
    background: #fff;
    z-index: 10;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.phone-header h2 {
    text-align: center;
    font-size: 18px;
    margin: 0;
    color: #000;
    font-weight: 600;
}

.mockup-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 100px; 
    scrollbar-width: none; 
}
.mockup-scroll-area::-webkit-scrollbar {
    display: none;
}

.category-header {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px 0;
}

.device-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0px;
}

.device-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: #f1f5f9;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 12px;
}

.device-icon-outline {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-bottom: 12px;
}

.device-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    padding-top: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    height: 100%;
}

.device-row:last-child .device-details {
    border-bottom: none;
}

.device-details strong {
    color: #334155;
    font-size: 15px;
    font-weight: 700;
}

.device-details span {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 2px;
}

.fab-btn {
    position: absolute;
    bottom: 90px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(8, 65, 92, 0.3);
    z-index: 10;
    transition: transform 0.2s ease;
}
.fab-btn:hover {
    transform: scale(1.05);
}

.tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 0;
    z-index: 10;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    padding: 6px 16px;
    border-radius: 20px;
    height: max-content;
}

.tab-item.active {
    background: #f1f5f9;
    color: var(--primary-color);
}

.tab-icon-wrap {
    position: relative;
}

.red-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.8) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(8, 65, 92, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0,0,0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(8, 65, 92, 0.05);
    border-radius: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    background-color: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand p {
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    nav {
        display: none;
    }
}
