/* assets/css/app.css */

/* Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --c-primary: #ffc400;
    --c-primary-dark: #e0a800;
    --c-secondary: #0d2f4f;
    --c-bg: #f5f7fb;
    --c-bg-alt: #eef2f7;
    --c-bg-card: #ffffff;
    --c-border: #dde3ee;
    --c-text: #1a2333;
    --c-muted: #5f6b82;
    --c-danger: #ff4d6a;

    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.12);

    --nav-height: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--c-text);
    background:
        radial-gradient(circle at top left, rgba(255, 196, 0, 0.23), transparent 55%),
        radial-gradient(circle at bottom right, rgba(13, 47, 79, 0.18), transparent 50%),
        var(--c-bg);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */

.page-content {
    padding-top: var(--nav-height);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & navigation */

.site-header {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
    transition: box-shadow 0.18s ease-out, background 0.18s ease-out;
}

.site-header--scrolled {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    background: #ffffff;
}

.nav {
    max-width: 1180px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav__logo {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffc400);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.5);
}

.nav__logo-mark {
    font-size: 18px;
    font-weight: 800;
    color: #0d2f4f;
}

.nav__brand-text {
    display: flex;
    flex-direction: column;
}

.nav__brand-name {
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--c-secondary);
}

.nav__brand-tagline {
    font-size: 11px;
    color: var(--c-muted);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.nav__menu a {
    color: var(--c-muted);
    position: relative;
    padding-block: 4px;
}

.nav__menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    transition: width 0.2s ease-out;
}

.nav__menu a:hover {
    color: var(--c-secondary);
}

.nav__menu a:hover::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-out;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--c-primary), #ffe15e);
    color: #0d2f4f;
    box-shadow: 0 10px 30px rgba(255, 196, 0, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(255, 196, 0, 0.45);
}

.btn--ghost {
    background: #ffffff;
    color: var(--c-secondary);
    border-color: rgba(148, 163, 184, 0.55);
}

.btn--ghost:hover {
    background: #f3f4f6;
}

/* Mobile nav toggle */

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav__toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--c-secondary);
}

/* Hero */

.hero {
    padding: 80px 0 70px;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(13, 47, 79, 0.06);
    border: 1px solid rgba(13, 47, 79, 0.18);
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 16px;
}

.hero__eyebrow-pill {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--c-primary), #ffffff);
}

.hero__title {
    font-size: clamp(2.3rem, 3vw, 3rem);
    line-height: 1.1;
    margin: 0 0 16px;
    color: var(--c-secondary);
}

.hero__highlight {
    color: var(--c-primary-dark);
}

.hero__subtitle {
    margin: 0 0 22px;
    color: var(--c-muted);
    max-width: 560px;
    font-size: 15px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.hero__small {
    font-size: 12px;
    color: var(--c-muted);
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: var(--c-muted);
    background: rgba(255, 255, 255, 0.9);
}

/* Hero visual */

.hero__visual {
    position: relative;
}

.hero-card {
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--c-muted);
}

.hero-card__title {
    font-weight: 600;
    color: var(--c-secondary);
}

.hero-card__tag {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(5, 11, 18, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 11px;
}

.hero-card__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 10px;
}

.hero-card__list {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card__list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.45);
}

.hero-card__list-item:last-child {
    border-bottom: 0;
}

.hero-card__status {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(7, 201, 132, 0.12);
    color: #0f766e;
}

.hero-card__chart {
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card__chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.hero-card__bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--c-primary), rgba(255, 196, 0, 0.2));
}

/* Sections */

.section {
    padding: 60px 0;
}

.section--alt {
    background: var(--c-bg-alt);
}

.section__header {
    text-align: center;
    margin-bottom: 36px;
}

.section__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-muted);
    margin-bottom: 8px;
}

.section__title {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--c-secondary);
}

.section__subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--c-muted);
}

/* Features */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--c-border);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.feature-card__icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(255, 196, 0, 0.17);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-card__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--c-secondary);
}

.feature-card__text {
    font-size: 13px;
    color: var(--c-muted);
    margin: 0;
}

/* How it works / steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.step-card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--c-border);
}

.step-card__number {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #0d2f4f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card__title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-secondary);
}

.step-card__text {
    margin: 0;
    font-size: 13px;
    color: var(--c-muted);
}

/* Screenshots / exemples */

.screenshots-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: stretch;
}

.screenshot-card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-soft);
}

.screenshot-card__label {
    font-size: 12px;
    color: var(--c-muted);
    margin-bottom: 8px;
}

.screenshot-placeholder {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 196, 0, 0.06), rgba(13, 47, 79, 0.06));
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 12px;
    min-height: 190px;
}

/* Stats & trafic section */

.stats-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: stretch;
}

.stat-card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--c-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.stat-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stat-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-secondary);
    margin: 0;
}

.stat-card__badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.07);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.stat-card__graph {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    min-height: 160px;
}

.stat-card__caption {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--c-muted);
}

.traffic-map {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 18px;
    align-items: center;
}

.traffic-map__image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: #ffffff;
}

.traffic-map__legend {
    font-size: 13px;
    color: var(--c-muted);
}

.traffic-map__legend ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

/* Content SEO sections */

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: flex-start;
}

.content-grid--two {
    grid-template-columns: 3fr 2fr;
}

.content-block {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    border: 1px solid var(--c-border);
    font-size: 14px;
}

.content-block h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--c-secondary);
}

.content-block p {
    margin: 0 0 8px;
    color: var(--c-muted);
}

.content-block ul {
    margin: 0 0 8px;
    padding-left: 18px;
    color: var(--c-muted);
    font-size: 13px;
}

/* Pricing */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 18px 22px;
    border: 1px solid var(--c-border);
}

.pricing-card--highlight {
    border-color: var(--c-primary);
    box-shadow: 0 18px 45px rgba(255, 196, 0, 0.25);
}

.pricing-card__name {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 5px;
    color: var(--c-secondary);
}

.pricing-card__price {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.pricing-card__hint {
    font-size: 12px;
    color: var(--c-muted);
    margin: 0 0 10px;
}

.pricing-card ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
    color: var(--c-muted);
}

.pricing-card li::before {
    content: "• ";
    color: var(--c-primary);
}

/* FAQ */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item + .faq-item {
    border-top: 1px solid rgba(148, 163, 184, 0.5);
    margin-top: 14px;
    padding-top: 14px;
}

.faq-item__q {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
    color: var(--c-secondary);
}

.faq-item__a {
    margin: 0;
    font-size: 13px;
    color: var(--c-muted);
}

/* CTA finale */

.cta {
    text-align: center;
    padding: 60px 0 80px;
}

.cta__title {
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--c-secondary);
}

.cta__subtitle {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--c-muted);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(209, 213, 219, 0.9);
    padding: 22px 0 26px;
    background: #ffffff;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13px;
    color: var(--c-muted);
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__logo {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffc400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d2f4f;
    font-weight: 800;
    font-size: 15px;
}

.footer__title {
    margin: 0;
    font-weight: 600;
    color: var(--c-secondary);
}

.footer__subtitle {
    margin: 0;
    font-size: 12px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer__links a {
    font-size: 12px;
}

.footer__copy {
    margin: 0;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 900px) {
    .hero__inner,
    .features-grid,
    .steps,
    .screenshots-grid,
    .pricing-grid,
    .stats-grid,
    .traffic-map,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 60px;
    }
}

@media (max-width: 768px) {
    .nav__menu,
    .nav__actions {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .nav--open .nav__right {
        position: absolute;
        top: var(--nav-height);
        right: 0;
        left: 0;
        padding: 14px 20px 16px;
        background: #ffffff;
        border-bottom: 1px solid rgba(209, 213, 219, 0.9);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .nav--open .nav__menu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav--open .nav__actions {
        display: flex;
        justify-content: flex-start;
    }

    .footer__inner {
        align-items: flex-start;
    }
}
