@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0d0d0f;
    --bg-card: #151518;
    --bg-warm: #111114;
    --accent: #06d2d1;
    --accent-dim: rgba(6, 210, 209, 0.12);
    --accent-glow: rgba(6, 210, 209, 0.06);
    --text: #e8e8ec;
    --text-muted: #9a9aaa;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 1.05rem;
    -webkit-font-smoothing: antialiased;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.1rem 0;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(13, 13, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.nav-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 36px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 0.45rem 1.15rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.84rem !important;
    transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Container ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Hero animated grid */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 210, 209, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 210, 209, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 50%, black 20%, transparent 70%);
    z-index: 0;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-visual svg {
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(6, 210, 209, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== Sections ===== */
.section {
    padding: 7rem 0;
}

.section-warm {
    background: var(--bg-warm);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 3.5rem;
    max-width: 560px;
    line-height: 1.75;
}

/* ===== Scroll hint ===== */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    animation: hintBounce 2s ease-in-out infinite;
    transition: opacity 0.4s;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint svg {
    color: var(--accent);
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===== Miksi Empor (grid) ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.why-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.why-card:hover {
    border-color: rgba(6, 210, 209, 0.35);
    transform: translateY(-2px);
}

.why-card .why-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.9rem;
    opacity: 0.7;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* ===== Palvelut (flow layout) ===== */
.services-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-category-header {
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
}

.service-category-header:first-child {
    padding-top: 0.5rem;
    border-top: none;
}

.service-category-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.service-category-header + .service-block {
    padding-top: 1.5rem;
}

.service-category-header + .service-block {
    border-top: none;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: center;
    padding: 3.5rem 0;
}

.service-block + .service-block {
    border-top: 1px solid var(--border);
}

.service-block:first-child {
    padding-top: 0;
}

.service-block:nth-child(even) {
    direction: rtl;
}

.service-block:nth-child(even) > * {
    direction: ltr;
}

.service-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.service-text p:last-child {
    margin-bottom: 0;
}

.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.5rem;
}

.service-visual svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* ===== Tuotteet ===== */
.products-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.product-card:hover {
    border-color: rgba(6, 210, 209, 0.3);
}

.product-card-featured {
    border-color: rgba(6, 210, 209, 0.35);
    background: linear-gradient(180deg, rgba(6, 210, 209, 0.05), var(--bg) 50%);
}

.product-card-featured:hover {
    border-color: rgba(6, 210, 209, 0.55);
}

.product-flag {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.15rem 0.55rem;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 999px;
    font-weight: 700;
    vertical-align: middle;
}

.product-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-mark svg {
    width: 100%;
    max-width: 110px;
    height: auto;
}

.product-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.product-content h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.product-content p {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

/* ===== Prosessi (timeline) ===== */
.process-steps {
    max-width: 640px;
    display: flex;
    flex-direction: column;
}

.process-step {
    display: flex;
    gap: 1.75rem;
    align-items: stretch;
}

.step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-warm);
    flex-shrink: 0;
    margin-top: 0.3rem;
    transition: background 0.3s;
}

.process-step:hover .step-dot {
    background: var(--accent);
}

.step-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.15;
    margin: 0.4rem 0;
}

.step-content {
    padding-bottom: 2.5rem;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ===== Referenssit ===== */
.refs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ref-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: baseline;
}

.ref-item:first-child {
    padding-top: 0;
}

.ref-item:last-child {
    border-bottom: none;
}

.ref-item h3 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
}

.ref-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

/* ===== Meistä ===== */
.about-text-wide {
    max-width: 680px;
}

.about-text-wide p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.about-text-wide strong {
    color: var(--text);
}

/* ===== Yhteystiedot ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; }

.captcha-group input { max-width: 140px; }

.contact-info {
    padding-top: 0.5rem;
}

.contact-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-role {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.contact-links a {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: opacity 0.2s;
}

.contact-links a:hover { opacity: 0.7; }

.contact-note {
    color: var(--text-muted);
    font-size: 0.92rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--accent-glow);
    line-height: 1.65;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

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

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* ===== Hinnoittelu ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 1rem;
}

.pricing-card {
    position: relative;
    padding: 2.25rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover {
    border-color: rgba(6, 210, 209, 0.35);
    transform: translateY(-2px);
}

.pricing-card-featured {
    border-color: rgba(6, 210, 209, 0.5);
    background: linear-gradient(180deg, rgba(6, 210, 209, 0.05), var(--bg-card) 40%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-name {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.pricing-period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-tag {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pricing-includes {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-style: italic;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pricing-features li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--text);
}

.pricing-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 10px;
    height: 5px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}

.pricing-extra {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.pricing-card .btn {
    display: block;
    text-align: center;
    width: 100%;
}

.pricing-note {
    margin: 3rem auto 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 680px;
}

.pricing-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.pricing-card.reveal:nth-child(3) { transition-delay: 0.16s; }

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 1.5rem auto 0;
        gap: 2rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }
}

/* ===== Hero badges (Portal) ===== */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.badge-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(6, 210, 209, 0.35);
    border-radius: 999px;
    background: var(--accent-glow);
}

/* ===== why-grid 3-col variant ===== */
.why-grid.why-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .why-grid.why-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== Compare grid (ongelma / ratkaisu) ===== */
.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.compare-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.compare-card-before {
    opacity: 0.85;
}

.compare-card-after {
    border-color: rgba(6, 210, 209, 0.35);
    background: linear-gradient(180deg, rgba(6, 210, 209, 0.04), var(--bg-card) 40%);
}

.compare-card:hover {
    transform: translateY(-2px);
}

.compare-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.compare-card-after .compare-label {
    color: var(--accent);
}

.compare-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.compare-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.compare-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.compare-card-before .compare-list li::before {
    content: "×";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-muted);
    font-weight: 700;
    opacity: 0.6;
}

.compare-card-after .compare-list li {
    color: var(--text);
}

.compare-card-after .compare-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 10px;
    height: 5px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .compare-grid {
        grid-template-columns: 1fr;
    }
    .compare-card {
        padding: 1.5rem;
    }
}

/* ===== Feature grid (Portal ominaisuudet) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(6, 210, 209, 0.35);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 8px;
    background: var(--accent-glow);
    border-radius: 8px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 1.5rem;
    }
}

/* ===== Screenshot grid ===== */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.screenshot-frame {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.screenshot:hover .screenshot-frame {
    border-color: rgba(6, 210, 209, 0.35);
}

.frame-bar {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}

.frame-bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.35;
}

.frame-body {
    flex: 1;
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 12px;
}

.frame-sidebar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.frame-row {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
}

.frame-row-active {
    background: var(--accent);
    opacity: 0.4;
}

.frame-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frame-title {
    height: 10px;
    width: 60%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 4px;
}

.frame-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}

.frame-card {
    aspect-ratio: 3 / 2;
    background: rgba(6, 210, 209, 0.08);
    border: 1px solid rgba(6, 210, 209, 0.15);
    border-radius: 4px;
}

.frame-line {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.frame-line.short {
    width: 60%;
}

.frame-body-list {
    grid-template-columns: 1fr;
    gap: 6px;
}

.frame-list-row {
    display: grid;
    grid-template-columns: 1fr 1fr 80px;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.frame-list-row:last-child {
    border-bottom: none;
}

.frame-list-row span {
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.frame-list-row span.dim {
    background: rgba(255, 255, 255, 0.04);
}

.frame-list-row span.short {
    width: 50%;
}

.frame-body-form {
    grid-template-columns: 1fr;
    gap: 10px;
}

.frame-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.frame-field .label {
    height: 6px;
    width: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.frame-field .input {
    height: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.frame-field .input.short {
    width: 40%;
}

.frame-btn {
    height: 18px;
    width: 80px;
    background: var(--accent);
    opacity: 0.6;
    border-radius: 4px;
    margin-top: auto;
    align-self: flex-start;
}

.screenshot-caption {
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    text-align: center;
}

.screenshots-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.screenshot-group-title {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
}

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

.screenshot-placeholder {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.screenshot-placeholder:hover {
    border-color: rgba(6, 210, 209, 0.3);
}

.screenshot-placeholder svg {
    display: block;
    width: 100%;
}

.screenshot-placeholder p {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.6rem 0.8rem;
    margin: 0;
    border-top: 1px solid var(--border);
}

.screenshot-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 900px) {
    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .screenshot-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    .screenshot-row {
        grid-template-columns: 1fr;
    }
}

/* ===== Integration grid ===== */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.integration-card {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s;
}

.integration-card:hover {
    border-color: rgba(6, 210, 209, 0.35);
}

.integration-name {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.integration-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .integration-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ===== Reference block ===== */
.reference-block {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}

.reference-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.reference-content p:last-child {
    margin-bottom: 0;
}

.reference-meta a {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.reference-meta a:hover {
    opacity: 0.75;
}

.reference-quote {
    padding: 2rem;
    background: var(--accent-glow);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 0;
}

.reference-quote p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1rem;
}

.reference-quote footer {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .reference-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== Feature card reveal staggering ===== */
.feature-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.feature-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.feature-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.feature-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.feature-card.reveal:nth-child(6) { transition-delay: 0.25s; }
.feature-card.reveal:nth-child(7) { transition-delay: 0.3s; }
.feature-card.reveal:nth-child(8) { transition-delay: 0.35s; }

.screenshot.reveal:nth-child(2) { transition-delay: 0.08s; }
.screenshot.reveal:nth-child(3) { transition-delay: 0.16s; }
.screenshot.reveal:nth-child(4) { transition-delay: 0.24s; }
.screenshot.reveal:nth-child(5) { transition-delay: 0.32s; }
.screenshot.reveal:nth-child(6) { transition-delay: 0.4s; }

.integration-card.reveal:nth-child(2) { transition-delay: 0.05s; }
.integration-card.reveal:nth-child(3) { transition-delay: 0.1s; }
.integration-card.reveal:nth-child(4) { transition-delay: 0.15s; }
.integration-card.reveal:nth-child(5) { transition-delay: 0.2s; }
.integration-card.reveal:nth-child(6) { transition-delay: 0.25s; }

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-block.reveal:nth-child(2) { transition-delay: 0.08s; }
.service-block.reveal:nth-child(3) { transition-delay: 0.16s; }
.service-block.reveal:nth-child(4) { transition-delay: 0.24s; }
.service-block.reveal:nth-child(5) { transition-delay: 0.32s; }

.why-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.why-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.why-card.reveal:nth-child(4) { transition-delay: 0.24s; }

.process-step.reveal:nth-child(2) { transition-delay: 0.1s; }
.process-step.reveal:nth-child(3) { transition-delay: 0.2s; }
.process-step.reveal:nth-child(4) { transition-delay: 0.3s; }

.ref-item.reveal:nth-child(2) { transition-delay: 0.06s; }
.ref-item.reveal:nth-child(3) { transition-delay: 0.12s; }
.ref-item.reveal:nth-child(4) { transition-delay: 0.18s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: rgba(13, 13, 15, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

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

    .hero {
        padding: 6rem 1.5rem 4rem;
        min-height: 90vh;
        grid-template-columns: 1fr;
    }

    .hero-visual { display: none; }
    .hero-grid { display: none; }

    .section { padding: 4.5rem 0; }

    .service-block {
        grid-template-columns: 1fr;
    }

    .service-block:nth-child(even) {
        direction: ltr;
    }

    .service-visual {
        max-width: 160px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .why-card {
        padding: 1.5rem;
    }

    .product-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .product-mark {
        max-width: 80px;
    }

    .process-flow { grid-template-columns: 1fr; gap: 1.5rem; }

    .ref-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .form-row { grid-template-columns: 1fr; gap: 0; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    body { font-size: 1rem; }
}

/* =======================================================
   Agent Hub — tuote-spesifiset komponentit
   ======================================================= */

/* Hero: chat-mock */
.hero-agent .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-mock {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border: 1px solid rgba(6, 210, 209, 0.25);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 80px -20px rgba(6, 210, 209, 0.15), 0 10px 40px -10px rgba(0,0,0,0.4);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
}

.chat-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border);
}

.chat-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.35;
}

.chat-title {
    margin-left: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.55;
}

.chat-msg p {
    color: var(--text);
    margin: 0;
}

.chat-msg-user {
    background: rgba(255,255,255,0.02);
}

.chat-msg-agent {
    background: rgba(6, 210, 209, 0.04);
    border-color: rgba(6, 210, 209, 0.2);
}

.chat-role {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.75;
}

.chat-msg-user .chat-role {
    color: var(--text-muted);
}

.chat-steps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.chat-step {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.chat-step.done {
    color: var(--text);
}

.chat-step.done .step-tick {
    color: var(--accent);
}

.chat-step.active {
    color: var(--accent);
}

.chat-step.pending {
    opacity: 0.45;
}

.step-tick {
    display: inline-block;
    width: 12px;
    text-align: center;
    font-weight: 700;
}

.step-spin {
    display: inline-block;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(6, 210, 209, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: chatSpin 0.9s linear infinite;
}

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

.chat-url {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.chat-url-label {
    color: var(--accent);
    letter-spacing: 0.15em;
    font-weight: 700;
}

.chat-url-val {
    color: var(--text);
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-url-status {
    color: #4ade80;
    letter-spacing: 0.08em;
    position: relative;
    padding-left: 12px;
}

.chat-url-status::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: chatPulse 1.8s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Steps-flow (miten se toimii) */
.steps-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s;
}

.step-item:hover {
    border-color: rgba(6, 210, 209, 0.35);
    transform: translateY(-2px);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.05em;
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
}

.step-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.step-body p {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.step-body code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.1rem 0.4rem;
    background: var(--accent-glow);
    border-radius: 4px;
    color: var(--accent);
}

.step-body em {
    color: var(--text);
    font-style: italic;
}

.step-item.reveal:nth-child(2) { transition-delay: 0.08s; }
.step-item.reveal:nth-child(3) { transition-delay: 0.16s; }
.step-item.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 768px) {
    .steps-flow {
        grid-template-columns: 1fr;
    }
    .step-item {
        padding: 1.5rem;
    }
}

/* Demo frame */
.demo-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(6, 210, 209, 0.08), rgba(6, 210, 209, 0.02));
    border: 1px solid rgba(6, 210, 209, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

.demo-frame:hover {
    border-color: rgba(6, 210, 209, 0.45);
}

.demo-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(6, 210, 209, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 210, 209, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    pointer-events: none;
}

.demo-play {
    width: 90px;
    height: 90px;
    position: relative;
    z-index: 1;
}

.demo-play svg {
    width: 100%;
    height: 100%;
}

.demo-caption {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Compare table (miksi Agent Hub) */
.compare-table-wrap {
    overflow-x: auto;
    margin: 0 -2rem;
    padding: 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: 0.92rem;
}

.compare-table thead th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.compare-table thead th.ct-head-feature {
    text-align: left;
}

.compare-table thead th.ct-head-us {
    color: var(--accent);
    background: rgba(6, 210, 209, 0.06);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.compare-table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.compare-table tbody td:first-child {
    text-align: left;
    color: var(--text);
    font-weight: 500;
}

.compare-table tbody td.ct-us {
    background: rgba(6, 210, 209, 0.04);
    color: var(--text);
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table tbody tr:last-child td.ct-us {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.ct-yes {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
}

.ct-no {
    color: var(--text-muted);
    opacity: 0.45;
    font-weight: 700;
}

.ct-partial {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
}

.ct-neutral {
    color: var(--text-muted);
    opacity: 0.4;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 760px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] {
    border-color: rgba(6, 210, 209, 0.35);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
    margin: 0;
}

.link-accent {
    color: var(--accent);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.link-accent:hover { opacity: 0.75; }

/* Waitlist */
.waitlist-wrap {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-wrap .section-sub {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.waitlist-form {
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 1rem;
}

.waitlist-form .btn {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.waitlist-meta {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* Pricing fine badges row */
.pricing-fine {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

/* Hero sub link styling inside pricing-note */
.pricing-note a {
    color: var(--accent);
    text-decoration: none;
}

.pricing-note a:hover { opacity: 0.75; }

