/* =========================================================================
   AutomateAI — Landing Theme
   ========================================================================= */

:root {
    --color-bg:           #0A0A0A;
    --color-bg-card:      #111111;
    --color-bg-subtle:    #1A1A1A;
    --color-border:       #262626;
    --color-border-soft:  rgba(255, 255, 255, 0.08);
    --color-text:         #EDEDED;
    --color-text-muted:   #888888;
    --color-accent:       #6366F1;
    --color-accent-hover: #4F46E5;
    --color-accent-glow:  rgba(99, 102, 241, 0.15);
    --color-success:      #22C55E;
    --color-magenta:      #EC4899;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, monospace;

    --text-hero: clamp(2.5rem, 6vw, 5rem);
    --text-h2:   clamp(1.75rem, 3vw, 2.5rem);
    --text-h3:   1.25rem;
    --text-body: 1rem;
    --text-small:0.875rem;
    --text-xs:   0.75rem;

    --weight-normal:   400;
    --weight-medium:   500;
    --weight-semibold: 600;
    --weight-bold:     700;
    --weight-black:    800;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --section-padding:    clamp(4rem, 8vw, 8rem) 0;
    --container-width:    1200px;
    --container-padding:  0 clamp(1rem, 4vw, 2rem);

    --shadow-card:  0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 32px rgba(0,0,0,0.4);
    --shadow-float: 0 20px 60px rgba(0,0,0,0.6);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    background-image:
        radial-gradient(circle at 50% 0%, var(--color-accent-glow) 0%, transparent 50%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.025 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: var(--color-text); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--color-accent); }
h1, h2, h3 { margin: 0 0 .5em; font-weight: var(--weight-bold); line-height: 1.15; letter-spacing: -0.02em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }

/* ---------- Layout ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}
.container-narrow { max-width: 860px; }

.section {
    padding: var(--section-padding);
    position: relative;
}

.section-headline {
    font-size: var(--text-h2);
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
    font-weight: var(--weight-black);
}

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

@media (max-width: 1024px) {
    .grid-agents, .grid-pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-3, .grid-agents, .grid-pricing { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: var(--weight-semibold);
    font-size: var(--text-small);
    line-height: 1;
    transition: transform .2s var(--ease-out), background .2s var(--ease-out), box-shadow .2s var(--ease-out);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-sm  { padding: .5rem .9rem; font-size: var(--text-xs); }
.btn-lg  { padding: 1rem 1.75rem; font-size: var(--text-body); }
.btn-xl  { padding: 1.25rem 2.5rem; font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 10px 24px -12px var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--color-border);
    color: var(--color-text);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(99,102,241,0.05);
}

.btn-gradient {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-magenta));
    padding: 1rem 1.75rem;
    font-size: var(--text-body);
    font-weight: var(--weight-semibold);
    box-shadow: 0 18px 40px -18px var(--color-magenta);
}
.btn-gradient:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 24px 48px -18px var(--color-magenta); }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(10,10,10,0.6);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.site-nav.is-scrolled {
    border-bottom-color: var(--color-border-soft);
    background: rgba(10,10,10,0.85);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 2rem;
}
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: var(--weight-bold);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.nav-brand-mark {
    width: 22px; height: 22px;
    border-radius: 6px;
    background: conic-gradient(from 120deg, var(--color-accent), var(--color-magenta), var(--color-accent));
    box-shadow: 0 0 20px -4px var(--color-accent);
}
.nav-links {
    display: flex;
    gap: 2rem;
    font-size: var(--text-small);
    color: var(--color-text-muted);
}
.nav-links a { color: var(--color-text-muted); }
.nav-links a:hover { color: var(--color-text); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; padding: .5rem; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .2s var(--ease-out), opacity .2s var(--ease-out); }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-nav.is-open .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10,10,10,0.95);
        border-bottom: 1px solid var(--color-border-soft);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        gap: 1.25rem;
    }
    .site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
    text-align: center;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    inset: -20% 0 auto 0;
    height: 700px;
    background: radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-headline {
    font-size: var(--text-hero);
    font-weight: var(--weight-black);
    background: linear-gradient(180deg, #fff 0%, #a8a8a8 140%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}
.hero-sub {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto 2.25rem;
}
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    margin-bottom: 3.5rem;
}
.hero-badges .check { color: var(--color-success); font-weight: var(--weight-bold); margin-right: .35rem; }

/* Terminal visual */
.hero-visual {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: stretch;
    text-align: left;
}
@media (max-width: 860px) {
    .hero-visual { grid-template-columns: 1fr; max-width: 560px; }
}
.terminal {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.agent-body { flex: 1; }
.terminal-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.1rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--color-border-soft);
}
.terminal-bar span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #444;
}
.terminal-bar span:nth-child(1) { background: #ff5f56; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #27c93f; }
.terminal-bar em {
    margin-left: auto;
    color: var(--color-text-muted);
    font-style: normal;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}
.terminal-body {
    margin: 0;
    padding: 1.5rem 1.75rem;
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    white-space: pre-wrap;
}
.terminal-body .prompt { color: var(--color-accent); margin-right: .4rem; }
.terminal-body .ok     { color: var(--color-success); margin-right: .4rem; }

/* ---------- Agent preview (animated) ---------- */
.agent-body { padding: 1.5rem 1.75rem; }
.agent-task { margin-bottom: 1.25rem; }
.agent-task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .65rem;
}
.agent-task-title {
    font-size: .95rem;
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    transition: color .25s var(--ease-out);
}
.agent-task-percent {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--color-accent);
    font-variant-numeric: tabular-nums;
}
.agent-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}
.agent-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-magenta));
    border-radius: inherit;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    position: relative;
    overflow: hidden;
}
.agent-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: agent-shimmer 1.8s linear infinite;
}
@keyframes agent-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.agent-stages {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    margin: 1rem 0 0;
}
.agent-stages li {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: .85rem;
    color: var(--color-text-muted);
    transition: color .3s var(--ease-out);
}
.agent-stage-icon {
    position: relative;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    transition: border-color .3s var(--ease-out), background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.agent-stages li.is-active {
    color: var(--color-text);
    font-weight: var(--weight-medium);
}
.agent-stages li.is-active .agent-stage-icon {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.agent-stages li.is-active .agent-stage-icon::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: agent-pulse 1.2s ease-in-out infinite;
}
@keyframes agent-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(.7);  opacity: .55; }
}
.agent-stages li.is-done {
    color: var(--color-text);
}
.agent-stages li.is-done .agent-stage-icon {
    border-color: var(--color-success);
    background: var(--color-success);
}
.agent-stages li.is-done .agent-stage-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 8px;
    border-right: 2px solid var(--color-bg);
    border-bottom: 2px solid var(--color-bg);
    transform: translate(-55%, -65%) rotate(45deg);
}

/* ---------- Post preview (builds up as the agent works) ---------- */
.post-preview {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(12px);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    overflow: hidden;
    min-height: 100%;
}
.post-part {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(6px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), filter .55s var(--ease-out);
    will-change: opacity, transform, filter;
}
.post-part.is-revealed {
    opacity: 1;
    transform: none;
    filter: none;
}

.post-source {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--color-text);
    font-size: .72rem;
    font-family: var(--font-mono);
    width: fit-content;
}
.post-source-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: agent-pulse 1.4s ease-in-out infinite;
}

.post-header {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.post-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-magenta));
    color: #fff;
    font-weight: var(--weight-bold);
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.post-author { font-weight: var(--weight-semibold); font-size: .9rem; color: var(--color-text); line-height: 1.2; }
.post-author-sub { font-size: .72rem; color: var(--color-text-muted); margin-top: 2px; }

.post-meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .72rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.post-sep { opacity: .6; }
.post-audience {
    display: inline-flex;
    align-items: center;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f9a8d4;
    font-size: .68rem;
    font-weight: var(--weight-medium);
}

.post-title {
    font-size: .98rem;
    font-weight: var(--weight-bold);
    color: var(--color-text);
    margin: 0 0 .4rem;
    line-height: 1.3;
}
.post-text {
    font-size: .8rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}

.post-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-subtle);
    aspect-ratio: 16 / 10;
    position: relative;
}
.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-image::after {
    /* subtle image-generating shimmer that fades with the reveal */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: agent-shimmer 1.8s linear infinite;
    opacity: 0;
    transition: opacity .4s;
}
.post-part[data-post-part="4"]:not(.is-revealed) ~ * .post-image::after { opacity: 1; }

.post-actions {
    display: flex;
    gap: .5rem;
}
.post-btn {
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .75rem;
    font-weight: var(--weight-semibold);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border-soft);
    color: var(--color-text);
    cursor: default;
}
.post-btn-primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.post-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: .65rem;
    border-top: 1px solid var(--color-border-soft);
    font-size: .9rem;
    color: var(--color-text-muted);
}
.post-react {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.post-live {
    margin-left: auto;
    font-size: .68rem;
    font-weight: var(--weight-semibold);
    color: var(--color-success);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------- Cards ---------- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.18);
}

.card-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.card-title { font-size: var(--text-h3); margin-bottom: .5rem; }
.card-text { color: var(--color-text-muted); margin: 0; }

/* ---------- Agents ---------- */
.agent-card { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.agent-card:hover { border-color: color-mix(in oklab, var(--agent-color) 55%, transparent); }
.agent-head { display: flex; align-items: center; gap: .6rem; }
.agent-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--agent-color);
    box-shadow: 0 0 16px var(--agent-color);
}
.agent-name { margin: 0; font-size: var(--text-h3); }
.agent-tagline { color: var(--color-text); margin: 0; }
.agent-target { color: var(--color-text-muted); font-size: var(--text-small); margin: 0; }
.agent-badge { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border-soft);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}
.badge-custom {
    background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(236,72,153,.2));
    color: #fff;
    border-color: rgba(236,72,153,.5);
}

.agent-card-custom {
    position: relative;
    background:
        linear-gradient(var(--color-bg-card), var(--color-bg-card)) padding-box,
        linear-gradient(135deg, var(--color-accent), var(--color-magenta)) border-box;
    border: 1px solid transparent;
}
.agent-card-custom::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at top right, rgba(236,72,153,0.12), transparent 60%);
    pointer-events: none;
}

/* ---------- Process ---------- */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    counter-reset: step;
    position: relative;
}
.process-steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 16px);
    z-index: 0;
}
.process-step { position: relative; z-index: 1; }
.process-num {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-soft);
    font-family: var(--font-mono);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.process-title { font-size: 1.1rem; margin-bottom: .35rem; }
.process-text { color: var(--color-text-muted); font-size: var(--text-small); margin: 0; }

@media (max-width: 768px) {
    .process-steps { grid-template-columns: 1fr; }
    .process-steps::before { display: none; }
}

/* ---------- Testimonial ---------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 860px) {
    .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card { margin: 0; }
.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.testimonial-meta { display: flex; flex-direction: column; color: var(--color-text-muted); }
.testimonial-meta strong { color: var(--color-text); font-weight: var(--weight-semibold); }

.trust-card { display: flex; flex-direction: column; justify-content: center; gap: .5rem; }
.trust-stars { color: #facc15; font-size: 1.25rem; letter-spacing: 2px; }
.trust-line { color: var(--color-text-muted); margin: 0; font-size: var(--text-small); }

/* ---------- Pricing ---------- */
.price-card {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    position: relative;
}
.price-card-featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), 0 20px 60px -20px var(--color-accent-glow);
    transform: translateY(-6px);
}
.price-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    padding: .3rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.price-name { font-size: var(--text-h3); margin: 0; }
.price-setup { color: var(--color-text-muted); font-size: var(--text-small); }
.price-amount { display: flex; align-items: baseline; gap: .4rem; }
.price-value { font-size: 2.25rem; font-weight: var(--weight-black); }
.price-period { color: var(--color-text-muted); font-size: var(--text-small); }
.price-features {
    display: flex; flex-direction: column; gap: .35rem;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    margin: .25rem 0 1rem;
}
.price-features li::before { content: "✓ "; color: var(--color-success); font-weight: var(--weight-bold); }

/* Custom block */
.custom-block {
    margin-top: 3rem;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-magenta));
}
.custom-block-inner {
    background: var(--color-bg-card);
    border-radius: calc(var(--radius-xl) - 2px);
    padding: clamp(2rem, 5vw, 3rem);
    position: relative;
    overflow: hidden;
}
.custom-block-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(236,72,153,.1), transparent 60%);
    pointer-events: none;
}
.custom-headline { font-size: 1.75rem; margin: 0 0 .5rem; }
.custom-desc { color: var(--color-text-muted); max-width: 720px; margin: 0 0 1.75rem; }
.custom-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0 0 1.75rem;
}
.custom-steps li {
    display: flex; flex-direction: column; gap: .3rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
}
.custom-steps strong { color: var(--color-text); }
.custom-steps span:last-child { color: var(--color-text-muted); font-size: var(--text-small); }
.custom-step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-magenta));
    color: #fff;
    font-weight: var(--weight-bold);
    font-size: var(--text-xs);
    margin-bottom: .4rem;
}
@media (max-width: 768px) {
    .custom-steps { grid-template-columns: 1fr; }
}

.pricing-footnote {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-small);
    margin: 2rem auto 0;
    max-width: 760px;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    transition: border-color .3s var(--ease-out);
}
.faq-item[open] { border-color: rgba(99,102,241,0.35); }
.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    font-weight: var(--weight-semibold);
    cursor: pointer;
    list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-toggle {
    font-size: 1.4rem;
    color: var(--color-accent);
    transition: transform .3s var(--ease-out);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-a {
    padding: 0 1.5rem 1.25rem;
    color: var(--color-text-muted);
    font-size: .95rem;
    line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.final-cta {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
}
.final-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(236,72,153,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-headline { font-size: clamp(2rem, 4vw, 3rem); font-weight: var(--weight-black); margin-bottom: 1rem; }
.final-sub { color: var(--color-text-muted); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
    padding: 3rem 0 2.5rem;
    color: var(--color-text-muted);
    font-size: var(--text-small);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; color: var(--color-text); font-weight: var(--weight-semibold); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; text-align: right; }
.footer-meta a { color: var(--color-text); }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-links { justify-content: center; flex-wrap: wrap; }
    .footer-meta { align-items: center; text-align: center; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Mobile polish ---------- */
@media (max-width: 480px) {
    .hero-headline { font-size: 2.25rem; }
    .hero-ctas .btn { width: 100%; }
    .price-card-featured { transform: none; }
}
