:root {
    --primary: #171717;
    --primary-dark: #000000;
    --secondary: #171717;
    --accent: #f59e0b;
    --bg-light: #ffffff;
    --bg-off: #fafafa;
    --text-main: #171717;
    --text-muted: #525252;
    --border: #e5e5e5;
    --radius: 6px;
    --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);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border);
    background-color: white;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: var(--bg-off);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: auto;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: 2rem;
}

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

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

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(to bottom, var(--bg-off), var(--bg-light));
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.check-icon {
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.25rem;
}

.hero-image {
    position: relative;
}

.app-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    background-color: var(--bg-off);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: black;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Logos */
.logos-section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.logos-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.7;
}

.logos-grid img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.logos-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Features */
.features-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-card {
    background: linear-gradient(to bottom right, #f8fafc, #ffffff);
    border-color: var(--primary);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--bg-off);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Pricing */
.pricing-section {
    padding: 6rem 0;
    background: #f4f6f8;
}

.pricing-shell {
    max-width: 1140px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 14px 36px rgba(15,23,42,0.08);
    border-radius: 14px;
    padding: 2.5rem 2.25rem 2.75rem;
}

.pricing-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-intro .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
}

.pricing-intro .headline {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.pricing-intro .subhead {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-grid.three-up {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.features-include {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 1rem 0 0;
}

.features-include h4 {
    margin: 0 0 1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.01em;
    font-size: 1rem;
}

.pricing-row {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) repeat(3, minmax(260px, 1fr));
    gap: 1.75rem;
    align-items: start;
    position: relative;
    margin-top: 0.5rem;
}

.pricing-row::after {
    content: "";
    position: absolute;
    left: calc(300px + 0.5rem);
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(15,23,42,0.06);
    pointer-events: none;
}

@media (max-width: 1100px) {
    .pricing-row {
        grid-template-columns: 1fr 1fr;
    }
    .pricing-row::after { display: none; }
}

@media (max-width: 768px) {
    .pricing-row {
        grid-template-columns: 1fr;
    }
    .pricing-row::after { display: none; }
}

.pricing-card {
    background: white;
    border-radius: 14px;
    padding: 1.75rem 1.75rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card.pricing-modern {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    border: 1px solid rgba(15, 23, 42, 0.07);
}

.pricing-card.popular {
    border: 2px solid #0f172a;
    box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(22,163,74,0.15);
    border-color: #16a34a;
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    border: 1px solid rgba(15,23,42,0.08);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15,23,42,0.12);
}

.plan-badge.muted {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(15,23,42,0.06);
}

.plan-badge.success {
    background: #e6f4ea;
    color: #15803d;
    border-color: #bbf7d0;
}

.plan-badge.navy {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.popular-badge {
    color: #16a34a;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.pricing-card.popular .card-header h3 {
    color: #0f172a;
    letter-spacing: 0.1em;
}

.pricing-card.popular .pricing-meta {
    color: #16a34a;
    font-weight: 700;
}

.card-header {
    text-align: center;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 6px;
}

.pricing-card .full-width {
    margin-top: auto;
}

.btn-primary,
.btn-outline {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
    background-color: #0c1326;
    border-color: #0c1326;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline:hover {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #fff;
    transform: translateY(-1px);
}

.pricing-meta {
    color: #0f172a;
    margin-top: 0.1rem;
    font-size: 0.98rem;
}

.lifetime-meta {
    color: #0f172a;
    font-weight: 700;
}

.features-list {
    margin: 1.35rem 0 1.35rem;
    flex-grow: 1;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.1rem 0;
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: #475569;
}

.feature-note {
    display: block;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.price-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.93rem;
}

.price-note svg {
    width: 18px;
    height: 18px;
}

.lifetime-hint {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    border: 1px solid var(--accent);
}

.btn-accent:hover {
    background-color: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .pricing-shell {
        padding: 1.75rem;
        border-radius: 24px;
    }
    .pricing-intro .headline {
        font-size: 1.6rem;
    }
    .billing-toggle {
        width: 100%;
    }
    .pricing-card {
        padding: 1.75rem;
    }
    .features-list {
        columns: 1;
        margin: 1.25rem 0;
    }
}

@media (max-width: 1024px) {
    .pricing-grid.three-up {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .features-list {
        flex-direction: column;
    }
}

/* Black Friday Promo Styles */
.pricing-card.bf-promo {
    border: 3px solid #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.2), var(--shadow-lg);
}

.bf-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.bf-badge svg {
    flex-shrink: 0;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.price-original {
    font-size: 1.25rem;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1;
}

.price-original span {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 4px;
}

.bf-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #d97706;
    line-height: 1;
}

.bf-price span {
    font-size: 1rem;
    color: #d97706;
    font-weight: 500;
    margin-left: 4px;
}

.bf-limited {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #991b1b;
    margin-top: 0.5rem;
}

.bf-limited svg {
    flex-shrink: 0;
}

/* Black Friday Banner */
.bf-banner {
    background: linear-gradient(335deg, rgb(178 67 255 / 27%) 17%, rgb(140 200 255 / 64%) 100%);
    border: 2px solid #fb923c;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 25px -5px rgba(251, 146, 60, 0.3);
}

.bf-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.bf-banner-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 280px;
}

.bf-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.bf-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.bf-text {
    flex: 1;
}

.bf-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.bf-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #171717;
    margin: 0;
}

.bf-sparkle {
    width: 24px;
    height: 24px;
    color: #991b1b;
}

.bf-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.bf-badge-inline svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

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

.bf-text p {
    font-size: 0.875rem;
    font-weight: 600;
    color: #292524;
    margin: 0;
}

.bf-banner-middle {
    text-align: center;
}

.bf-coupon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px dashed #fb923c;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bf-coupon:hover {
    background: #fff7ed;
    border-color: #ea580c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bf-coupon svg {
    width: 16px;
    height: 16px;
    color: #ea580c;
    flex-shrink: 0;
}

.bf-coupon code {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #171717;
}

.bf-copy-hint {
    font-size: 0.625rem;
    font-weight: 500;
    color: #78716c;
    margin-top: 0.25rem;
}

.bf-banner-right {
    text-align: center;
}

.bf-timer-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c2410c;
    margin-bottom: 0.5rem;
}

.bf-countdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bf-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bf-time-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d97706;
    line-height: 1;
}

.bf-time-label {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #78716c;
    margin-top: 0.125rem;
}

.bf-time-sep {
    font-size: 1.25rem;
    font-weight: 700;
    color: #d97706;
    line-height: 1;
}

/* Responsive adjustments for Black Friday banner */
@media (max-width: 1024px) {
    .bf-banner-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .bf-banner {
        padding: 1.25rem;
    }

    .bf-banner-content {
        gap: 1.5rem;
    }

    .bf-banner-left {
        min-width: 100%;
    }

    .bf-banner-middle {
        width: 100%;
    }

    .bf-title h2 {
        font-size: 1.125rem;
    }

    .bf-icon {
        width: 48px;
        height: 48px;
    }

    .bf-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Footer */
.footer {
    padding: 0;
    border-top: 1px solid var(--border);
    background: white;
}

.footer-container,
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.torito-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.torito-link:hover {
    color: var(--text-main);
}

img {
    max-width: 100%;
    height: auto;
}

.torito-logo {
    height: 20px !important;
    width: 20px !important;
    object-fit: contain;
}

/* Page Content (Privacy, Terms) */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.2;
}

.page-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    line-height: 1.3;
}

.page-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.4;
}

.page-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.page-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.page-content ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    list-style-type: disc;
    list-style-position: outside;
}

.page-content > p:first-of-type {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 920px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    animation: slideUp 0.3s ease-out;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: white;
    border: none;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.modal-close:hover {
    background: var(--bg-off);
    color: var(--text-main);
}

.modal-close:active {
    transform: scale(0.95);
    background: var(--border);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: 520px;
}

.modal-left {
    padding: 3rem 2.5rem;
}

.modal-logo {
    margin-bottom: 1.5rem;
}

.modal-logo img {
    height: 48px;
    width: auto;
}

.modal-left h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-highlight {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 0;
}

.highlight-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-off);
    border-radius: 10px;
    color: var(--text-main);
}

.highlight-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.highlight-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-right {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 0 20px 20px 0;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-cta-box {
    text-align: center;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-cta-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-cta-box > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-cta {
    background: white;
    color: #2563eb;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
}

.btn-cta:hover {
    background: var(--bg-off);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

.modal-cta {
    margin-bottom: 1rem;
}

.modal-note {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
}

.modal-note a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.modal-note a:hover {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .app-preview {
        transform: none;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-container,
    .footer-simple {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Mobile Modal Fixes */
    .modal-overlay {
        padding: 0;
        align-items: flex-start;
    }

    .modal-overlay.active {
        display: block;
    }

    .modal-content {
        margin: 0;
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 2rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        z-index: 100;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .modal-left {
        padding: 4.5rem 1.5rem 2rem;
        flex: 0 0 auto;
    }

    .modal-logo {
        margin-bottom: 1rem;
    }

    .modal-logo img {
        height: 36px;
    }

    .modal-left h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .modal-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .modal-features {
        gap: 1rem;
    }

    .highlight-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .highlight-icon svg {
        width: 16px;
        height: 16px;
    }

    .highlight-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .highlight-content p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .modal-right {
        border-radius: 0;
        padding: 2.5rem 1.5rem 3rem;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .modal-cta-box {
        width: 100%;
    }

    .modal-cta-box h3 {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .modal-cta-box > p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
        line-height: 1.6;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Dev Notes Section */
.dev-notes-section {
    padding: 3rem 0;
    background: var(--bg);
}

.dev-notes-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.dev-notes-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.dev-notes-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.dev-notes-content {
    flex: 1;
}

.dev-notes-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.dev-notes-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.dev-notes-content p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.dev-notes-link {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dev-notes-link:hover {
    background: var(--primary);
    color: white;
}

@media (max-width: 768px) {
    .dev-notes-section {
        padding: 2rem 0;
    }

    .dev-notes-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .dev-notes-image {
        width: 100px;
        height: 100px;
    }

    .dev-notes-link {
        width: 100%;
        justify-content: center;
    }
}
