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

:root {
    --background: hsl(196, 23%, 10%);
    --foreground: hsl(195, 20%, 95%);
    --card: hsl(196, 20%, 12%);
    --card-foreground: hsl(195, 20%, 95%);
    --primary: hsl(195, 58%, 31%);
    --primary-foreground: hsl(195, 20%, 95%);
    --secondary: hsl(196, 18%, 16%);
    --secondary-foreground: hsl(195, 20%, 95%);
    --muted: hsl(196, 18%, 20%);
    --muted-foreground: hsl(195, 15%, 55%);
    --border: hsl(196, 18%, 22%);
    --radius: 0.75rem;

    /* Semantic aliases for consistency with landing.html */
    --bg-secondary: var(--secondary);
    --card-bg: var(--card);
    --border-color: var(--border);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid hsl(196, 18%, 22%, 0.5);
    background: hsl(196, 23%, 10%, 0.8);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary);
    border-radius: 0.5rem;
    color: var(--primary-foreground);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--foreground);
}

.nav {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav { display: flex; }
}

.nav a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

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

.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    background: hsl(195, 58%, 36%);
}

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
}

.btn-ghost:hover {
    background: var(--muted);
    color: var(--foreground);
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 0 40px hsl(195, 58%, 31%, 0.4);
}

.btn-hero:hover {
    background: hsl(195, 58%, 36%);
}

.btn-outline {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--muted);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    padding-top: 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(195, 58%, 31%, 0.15) 0%, transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: linear-gradient(var(--foreground) 1px, transparent 1px),
    linear-gradient(90deg, var(--foreground) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(80vh - 4rem);
    padding: 5rem 0 2rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    background: hsl(196, 20%, 12%, 0.5);
    border: 1px solid var(--border);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.badge-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hero h1 {
    max-width: 56rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--foreground);
}

@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), hsl(195, 65%, 40%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 42rem;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

@media (min-width: 640px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) { .hero-buttons { flex-direction: row; } }

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.hero-mockup {
    width: 100%;
    max-width: 64rem;
    margin-top: 4rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.mockup-frame {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: linear-gradient(180deg, hsl(196, 20%, 14%) 0%, hsl(196, 20%, 12%) 100%);
    box-shadow: 0 4px 24px hsl(0, 0%, 0%, 0.3);
}

.mockup-inner {
    min-height: 500px;
    border-radius: 0.5rem;
    background: hsl(196, 18%, 20%, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.5rem;
    width: 100%;
    height: 100%;
}

.mockup-card {
    background: hsl(196, 18%, 16%, 0.8);
    border-radius: 0.75rem;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.mockup-card.wide {
    grid-column: span 2;
    min-height: 280px;
}
.mockup-card.highlight {
    background: hsl(195, 58%, 31%, 0.2);
    border: 1px solid hsl(195, 58%, 31%, 0.3);
    min-height: 280px;
}
.mockup-card.small {
    min-height: 200px;
}

.mockup-line {
    height: 0.5rem;
    background: hsl(195, 15%, 55%, 0.2);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.mockup-line.short { width: 4rem; }
.mockup-line.medium { width: 6rem; }
.mockup-line.full { width: 100%; }

.mockup-stat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
}

/* Sections */
section {
    padding: 4rem 0;
}

@media (min-width: 640px) { section { padding: 5rem 0; } }

.section-header {
    max-width: 42rem;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
}

.section-title {
    margin-top: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-title { font-size: 3rem; } }

.section-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* Features */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.feature-card {
    flex: 1 1 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, hsl(196, 20%, 14%) 0%, hsl(196, 20%, 12%) 100%);
    box-shadow: 0 4px 24px hsl(0, 0%, 0%, 0.3);
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .feature-card {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .feature-card {
        flex: 1 1 calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

.feature-card:hover {
    border-color: hsl(195, 58%, 31%, 0.5);
    box-shadow: 0 0 60px hsl(195, 58%, 31%, 0.25);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    background: hsl(195, 58%, 31%, 0.1);
    border-radius: 0.5rem;
    color: var(--primary);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--primary-foreground);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
}

.feature-desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    background: hsl(196, 18%, 16%, 0.3);
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.step {
    flex: 1 1 100%;
    max-width: 100%;
    position: relative;
    text-align: center;
}

@media (min-width: 640px) {
    .step {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (min-width: 1024px) {
    .step {
        flex: 1 1 calc(25% - 2rem);
        max-width: calc(25% - 2rem);
    }
}

.step-number {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50%;
    background: var(--card);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.step-desc {
    margin-top: 0.75rem;
    color: var(--muted-foreground);
}

/* Testimonials */
.testimonials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.testimonial-card {
    flex: 1 1 100%;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(180deg, hsl(196, 20%, 14%) 0%, hsl(196, 20%, 12%) 100%);
    box-shadow: 0 4px 24px hsl(0, 0%, 0%, 0.3);
}

@media (min-width: 640px) {
    .testimonial-card {
        flex: 1 1 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .testimonial-card {
        flex: 1 1 calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars svg {
    width: 1rem;
    height: 1rem;
    fill: var(--primary);
    color: var(--primary);
}

.testimonial-quote {
    color: var(--foreground);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* survey-style.css */
.author-avatar{
    /* responsive size but always square */
    width: clamp(32px, 6vw, 56px);
    aspect-ratio: 1 / 1;

    /* stop flex containers from squashing the avatar */
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 32px;

    /* make it a perfect circle and hide overflow */
    border-radius: 50%;
    overflow: hidden;

    /* center the letter/content */
    display: inline-grid;
    place-items: center;

    /* appearance */
    background: hsl(195, 58%, 31%, 0.2);
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.2vw, 1.25rem);
    line-height: 1;
}

/* if you sometimes put an image inside the avatar */
.author-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* CTA Section */
.cta-box {
    position: relative;
    overflow: hidden;
    border: 1px solid hsl(195, 58%, 31%, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    background: linear-gradient(180deg, hsl(196, 20%, 14%) 0%, hsl(196, 20%, 12%) 100%);
    box-shadow: 0 0 60px hsl(195, 58%, 31%, 0.25);
}

.inline-link {
    color: var(--muted-foreground);
    transition: color 0.2s;
    text-decoration: underline;
}

.inline-link:hover {
    color: var(--foreground);
}

@media (min-width: 640px) { .cta-box { padding: 3rem; } }
@media (min-width: 1024px) { .cta-box { padding: 4rem; } }

.cta-glow-1, .cta-glow-2 {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(48px);
}

.cta-glow-1 {
    top: -5rem;
    right: -5rem;
    background: hsl(195, 58%, 31%, 0.1);
}

.cta-glow-2 {
    bottom: -5rem;
    left: -5rem;
    background: hsl(195, 58%, 31%, 0.05);
}

.cta-content {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

@media (min-width: 640px) { .cta-content h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .cta-content h2 { font-size: 3rem; } }

.cta-content p {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

.cta-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    background: hsl(196, 20%, 12%, 0.5);
    padding: 3rem 0;
    margin-top: auto;
}

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

@media (min-width: 768px) { .footer-inner { flex-direction: row; } }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--foreground);
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.hidden-sm { display: none; }
@media (min-width: 640px) { .hidden-sm { display: inline-flex; } }

