/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-600: #16a34a;
    --green-800: #166534;
    --green-900: #14532d;
    --black: #050505;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --dark-bg: #050505;
    --dark-surface: #0a0a0a;
    --dark-card: #1c1c1e;
    --dark-card-alt: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--black);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--green-500);
    color: var(--black);
}

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

/* Utility Classes */
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .desktop-only {
        display: block;
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 24px 0;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-icon-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.logo-icon-small .logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--green-500);
    color: var(--black);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.2);
}

.btn-primary:hover {
    background: var(--green-400);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-cta {
    background: var(--black);
    color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-cta:hover {
    background: #1a1a1a;
    transform: scale(1.05);
}

.apple-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--green-500);
    top: 0;
    right: 0;
    transform: translate(33%, -33%);
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--green-500);
    bottom: 0;
    left: 0;
    opacity: 0.2;
    transform: translate(-33%, 33%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
    }
}

.hero-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--green-400);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 72px;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--green-400), var(--green-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
}

.hero-buttons {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .hero-features {
        justify-content: flex-start;
    }
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hero-feature svg {
    color: var(--green-500);
    flex-shrink: 0;
}

/* Phone Frame */
.phone-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: var(--black);
    border-radius: 40px;
    border: 8px solid var(--dark-card-alt);
    overflow: hidden;
    box-shadow: 0 20px 60px -12px rgba(34, 197, 94, 0.3);
    position: relative;
}

.phone-main {
    transform: rotate(-6deg);
    transition: transform 0.5s;
    z-index: 10;
}

.phone-main:hover {
    transform: rotate(0deg);
}

.phone-secondary {
    position: absolute;
    top: 48px;
    right: 96px;
    transform: rotate(6deg);
    opacity: 0.6;
    filter: blur(1px);
    scale: 0.95;
    z-index: 0;
}

.phone-feature {
    width: 300px;
    height: 600px;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 128px;
    height: 24px;
    background: var(--black);
    border-radius: 0 0 16px 16px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--dark-card);
    overflow: hidden;
    position: relative;
}

.phone-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats Section */
.stats {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 36px;
    }
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Feature Sections */
.feature-section {
    padding: 96px 0;
    position: relative;
}

.feature-section-alt {
    background: var(--dark-surface);
}

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 64px;
    align-items: center;
}

@media (min-width: 1024px) {
    .feature-row {
        flex-direction: row;
        gap: 96px;
    }
}

.feature-row-reverse {
    flex-direction: column-reverse;
}

@media (min-width: 1024px) {
    .feature-row-reverse {
        flex-direction: row;
    }
}

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

.blob-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.feature-content {
    flex: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-500);
    margin-bottom: 24px;
}

.feature-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .feature-title {
        font-size: 48px;
    }
}

.feature-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature-list svg {
    flex-shrink: 0;
    color: var(--green-500);
    width: 20px;
    height: 20px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    padding: 3px;
}

.feature-cards {
    display: grid;
    gap: 16px;
}

.feature-card-mini {
    background: var(--dark-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.feature-card-mini:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.mini-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    margin-bottom: 12px;
}

.feature-card-mini:nth-child(2) .mini-card-icon {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green-400);
}

.feature-card-mini h4 {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

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

/* Testimonials */
.testimonials {
    padding: 96px 0;
    position: relative;
    background: var(--dark-surface);
}

.testimonials-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.testimonials-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 64px;
}

.phone-testimonial {
    transform: rotate(-2deg);
    transition: transform 0.5s;
}

.phone-testimonial:hover {
    transform: rotate(0deg) scale(1.02);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--green-400);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.section-badge svg {
    width: 16px;
    height: 16px;
    color: var(--green-500);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 48px;
    }
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: var(--dark-card);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--green-500);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.testimonial-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* CTA Section */
.cta {
    padding: 96px 0;
}

.cta-content {
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    border-radius: 48px;
    padding: 96px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-content {
        padding: 96px;
    }
}

.cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.05) 10px,
            rgba(0, 0, 0, 0.05) 20px
        );
    opacity: 0.1;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 60px;
    }
}

.cta-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--green-400);
}

.footer-copyright {
    color: var(--text-muted);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--dark-card);
    color: var(--text-secondary);
    width: 100%;
    max-width: 768px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    z-index: 101;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--dark-card);
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.modal-body {
    overflow-y: auto;
    padding: 24px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.7;
}

.modal-body h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--green-500);
}

.modal-body h3 {
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body ul {
    margin-left: 24px;
    margin-bottom: 12px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: var(--text-primary);
}

.modal-body a {
    color: var(--green-500);
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
