:root {
    --primary: #0078D7;
    --primary-dark: #005A9E;
    --accent: #00B294;
    --text: #1A1A2E;
    --text-light: #555;
    --bg: #FAFBFC;
    --card-bg: #FFFFFF;
    --border: #E1E4E8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Sticky top nav - overlays the full-bleed hero, then floats over content. */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    background: rgba(0, 30, 60, 0.55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__home {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.site-nav__home img { width: 28px; height: 28px; }

.site-nav__links {
    display: flex;
    gap: 22px;
    margin-left: auto;
}

.site-nav__links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.site-nav__links a:hover { color: white; }

.site-nav__buy {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.site-nav__buy:hover { background: #009C80; }

/* Language switch: labelled with the language you would get, not the one you are on. */
.site-nav__lang {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
}

.site-nav__lang:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.7);
}

/* Without this the fixed nav covers the heading of whatever section you jump to. */
section[id] { scroll-margin-top: 72px; }

@media (max-width: 720px) {
    .site-nav__links { display: none; }
    .site-nav__buy { margin-left: auto; }
    .site-nav__lang { margin-left: auto; }
}

/* Trust - why it is safe to point this at a production project */
.trust {
    padding: 64px 24px;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.trust h2 { text-align: center; }

.trust .lead {
    text-align: center;
    color: var(--text-light);
    max-width: 640px;
    margin: 12px auto 40px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.trust-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
}

.trust-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.trust-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.trust-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 32px;
}

/* Closing CTA - the page used to end on a support list with nothing to click. */
.closing-cta {
    padding: 72px 24px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.closing-cta h2 { color: white; }

.closing-cta p {
    max-width: 560px;
    margin: 12px auto 32px;
    opacity: 0.9;
}

/* Header */
header {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 24px 60px;
    text-align: center;
    color: white;
    background:
        linear-gradient(135deg, rgba(0, 35, 70, 0.5) 0%, rgba(0, 70, 130, 0.6) 100%),
        url('assets/01_hero.png') center top/cover no-repeat;
}

@supports (animation-timeline: scroll()) {
    header {
        animation-name: hero-parallax;
        animation-duration: auto;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: scroll();
        animation-range: 0 60vh;
    }
}

@keyframes hero-parallax {
    to { background-position: 0 0, center bottom; }
}

@media (prefers-reduced-motion: reduce) {
    header { animation: none; }
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-decoration: none;
    opacity: 0.9;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 30, 60, 0.5);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: opacity 0.2s, background 0.2s;
}

.scroll-indicator:hover {
    opacity: 1;
    background: rgba(0, 30, 60, 0.7);
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.55; }
}

@supports (animation-timeline: scroll()) {
    .scroll-indicator {
        animation-name: scroll-indicator-fade;
        animation-duration: auto;
        animation-timing-function: linear;
        animation-fill-mode: both;
        animation-timeline: scroll();
        animation-range: 0 30vh;
    }
}

@keyframes scroll-indicator-fade {
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-indicator,
    .scroll-indicator svg { animation: none; }
}

.hero-content {
    position: relative;
    background: rgba(0, 30, 60, 0.5);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 640px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.header-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: block;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-sizing: content-box;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

header p {
    font-size: 1.15rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 32px;
}

.cta-button {
    display: inline-block;
    background: #00B294;
    color: white;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.cta-button:hover { background: #009B80; }

.cta-secondary {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    font-size: 1rem;
    opacity: 0.85;
    margin-left: 16px;
}

.cta-secondary:hover { opacity: 1; text-decoration: underline; }

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Problem / Solution */
.problem-solution {
    padding: 64px 24px;
}

.problem-solution .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto repeat(4, auto);
    column-gap: 48px;
    row-gap: 0;
}

.problem, .solution {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 5;
}

.problem-solution h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.problem h2 { color: #C62828; }
.solution h2 { color: var(--accent); }

.problem-solution ul {
    display: contents;
}

.problem-solution li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-light);
    list-style: none;
}

.problem li::before { content: "X"; position: absolute; left: 0; color: #C62828; font-weight: 700; }
.solution li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* Pricing table */
.pricing {
    padding: 64px 24px;
    background: white;
}

.pricing h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(9, auto);
    column-gap: 32px;
    row-gap: 0;
    max-width: 720px;
    margin: 0 auto;
}

.plan {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: 1 / span 9;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.plan.pro {
    border-color: var(--primary);
    position: relative;
}

.plan.pro::after {
    content: "Recommended";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 12px;
}

.plan h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.plan .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 16px 0;
}

.plan .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

.plan .price-anchor {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin: -8px 0 16px;
}

.plan ul {
    display: contents;
}

.plan li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    text-align: left;
    list-style: none;
}

.plan li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.plan li.na::before {
    content: "X";
    color: #C62828;
}

.plan-button {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 16px;
    align-self: center;
    justify-self: center;
    transition: background 0.2s;
}

.plan-button.free {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.plan-button.free:hover { background: #E8E8E8; }

.plan-button.pro {
    background: var(--primary);
    color: white;
}

.plan-button.pro:hover { background: var(--primary-dark); }

/* Product screenshot */
.screenshot-section {
    padding: 64px 24px;
    background: white;
    text-align: center;
}

.screenshot-section .container {
    max-width: 1480px;
}

.screenshot-section h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.screenshot-section p.lead {
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

.screenshot-frame {
    max-width: 1480px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(10, 25, 60, 0.18),
                0 4px 12px rgba(10, 25, 60, 0.08);
    border: 1px solid var(--border);
    background: white;
}

.screenshot-frame img,
.screenshot-frame video {
    display: block;
    width: 100%;
    height: auto;
}

.chapter-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 32px;
    max-width: 720px;
    margin: 20px auto 0;
    font-size: 0.92rem;
    color: var(--text-light);
}

.chapter-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chapter-row b {
    color: var(--primary);
    font-weight: 600;
}

.screenshot-caption {
    max-width: 720px;
    margin: 24px auto 0;
    color: var(--text-light);
    font-size: 0.92rem;
    font-style: italic;
}

/* Features grid */
.features {
    padding: 80px 24px;
    background: var(--bg);
}

.features h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.features .lead {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 25, 60, 0.08);
}

.feature-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(0, 120, 215, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card .icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* How it works */
/* Workflows */
.workflows {
    padding: 64px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.workflows h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.workflows .lead {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

.workflows-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}

.workflow-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.workflow h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 6px;
}

.workflow p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Support */
.support {
    padding: 64px 24px;
    text-align: center;
}

.support h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.support p {
    color: var(--text-light);
    margin-bottom: 32px;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.support-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.2s;
}

.support-link:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
footer {
    background: var(--text);
    color: #AAA;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.85rem;
}

footer a {
    color: #CCC;
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ */
.faq {
    padding: 64px 24px;
    background: white;
    border-top: 1px solid var(--border);
}

.faq h2 {
    text-align: center;
    margin-bottom: 32px;
    font-size: 1.8rem;
    color: var(--text);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
}

.faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-more {
    margin-top: 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.faq-more a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.faq-more a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    header h1 { font-size: 1.8rem; }
    .hero-content { padding: 32px 24px; max-width: 92%; }
    .problem-solution .container { grid-template-columns: 1fr; grid-template-rows: none; gap: 32px; }
    .problem-solution .problem, .problem-solution .solution { display: block; grid-row: auto; }
    .problem-solution ul { display: block; }
    .pricing-grid { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 32px; }
    .plan { display: block; grid-row: auto; }
    .plan ul { display: block; }
    .workflows-grid { grid-template-columns: 1fr; row-gap: 32px; }
    .features-grid { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    .cta-secondary { display: block; margin: 16px 0 0 0; }
    .support-links { flex-direction: column; align-items: center; }
}

/* Zoomable images + lightbox */
.zoomable { cursor: zoom-in; }

dialog.zoom-modal {
    border: none;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    overflow: visible;
}

dialog.zoom-modal::backdrop {
    background: rgba(10, 15, 30, 0.92);
}

dialog.zoom-modal img {
    display: block;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-out;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

dialog.zoom-modal[open] {
    animation: zoom-modal-in 0.18s ease-out;
}

@keyframes zoom-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
