/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1240a8;
    --accent: #f97316;
    --accent-light: #fff7ed;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --danger: #ef4444;
    --success: #22c55e;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
}

/* ===== LOADING SCREEN ===== */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.loading-bar-container {
    width: 240px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    animation: load-bar 2.5s ease-in-out forwards;
}

@keyframes load-bar {
    0% { width: 0%; }
    30% { width: 20%; }
    50% { width: 45%; }
    70% { width: 60%; }
    85% { width: 80%; }
    95% { width: 92%; }
    100% { width: 100%; }
}

/* ===== POPUP ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.popup {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.popup h3 {
    color: var(--danger);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.popup p {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.popup .popup-small {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
}

.popup button {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background 0.2s;
}

.popup button:hover {
    background: var(--primary-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-300);
    z-index: 1000;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.logo-top {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

.logo-kek {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--gray-500);
    width: 100%;
    margin-top: -4px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
}

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

/* ===== HERO ===== */
.hero {
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent), #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--gray-700);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.1s;
}

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

.btn-secondary {
    background: var(--white);
    color: var(--gray-700);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    transition: border-color 0.2s, transform 0.1s;
}

.btn-secondary:hover {
    border-color: var(--gray-500);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.hero-disclaimer {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Fake app window */
.hero-visual {
    perspective: 1000px;
}

.fake-app {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-300);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.fake-app:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.fake-app-bar {
    background: var(--gray-100);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--gray-300);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.fake-app-title {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-left: 8px;
}

.fake-app-body {
    padding: 20px;
}

.fake-field {
    margin-bottom: 12px;
}

.fake-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.fake-field select,
.fake-field input,
.fake-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
    background: var(--gray-100);
}

.fake-field textarea {
    height: 48px;
    resize: none;
}

.fake-submit {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fake-submit button {
    background: var(--gray-300);
    color: var(--gray-500);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.fake-error {
    font-size: 0.7rem;
    color: var(--danger);
    font-weight: 500;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero-sub { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .fake-app { transform: none; }
}

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--dark);
    padding: 48px 24px;
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ===== FEATURES ===== */
.features {
    padding: 96px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.section-sub {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

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

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

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== WORKFLOW ===== */
.workflow-section {
    padding: 96px 24px;
    background: var(--gray-100);
}

.workflow {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.workflow-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 200px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 0 auto 12px;
}

.workflow-step h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.8rem;
    color: var(--gray-700);
}

.workflow-arrow {
    font-size: 1.5rem;
    color: var(--gray-500);
    align-self: center;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .workflow { flex-direction: column; align-items: center; }
    .workflow-arrow { transform: rotate(90deg); margin-top: 0; }
    .workflow-step { max-width: 340px; }
}

/* ===== COMPARISON TABLE ===== */
.comparison {
    padding: 96px 24px;
    max-width: 800px;
    margin: 0 auto;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

thead th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

thead th.highlight-col {
    background: var(--accent);
    color: var(--white);
}

tbody td.highlight-col {
    background: var(--accent-light);
    font-weight: 600;
    color: var(--gray-900);
}

tbody tr:hover {
    background: var(--gray-100);
}

tbody tr:hover td.highlight-col {
    background: #fed7aa;
}

.comparison-footnote {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 16px;
    font-style: italic;
}

/* ===== PRICING ===== */
.pricing {
    padding: 96px 24px;
    background: var(--gray-100);
}

.pricing-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    border: 2px solid transparent;
    transition: transform 0.2s;
}

.price-card:hover {
    transform: translateY(-4px);
}

.price-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-xl);
    transform: scale(1.03);
}

.price-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    text-transform: uppercase;
}

.price-tier {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.price-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 24px;
}

.price-amount span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-500);
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.price-card li {
    font-size: 0.88rem;
    color: var(--gray-700);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    padding-left: 24px;
    position: relative;
}

.price-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.price-card li.strikethrough {
    text-decoration: line-through;
    color: var(--gray-500);
}

.price-card li.strikethrough::before {
    content: "\2717";
    color: var(--danger);
}

.pricing-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    max-width: 700px;
    margin: 32px auto 0;
    font-style: italic;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 96px 24px;
}

.testimonial-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 28px;
}

.stars {
    color: #eab308;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ===== UPDATE SECTION ===== */
.update-section {
    padding: 96px 24px;
    background: var(--gray-100);
}

.update-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.update-item {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: var(--shadow);
}

.update-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.update-item h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.update-item p {
    font-size: 0.85rem;
    color: var(--gray-700);
}

/* ===== FAQ ===== */
.faq {
    padding: 96px 24px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-300);
}

.faq-question {
    width: 100%;
    background: none;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-toggle {
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s;
    min-width: 24px;
    text-align: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 96px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: var(--white);
}

.final-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 32px;
}

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

.final-cta .btn-primary:hover {
    background: var(--gray-100);
}

.final-cta .hero-disclaimer {
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--gray-500);
    padding: 64px 24px 24px;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-tagline {
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1000px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--gray-700);
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
