/* ═══════════════════════════════════════════════════
   KANBAN ONLINE — Landing Page
   Aesthetic: Clean editorial, warm confidence
   ═══════════════════════════════════════════════════ */

   :root {
    --ink: #1a1a2e;
    --ink-light: #2c3e50;
    --ink-muted: #64748b;
    --ink-faint: #94a3b8;
    --surface: #ffffff;
    --surface-warm: #faf9f7;
    --surface-cool: #f1f5f9;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.15);
    --coral: #ef4444;
    --amber: #f59e0b;
    --emerald: #10b981;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--surface);
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── Scroll Reveal ─────────────────────────────── */
.feature-card,
.step,
.faq-item,
.proof-stat {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.feature-card.revealed,
.step.revealed,
.faq-item.revealed,
.proof-stat.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════ NAVIGATION ═══════════════ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    padding: 10px 40px;
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-login {
    font-weight: 600 !important;
    color: var(--ink) !important;
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
}

/* Mobile nav toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #f1f5f9;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-mobile a {
    text-decoration: none;
    color: var(--ink-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 11px 12px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.nav-mobile a:hover {
    background: #f1f5f9;
    color: var(--ink);
}

.nav-mobile .nav-cta {
    margin-top: 6px;
    text-align: center;
    padding: 12px 20px !important;
}

.nav-mobile.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-mobile:not(.hidden) { display: flex; }
    .landing-nav { padding: 14px 20px; }
    .landing-nav.scrolled { padding: 10px 20px; }
}


/* ═══════════════ HERO ═══════════════ */

.hero {
    position: relative;
    padding: 140px 40px 80px;
    overflow: hidden;
    background: var(--surface-warm);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--emerald);
    bottom: -150px;
    left: -100px;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--amber);
    top: 40%;
    left: 50%;
}

.hero-content {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-text h1 em {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--ink-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    border-color: var(--ink-muted);
    background: rgba(0, 0, 0, 0.02);
}

/* ─── Hero Visual / Preview Board ───────────────── */
.hero-visual {
    flex: 1;
    min-width: 0;
}

.preview-board {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.04);
    animation: boardFloat 4s ease-in-out infinite;
}

@keyframes boardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.preview-col {
    flex: 1;
}

.preview-col-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.col-todo     { background: #fef2f2; color: var(--coral); }
.col-progress { background: #fffbeb; color: var(--amber); }
.col-done     { background: #ecfdf5; color: var(--emerald); }

.preview-card {
    padding: 10px 12px;
    background: var(--surface-cool);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-light);
    margin-bottom: 6px;
    border-left: 3px solid #e2e8f0;
}

.pc-low    { border-left-color: #94a3b8; }
.pc-medium { border-left-color: var(--accent); }
.pc-high   { border-left-color: var(--amber); }
.pc-urgent { border-left-color: var(--coral); }
.pc-fire   { border-left-color: #991b1b; }
.pc-done   { border-left-color: var(--emerald); opacity: 0.6; }

@media (max-width: 960px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.4rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero { padding: 120px 20px 60px; }
}

@media (max-width: 640px) {
    .hero-text h1 { font-size: 2rem; }
    .preview-board { padding: 14px; gap: 8px; }
    .preview-card { font-size: 0.7rem; padding: 8px 10px; }
}


/* ═══════════════ SOCIAL PROOF BAR ═══════════════ */

.proof-bar {
    background: var(--ink);
    padding: 28px 40px;
}

.proof-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.proof-stat {
    text-align: center;
}

.proof-stat strong {
    display: block;
    font-size: 1.6rem;
    color: #fff;
    font-weight: 700;
}

.proof-stat span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 640px) {
    .proof-inner { gap: 24px; }
    .proof-stat strong { font-size: 1.3rem; }
    .proof-bar { padding: 24px 20px; }
}


/* ═══════════════ SECTIONS COMMON ═══════════════ */

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.section-subheading {
    text-align: center;
    font-size: 1.05rem;
    color: var(--ink-muted);
    margin-bottom: 50px;
}


/* ═══════════════ FEATURES ═══════════════ */

.features {
    padding: 90px 40px;
    background: var(--surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid #f0f0f0;
    background: var(--surface);
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: #e0e7ff;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.06);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-cool);
    border-radius: 10px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features { padding: 60px 20px; }
}

@media (max-width: 520px) {
    .features-grid { grid-template-columns: 1fr; }
}


/* ═══════════════ HOW IT WORKS ═══════════════ */

.how-it-works {
    padding: 90px 40px;
    background: var(--surface-warm);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.step {
    text-align: center;
    max-width: 260px;
    padding: 0 20px;
}

.step-number {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    background: #eff6ff;
    border-radius: 50%;
    border: 2px solid #dbeafe;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: #e2e8f0;
    margin-top: 26px;
    flex-shrink: 0;
}

.steps-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .steps { flex-direction: column; align-items: center; gap: 20px; }
    .step-connector { width: 2px; height: 30px; }
    .how-it-works { padding: 60px 20px; }
}


/* ═══════════════ FAQ ═══════════════ */

.faq {
    padding: 90px 40px;
    background: var(--surface);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-arrow {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--ink-faint);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-arrow {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq { padding: 60px 20px; }
}


/* ═══════════════ FINAL CTA ═══════════════ */

.final-cta {
    padding: 80px 40px;
    background: var(--ink);
    text-align: center;
}

.final-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 12px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 28px;
}

.final-cta .btn-hero-primary {
    font-size: 1.05rem;
    padding: 16px 36px;
}


/* ═══════════════ FOOTER ═══════════════ */

.landing-footer {
    background: #0f172a;
    padding: 50px 40px 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-left p {
    font-size: 0.88rem;
    line-height: 1.5;
    max-width: 260px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; gap: 30px; }
    .footer-links { gap: 30px; }
    .landing-footer { padding: 40px 20px 0; }
}

@media (max-width: 480px) {
    .footer-links { flex-direction: column; gap: 24px; }
}


/* ─── Utility ───────────────────────────────────── */
.hidden {
    display: none !important;
}

.cta-contact {
    margin-top: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.cta-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color 0.2s;
}

.cta-contact a:hover {
    color: #fff;
}