/* public/css/landing.css */

/* Base layout */

.landing-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f6f7fb;
    color: #1f2328;
}

/* Containers & sections */

.landing-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 3.5rem 0;
}

.section-light {
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.9rem;
    font-weight: 600;
}

.section-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

/* Navbar */

.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background: rgba(246, 247, 251, 0.9);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: #5665ba;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    font-weight: 600;
    color: #1f2328;
    letter-spacing: 0.02em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.9rem;
    text-decoration: none;
    color: #4b5563;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: rgba(86, 101, 186, 0.08);
    color: #111827;
}

.nav-dashboard {
    font-weight: 500;
}

/* Buttons */

.btn-primary,
.btn-ghost,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: #5665ba;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(86, 101, 186, 0.28);
}

.btn-primary:hover {
    background: #4a57a5;
}

.btn-ghost {
    background: transparent;
    color: #111827;
    border-color: rgba(148, 163, 184, 0.4);
}

.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.12);
}

.btn-outline {
    background: #ffffff;
    color: #111827;
    border-color: rgba(148, 163, 184, 0.6);
}

.btn-outline:hover {
    border-color: #5665ba;
    color: #111827;
}

.nav-cta {
    margin-left: 0.5rem;
    background: #5665ba;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(86, 101, 186, 0.25);
}

.nav-cta:hover {
    background: #4a57a5;
}

/* Hero */

.hero {
    padding: 3.75rem 0 3.25rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

.hero-copy h1 {
    margin: 0 0 0.75rem 0;
    font-size: 2.3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin: 0 0 1.3rem 0;
    font-size: 0.95rem;
    color: #4b5563;
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.8rem;
}

.hero-footnote {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Hero preview card */

.hero-aside {
    justify-self: center;
}

.hero-preview-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem 1.1rem 1.1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.28);
    max-width: 340px;
    font-size: 0.78rem;
}

.hero-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.hero-preview-domain {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
    color: #4b5563;
}

.hero-preview-body {
    border-radius: 12px;
    padding: 0.75rem 0.8rem;
    background: #f9fafb;
}

.preview-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.preview-method {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    margin-right: 0.3rem;
}

.preview-method.get {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.06);
}

.preview-path {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.72rem;
}

.preview-label {
    font-size: 0.7rem;
    color: #6b7280;
}

.preview-value {
    font-size: 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.preview-json {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
    background: #0f172a;
    color: #e5e7eb;
    font-size: 0.7rem;
    line-height: 1.35;
    overflow-x: auto;
}

/* Pills */

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 500;
}

.pill-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.pill-soon {
    background: rgba(251, 191, 36, 0.1);
    color: #92400e;
}

/* Flow line (playful dashed path) */

.flow-path {
    position: absolute;
    pointer-events: none;
    inset: auto 0 0 0;
    height: 42px;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.0) 0%, rgba(148, 163, 184, 0.6) 50%, rgba(148, 163, 184, 0.0) 100%);
    opacity: 0.35;
    mask-image: radial-gradient(circle at 0 50%, transparent 0, black 10px, black 85%, transparent 100%);
}

/* Features */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.2rem 1.3rem;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.7);
    background: #f9fafb;
}

.feature-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Steps */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-card {
    position: relative;
    padding: 1.25rem 1.2rem 1.2rem;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.step-number {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
}

.step-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
}

.step-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.step-card code {
    font-size: 0.8rem;
    background: rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
}

/* Roadmap */

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.roadmap-item {
    padding: 1.1rem 1.2rem;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px dashed rgba(148, 163, 184, 0.8);
}

.roadmap-item h3 {
    margin: 0.4rem 0 0.45rem 0;
    font-size: 1rem;
}

.roadmap-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

/* Pricing */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    padding: 1.5rem 1.3rem 1.4rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.05rem;
}

.pricing-price {
    margin: 0 0 0.8rem 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.pricing-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.15rem;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #4b5563;
}

.pricing-list li {
    margin-bottom: 0.25rem;
}

.pricing-card .btn-outline,
.pricing-card .btn-primary {
    margin-top: auto;
    align-self: flex-start;
}

.pricing-card-highlight {
    border-color: #5665ba;
    box-shadow: 0 18px 40px rgba(86, 101, 186, 0.28);
    position: relative;
}

.pricing-card-highlight::before {
    content: "Most popular";
    position: absolute;
    top: -0.65rem;
    left: 1.3rem;
    font-size: 0.7rem;
    font-weight: 600;
    background: #5665ba;
    color: #ffffff;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* CTA strip */

.section-cta {
    background: radial-gradient(circle at top left, rgba(86, 101, 186, 0.14), transparent 55%),
    #0f172a;
    color: #e5e7eb;
    padding: 2.8rem 0;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-text h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.7rem;
}

.cta-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

.cta-actions {
    display: flex;
    gap: 0.85rem;
}

/* Footer */

.landing-footer {
    padding: 1.3rem 0 1.6rem;
    font-size: 0.8rem;
    color: #6b7280;
    background: #f6f7fb;
}

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

.footer-meta {
    font-size: 0.78rem;
}

/* Responsive */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-aside {
        order: -1;
        margin-bottom: 1.5rem;
    }

    .feature-grid,
    .steps-grid,
    .roadmap-grid,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-inner {
        padding-inline: 1rem;
    }

    .navbar-links {
        gap: 0.6rem;
    }

    .nav-cta {
        display: none; /* optional: hide extra button on very small screens */
    }
}

@media (max-width: 640px) {
    .hero-copy h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .navbar-links {
        display: none; /* if you want, later you can add a mobile menu */
    }

    .landing-navbar {
        background: #f6f7fb;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}
