/* UrakoitsijaHub – Passiivinen tulovirta -alusta */

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

:root {
    --bg: #0a0a0f;
    --bg2: #111118;
    --card: #16161f;
    --border: #222230;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #22d3ee;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --success: #22c55e;
    --warn: #f59e0b;
    --radius: 12px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 0.9rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--primary); color: white !important; padding: 8px 16px; border-radius: 8px; font-weight: 600; transition: background 0.2s; }
.btn-nav:hover { background: var(--primary-hover) !important; }

/* Hero */
.hero { position: relative; padding: 100px 0 80px; overflow: hidden; }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-content { position: relative; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.3); border-radius: 40px; padding: 6px 16px; font-size: 0.85rem; color: var(--muted); margin-bottom: 32px; }
.dot-pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

/* Buttons */
.btn-primary { background: var(--primary); color: white; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 1rem; transition: background 0.2s, transform 0.1s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-ghost { color: var(--muted); padding: 12px 28px; border-radius: var(--radius); font-weight: 600; transition: color 0.2s; display: inline-block; }
.btn-ghost:hover { color: var(--text); }
.btn-outline { border: 1px solid var(--border); color: var(--text); padding: 12px 28px; border-radius: var(--radius); font-weight: 600; transition: border-color 0.2s, background 0.2s; display: inline-block; }
.btn-outline:hover { border-color: var(--primary); background: rgba(99,102,241,0.08); }

/* Stats */
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 40px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--text); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* Sections */
.section { padding: 80px 0; }
.dark-section { background: var(--bg2); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head.light h2 { color: var(--text); }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.tag { display: inline-block; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); color: var(--primary); border-radius: 40px; padding: 4px 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.tag-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); color: var(--muted); }

/* Steps */
.steps { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; justify-content: center; }
.step { flex: 1; min-width: 200px; max-width: 240px; }
.step-num { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; margin-bottom: 16px; }
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.step-arrow { font-size: 1.5rem; color: var(--border); margin-top: 12px; flex-shrink: 0; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; transition: border-color 0.2s; }
.service-item:hover { border-color: var(--primary); }
.featured-service { border-color: var(--primary); background: rgba(99,102,241,0.05); }
.featured-label { position: absolute; top: 20px; right: 20px; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-item h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.service-item ul { list-style: none; color: var(--muted); font-size: 0.875rem; }
.service-item ul li { padding: 4px 0; }
.service-item ul li::before { content: "→ "; color: var(--primary); }
.service-price { margin-top: 20px; padding: 10px 16px; background: rgba(99,102,241,0.1); border-radius: 8px; font-weight: 700; color: var(--primary); font-size: 0.9rem; }

/* App promo */
.app-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.app-promo-content .tag { margin-bottom: 16px; }
.app-promo-content h2 { margin-bottom: 16px; }
.app-promo-content > p { color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.app-features { list-style: none; margin-bottom: 32px; }
.app-features li { padding: 6px 0; color: var(--muted); font-size: 0.9rem; }
.app-features li::before { content: none; }
.app-pricing { display: flex; gap: 16px; margin-bottom: 28px; }
.price-option { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; text-align: center; }
.price-option strong { display: block; font-size: 1.2rem; font-weight: 800; }
.price-option span { font-size: 0.8rem; color: var(--muted); }
.featured-price { border-color: var(--primary); background: rgba(99,102,241,0.08); }
.featured-price strong { color: var(--primary); }

/* Mock screen */
.mock-screen { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.mock-header { background: var(--bg2); padding: 12px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #ef4444; }
.mock-dot.yellow { background: #f59e0b; }
.mock-dot.green { background: #22c55e; }
.mock-header span { margin-left: 8px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.mock-body { padding: 20px; }
.mock-section { margin-bottom: 20px; }
.mock-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.08em; }
.mock-check { font-size: 0.85rem; padding: 6px 10px; border-radius: 6px; margin-bottom: 4px; background: rgba(255,255,255,0.03); color: var(--muted); }
.mock-check.done { color: var(--success); }
.mock-check.warn { color: var(--warn); }
.mock-btn { margin-top: 20px; background: var(--primary); color: white; text-align: center; padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.price-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; }
.featured-card { border-color: var(--primary); background: rgba(99,102,241,0.06); transform: scale(1.03); }
.card-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 4px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.price-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.price { font-size: 2.4rem; font-weight: 900; margin-bottom: 8px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.price-card > p { color: var(--muted); font-size: 0.875rem; margin-bottom: 24px; }
.price-card ul { list-style: none; margin-bottom: 28px; }
.price-card ul li { padding: 6px 0; font-size: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--muted); }
.price-card ul li:last-child { border: none; }

/* CTA */
.cta-section { background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(34,211,238,0.05)); }
.cta-box { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-box h2 { margin-bottom: 12px; }
.cta-box > p { color: var(--muted); margin-bottom: 32px; }
.signup-form { display: flex; flex-direction: column; gap: 12px; }
.signup-form input, .signup-form select { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--text); font-size: 1rem; font-family: inherit; outline: none; transition: border-color 0.2s; }
.signup-form input:focus, .signup-form select:focus { border-color: var(--primary); }
.signup-form select option { background: var(--card); }
.signup-form .btn-primary { padding: 14px; font-size: 1rem; }
.cta-note { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-bottom p { color: var(--muted); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .steps { flex-direction: column; align-items: center; }
    .step-arrow { display: none; }
    .step { max-width: 100%; }
    .app-promo { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; }
    .stat strong { font-size: 1.5rem; }
    .app-promo-visual { display: none; }
}
