/* FormGhost Landing Page Styles - AI Visibility Tool */

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

:root {
    --text: #1a1a1a;
    --text-secondary: #525252;
    --text-muted: #737373;
    --bg: #fafafa;
    --bg-white: #ffffff;
    --border: #e5e5e5;
    --accent: #0066ff;
    --accent-hover: #0052cc;
    --success: #059669;
    --warning: #dc2626;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle background with noise texture and organic shapes */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Noise texture overlay */
.page-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px;
}

/* Soft organic shapes - not circles, irregular blobs */
.bg-shape {
    position: absolute;
    opacity: 0.06;
    filter: blur(60px);
}

.bg-shape-1 {
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
    animation: morph1 25s ease-in-out infinite;
}

.bg-shape-2 {
    bottom: 10%;
    left: -10%;
    width: 40vw;
    height: 45vw;
    max-width: 500px;
    max-height: 550px;
    background: linear-gradient(45deg, #1a1a1a 0%, #525252 100%);
    border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%;
    animation: morph2 30s ease-in-out infinite;
}

.bg-shape-3 {
    top: 40%;
    right: 20%;
    width: 25vw;
    height: 25vw;
    max-width: 300px;
    max-height: 300px;
    background: linear-gradient(180deg, #e5e5e5 0%, #a3a3a3 100%);
    border-radius: 50% 60% 40% 70% / 70% 30% 60% 40%;
    animation: morph3 20s ease-in-out infinite;
}

/* Subtle grid pattern */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(to right, rgba(0,0,0,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes morph1 {
    0%, 100% { border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%; transform: translate(0, 0) rotate(0deg); }
    25% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
    50% { border-radius: 50% 50% 60% 40% / 40% 50% 50% 60%; transform: translate(-3%, 3%) rotate(5deg); }
    75% { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; }
}

@keyframes morph2 {
    0%, 100% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; transform: translate(0, 0) rotate(0deg); }
    33% { border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%; transform: translate(2%, -2%) rotate(-3deg); }
    66% { border-radius: 50% 50% 40% 60% / 40% 50% 60% 40%; }
}

@keyframes morph3 {
    0%, 100% { border-radius: 50% 60% 40% 70% / 70% 30% 60% 40%; transform: translate(0, 0); }
    50% { border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%; transform: translate(-5%, 5%); }
}

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for grid items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.15s;
}

.nav-link:hover {
    background: var(--border);
}

.nav-cta {
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    background: var(--text);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
}

.nav-cta:hover {
    background: #333;
}

.hero {
    padding: 160px 0 100px;
}

.hero-inner {
    max-width: 680px;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.email-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.email-input {
    flex: 1;
    max-width: 300px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    padding: 14px 28px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.submit-btn:hover {
    background: var(--accent-hover);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.form-message {
    display: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 16px;
}

.form-message.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: var(--success);
}

.form-message.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--warning);
}

.form-message.show {
    display: block;
}

.problem {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.problem-card {
    background: var(--bg-white);
    padding: 32px;
}

.problem-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.problem-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.how {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.step-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.demo {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.demo-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.demo-title {
    margin-left: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.demo-table {
    width: 100%;
    font-size: 0.9rem;
}

.demo-table th {
    text-align: left;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.demo-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.demo-table .prompt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--text);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status.visible {
    color: var(--success);
}

.status.missing {
    color: var(--warning);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.opportunity {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.opportunity-note {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.pricing {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
}

.pricing-card.featured {
    border-color: var(--text);
    border-width: 2px;
}

.pricing-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features li::before {
    content: "\2713";
    color: var(--success);
    font-weight: 600;
    flex-shrink: 0;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}

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

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

.pricing-btn.filled {
    background: var(--text);
    color: white;
}

.pricing-btn.filled:hover {
    background: #333;
}

.cta {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.cta-inner {
    max-width: 480px;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cta > .container > .cta-inner > p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .email-form {
        flex-direction: column;
    }

    .email-input {
        max-width: 100%;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .demo-table th:nth-child(3),
    .demo-table td:nth-child(3) {
        display: none;
    }
}
