/* ChatStir.AI Homepage — CloudGroup-inspired design */

:root {
    --bg: #FAFBFC;
    --accent: #4A90D9;
    --accent-hover: #3A7BC8;
    --dark: #0F1120;
    --dark-card: #171B2E;
    --dark-card-hover: #1E2337;
    --text: #1A1D2B;
    --text-secondary: #5A6178;
    --text-muted: #9098AD;
    --border: #E2E6EE;
    --border-hover: #CBD1DC;
    --white: #FFFFFF;
    --success: #22C55E;
    --purple: #A855F7;
    --radius: 14px;
    --radius-sm: 9px;
    --max-width: 1060px;
    --nav-height: 70px;
}

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

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
}

/* Ambient Background */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 70vw;
    height: 70vw;
    top: -20%;
    left: -20%;
    background: var(--accent);
    opacity: 0.035;
    animation: drift1 30s ease-in-out infinite;
}

.orb-2 {
    width: 60vw;
    height: 60vw;
    bottom: -25%;
    right: -20%;
    background: var(--purple);
    opacity: 0.03;
    animation: drift2 35s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 8%); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -6%); }
}

/* Fade-up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(250, 251, 252, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.accent { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

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

.nav-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-mobile-toggle { display: flex; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.btn-primary:hover { background: #2D3147; }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text); }

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

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

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius);
}

.btn-full { width: 100%; }

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    padding: 160px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.6; }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-proof {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 56px;
}

.proof-item {
    text-align: center;
}

.proof-item strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.proof-item span {
    font-size: 13px;
    color: var(--text-muted);
}

.proof-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

@media (max-width: 480px) {
    .hero { padding: 130px 0 60px; }
    .hero-proof { gap: 20px; }
    .proof-item strong { font-size: 20px; }
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

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

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
}

.section-header.light p { color: var(--text-muted); }

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(74, 144, 217, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.step-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}

.step-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 24px;
}

.step-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(74, 144, 217, 0.12);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

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

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

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: all 0.2s;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.pricing-featured {
    border-color: var(--accent);
    box-shadow: 0 4px 24px rgba(74, 144, 217, 0.12);
}

.pricing-featured:hover {
    border-color: var(--accent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0;
}

.pricing-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    padding: 6px 0;
    color: var(--text-secondary);
}

.check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    flex-shrink: 0;
    position: relative;
}

.check::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 6px;
    width: 5px;
    height: 8px;
    border: 2px solid var(--success);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* CTA Section */
.cta-block {
    text-align: center;
    padding: 40px 0;
}

.cta-block h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}

.cta-block p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.cta-embed-preview {
    margin-top: 48px;
}

.code-preview {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 20px 24px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.code-preview code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--accent);
    word-break: break-all;
}

.hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding-top: 56px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-links { gap: 32px; flex-wrap: wrap; }
}
