/* ============================================
   TIME COUNTER — Landing Page CSS
   Design: Professional enterprise, navy + violet
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=DM+Mono:wght@400;500&display=swap');

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

:root {
    --navy: #0c1222; --navy-light: #162036; --navy-mid: #1e2d4a;
    --violet: #7c5cfc; --violet-bright: #9b7dff; --violet-glow: rgba(124,92,252,.35);
    --teal: #2dd4bf; --teal-glow: rgba(45,212,191,.2);
    --white: #f8fafc; --gray-text: #94a3b8; --gray-muted: #64748b;
    --card-bg: rgba(30,45,74,.5); --card-border: rgba(148,163,184,.1);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, sans-serif; background: var(--navy); color: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* BG Atmosphere */
.bg-glow { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; }
.bg-glow::before { content: ''; position: absolute; top: -20%; left: -10%; width: 60%; height: 60%; background: radial-gradient(ellipse, var(--violet-glow) 0%, transparent 70%); filter: blur(80px); }
.bg-glow::after { content: ''; position: absolute; bottom: -10%; right: -10%; width: 50%; height: 50%; background: radial-gradient(ellipse, var(--teal-glow) 0%, transparent 70%); filter: blur(100px); }

/* Layout */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Nav */
.nav { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--white); text-decoration: none; }
.nav-brand-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--violet), var(--teal)); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--gray-text); text-decoration: none; transition: all .2s; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav-link--cta { background: var(--violet); color: #fff !important; font-weight: 600; }
.nav-link--cta:hover { background: var(--violet-bright); }

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 100px; background: rgba(124,92,252,.12); border: 1px solid rgba(124,92,252,.25); font-size: 13px; color: var(--violet-bright); font-weight: 500; margin-bottom: 28px; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.3); } }
.hero h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 .accent { background: linear-gradient(135deg, var(--violet-bright), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--gray-text); max-width: 600px; margin: 0 auto 40px; line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; transition: all .25s cubic-bezier(.4,0,.2,1); border: none; cursor: pointer; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--violet), #6246ea); color: #fff; box-shadow: 0 4px 20px var(--violet-glow), 0 1px 3px rgba(0,0,0,.2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--violet-glow), 0 2px 8px rgba(0,0,0,.2); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--white); border: 1px solid rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }

/* Proof */
.proof { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 16px 0 0; color: var(--gray-muted); font-size: 13px; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 6px; }
.proof-num { font-weight: 700; color: var(--white); font-size: 14px; }

/* Sections common */
.section-label { display: inline-block; padding: 5px 14px; border-radius: 100px; background: rgba(124,92,252,.1); border: 1px solid rgba(124,92,252,.2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--violet-bright); margin-bottom: 16px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.section-sub { font-size: 16px; color: var(--gray-text); max-width: 560px; margin-bottom: 48px; }

/* Features */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 28px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--card-border); backdrop-filter: blur(12px); transition: all .3s; }
.feature-card:hover { border-color: rgba(124,92,252,.25); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(124,92,252,.15), rgba(45,212,191,.1)); border: 1px solid rgba(124,92,252,.15); }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray-text); line-height: 1.6; }

/* Formats */
.formats { padding: 60px 0 80px; }
.formats-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.format-tag { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--card-bg); border: 1px solid var(--card-border); color: var(--gray-text); font-family: 'DM Mono', monospace; }

/* How it works */
.how-it-works { padding: 80px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.step-card { padding: 32px; border-radius: 16px; background: var(--card-bg); border: 1px solid var(--card-border); text-align: center; position: relative; }
.step-number { position: absolute; top: 16px; left: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-text); }

/* Pricing */
.pricing-section { padding: 80px 0; text-align: center; }
.pricing-card { max-width: 480px; margin: 0 auto; padding: 40px; border-radius: 20px; background: var(--card-bg); border: 1px solid rgba(124,92,252,.2); backdrop-filter: blur(12px); }
.pricing-price { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.pricing-note { font-size: 14px; color: var(--gray-muted); margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 8px 0; font-size: 14px; color: var(--gray-text); border-bottom: 1px solid var(--card-border); }

/* FAQ */
.faq-section { padding: 80px 0; }
.faq-list { max-width: 100%; }
.faq-item { padding: 0; margin-bottom: 8px; border-radius: 12px; background: var(--card-bg); border: 1px solid var(--card-border); overflow: hidden; }
.faq-item summary { padding: 18px 24px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--violet); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 18px; font-size: 14px; color: var(--gray-text); line-height: 1.7; }

/* Contact form */
.contact-section { padding: 80px 0; }
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info .section-title { margin-bottom: 12px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-row-landing { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: var(--navy-mid); color: var(--white); font-size: 14px; font-family: inherit; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,252,.15); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--gray-muted); }
.consent-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-text); cursor: pointer; }
.consent-label a { color: var(--violet-bright); }
.consent-label input[type=checkbox] { accent-color: var(--violet); }

/* CTA Final */
.cta-section { padding: 80px 0; text-align: center; }
.cta-box { padding: 56px 40px; border-radius: 24px; background: linear-gradient(135deg, var(--navy-mid), var(--navy-light)); border: 1px solid rgba(124,92,252,.2); position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; left: 30%; width: 40%; height: 100%; background: radial-gradient(ellipse, var(--violet-glow), transparent 70%); filter: blur(60px); pointer-events: none; }
.cta-box h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 12px; position: relative; }
.cta-box p { color: var(--gray-text); font-size: 16px; margin-bottom: 32px; position: relative; }
.cta-box .btn { position: relative; }

/* Demo form (in CTA box) — same style as contact form */
.demo-form { display: flex; flex-direction: column; gap: 12px; position: relative; }
.demo-form input { padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(12,18,34,.6); color: var(--white); font-size: 14px; font-family: inherit; transition: all .25s; backdrop-filter: blur(8px); }
.demo-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124,92,252,.2); background: rgba(12,18,34,.8); }
.demo-form input::placeholder { color: var(--gray-muted); }

/* Pricing centered */
.pricing-section { padding: 80px 0; text-align: center; }
.pricing-section .section-sub { margin-left: auto; margin-right: auto; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--card-border); text-align: center; color: var(--gray-muted); font-size: 13px; }
.footer a { color: var(--gray-text); text-decoration: none; }
.footer a:hover { color: var(--white); }

/* Slider */
.hero-slider { margin-bottom: 32px; border-radius: 16px; overflow: hidden; position: relative; max-width: 800px; margin-left: auto; margin-right: auto; }
.slider-track { position: relative; }
.slide { display: none; }
.slide.active { display: block; }
.slide img { width: 100%; height: auto; display: block; border-radius: 12px; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(12,18,34,.8)); }
.slide-caption h3 { font-size: 18px; margin-bottom: 4px; }
.slide-caption p { font-size: 13px; color: var(--gray-text); }
.slider-dots { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--gray-muted); cursor: pointer; transition: all .2s; padding: 0; }
.dot.active { background: var(--violet); width: 24px; border-radius: 4px; }

/* Form result */
.form-result-success { color: var(--teal); }
.form-result-error { color: #ef4444; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .7s cubic-bezier(.4,0,.2,1) forwards; }
.fade-up:nth-child(2) { animation-delay: .08s; }
.fade-up:nth-child(3) { animation-delay: .16s; }
.fade-up:nth-child(4) { animation-delay: .24s; }
.fade-up:nth-child(5) { animation-delay: .32s; }
.fade-up:nth-child(6) { animation-delay: .40s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .steps-grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-box { grid-template-columns: 1fr; gap: 24px; }
    .form-row-landing { grid-template-columns: 1fr; }
    .nav-links .nav-link:not(.nav-link--cta) { display: none; }
    .cta-box { padding: 40px 24px; }
    .proof { gap: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; justify-content: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
