:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #4f46e5;
    
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.5);
    
    /* Metrics */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 20px 40px -15px rgba(37, 99, 235, 0.25);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky nav */
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, transform 0.2s ease;
}

.text-center { text-align: center; }
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-blue { background-color: #dbeafe; color: #1d4ed8; }
.bg-indigo { background-color: #e0e7ff; color: #4338ca; }

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.section-header {
    margin-bottom: 4rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -15px rgba(37, 99, 235, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9375rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo svg {
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 40px;
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background: radial-gradient(100% 100% at 50% 0%, var(--primary-light) 0%, var(--bg-main) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.3;
    z-index: 0;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr 400px;
        gap: 80px;
    }
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-main);
    color: var(--primary);
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 540px;
    color: var(--text-muted);
}

.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: block;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Phone Mockup Frame */
.phone-frame {
    position: relative;
    width: 320px;
    border-radius: 48px;
    padding: 12px;
    background: #0f172a; /* Deep slate acting as phone body */
    box-shadow: 
        0 0 0 2px #334155,
        0 40px 80px -20px rgba(15, 23, 42, 0.4),
        0 0 100px 0 rgba(37, 99, 235, 0.2);
    transform: rotate(-3deg) translateY(10px);
    animation: float 6s ease-in-out infinite;
}

/* Dynamic Island / Notch Fake */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #0f172a;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.app-screen {
    width: 100%;
    height: 100%;
    border-radius: 36px;
    display: block;
    object-fit: cover;
    background-color: #fff;
}

@keyframes float {
    0%, 100% { transform: rotate(-3deg) translateY(10px); }
    50% { transform: rotate(-2deg) translateY(-10px); }
}

/* Features Section */
.features {
    padding: 120px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}

.feature-showcase:last-child {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .feature-showcase {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
    }
    
    .feature-showcase.reverse .feature-text { order: 2; }
    .feature-showcase.reverse .feature-visual { order: 1; }
}

.feature-icon {
    width: 56px;
    height: 56px;
    background-color: var(--bg-main);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.feature-list {
    margin-top: 32px;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 20px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.feature-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.feature-visual::before {
    content: '';
    position: absolute;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--primary-light) 0%, transparent 60%);
    z-index: 0;
    transform: scale(1.5);
}

.floating-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 8px solid var(--bg-main);
}

.image-bounce {
    animation: bounce 6s infinite ease-in-out;
}

.image-bounce-delayed {
    animation: bounce 6s infinite ease-in-out;
    animation-delay: -3s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Roles Section */
.roles-section {
    padding: 120px 0;
    background-color: var(--bg-main);
}

.roles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .roles-grid { grid-template-columns: 1fr 1fr; }
}

.role-card {
    background: var(--bg-main);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.role-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.role-card:hover::after {
    opacity: 1;
}

.role-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* FAQ Section */
.faq-section {
    padding: 120px 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-light);
}

.faq-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-item summary {
    padding: 24px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--primary);
}

.faq-content {
    padding: 0 32px 32px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
    background-color: #0f172a; /* Deep Slate */
    color: #cbd5e1;
    padding: 80px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo {
    color: #fff;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links {
    display: contents;
}

@media (min-width: 768px) {
    .footer-links {
        display: flex;
        gap: 80px;
        justify-content: flex-end;
    }
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-group h4 {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.link-group a {
    color: var(--text-light);
}

.link-group a:hover {
    color: #fff;
    transform: translateX(4px);
}

.copyright {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #1e293b;
    font-size: 0.9rem;
    color: var(--text-muted);
}
