/* ============================================================
   Easy Campaign — Design System v2
   Light theme, warm colors, PME-friendly
   Orange/coral accents, rounded, welcoming
   ============================================================ */

:root {
    --primary: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FDBA74;
    --secondary: #8B5CF6;
    --secondary-light: #C4B5FD;
    --accent: #06B6D4;
    --success: #10B981;
    --danger: #EF4444;
    --bg: #ffffff;
    --bg-warm: #FFF7ED;
    --bg-soft: #F8FAFC;
    --bg-dark: #1a1a2e;
    --text: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ═══ NAV ═══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 12px 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: all .3s; }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: all .2s; }

/* ═══ BUTTONS ═══ */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 700; font-size: 14px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all .3s; box-shadow: 0 4px 14px rgba(249,115,22,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249,115,22,0.4); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border: 2px solid var(--border); color: var(--text); font-weight: 600; font-size: 14px; border-radius: var(--radius-sm); cursor: pointer; background: transparent; transition: all .3s; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { padding: 10px 20px; color: var(--text-secondary); font-weight: 600; font-size: 14px; border: none; background: transparent; cursor: pointer; transition: color .2s; }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding: 120px 24px 80px; background: var(--bg-warm); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-gradient-1 { position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(249,115,22,0.08), transparent 70%); }
.hero-gradient-2 { position: absolute; bottom: -10%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%); }
.hero-grid { display: none; }
.hero-content { position: relative; z-index: 10; max-width: 700px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.hero h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; margin-bottom: 20px; color: var(--text); }
.hero-subtitle { font-size: clamp(15px, 2vw, 18px); color: var(--text-secondary); max-width: 520px; margin: 0 auto 36px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 24px 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--border-light); }
.stat { text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ═══ SECTIONS ═══ */
.section { padding: 90px 0; }
.section-warm { background: var(--bg-warm); }
.section-soft { background: var(--bg-soft); }
.section-header { text-align: center; max-width: 560px; margin: 0 auto 50px; }
.section-badge { display: inline-block; padding: 5px 14px; background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.15); border-radius: var(--radius-full); font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.badge-purple { background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.15); color: var(--secondary); }
.badge-green { background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.15); color: var(--success); }
.section-header h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 10px; color: var(--text); }
.section-header p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ═══ CHANNELS ═══ */
.channels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.channel-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px 22px; transition: all .3s; position: relative; }
.channel-card:hover { border-color: var(--primary-light); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.channel-card.featured { border-color: var(--primary-light); box-shadow: 0 0 0 2px rgba(249,115,22,0.1), var(--shadow-md); }
.card-badge { position: absolute; top: -10px; right: 16px; padding: 4px 12px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 11px; font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; }
.channel-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 14px; }
.channel-icon[style*="--accent:#34C759"] { background: rgba(52,199,89,0.1); }
.channel-icon[style*="--accent:#AF52DE"] { background: rgba(175,82,222,0.1); }
.channel-icon[style*="--accent:#25D366"] { background: rgba(37,211,102,0.1); }
.channel-icon[style*="--accent:#007AFF"] { background: rgba(0,122,255,0.1); }
.channel-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.channel-card > p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.channel-price { font-size: 26px; font-weight: 900; color: var(--text); margin-bottom: 14px; }
.channel-price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.channel-features { list-style: none; }
.channel-features li { font-size: 13px; color: var(--text-secondary); padding: 5px 0; padding-left: 22px; position: relative; }
.channel-features li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; font-size: 12px; }

/* ═══ TOOLS ═══ */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 28px; transition: all .3s; position: relative; }
.tool-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-icon { font-size: 34px; margin-bottom: 12px; }
.tool-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.tool-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.tool-tag { position: absolute; top: 14px; right: 14px; padding: 3px 10px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 10px; font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; }

/* ═══ PRICING ═══ */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 780px; margin: 0 auto 36px; }
.pricing-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1060px; }
.pricing-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 10px; }
.pricing-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px 28px; position: relative; transition: all .3s; }
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-featured { border: 2px solid var(--primary); box-shadow: 0 0 0 4px rgba(249,115,22,0.08), var(--shadow-lg); transform: scale(1.02); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 22px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 12px; font-weight: 700; border-radius: var(--radius-full); text-transform: uppercase; white-space: nowrap; box-shadow: 0 4px 12px rgba(249,115,22,0.3); }
.pricing-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.pricing-header p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pricing-price { margin-bottom: 4px; }
.price-amount { font-size: 52px; font-weight: 900; color: var(--text); }
.price-period { font-size: 15px; color: var(--text-muted); font-weight: 500; }
.pricing-credits { font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { font-size: 13px; padding: 7px 0; padding-left: 26px; position: relative; border-bottom: 1px solid var(--border-light); }
.pricing-features li:last-child { border: none; }
.pricing-features li.included { color: var(--text-secondary); }
.pricing-features li.included::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-features li.excluded { color: var(--text-muted); opacity: 0.45; }
.pricing-features li.excluded::before { content: '—'; position: absolute; left: 2px; color: var(--text-muted); }
.pricing-rates { text-align: center; padding: 20px; background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: var(--radius); max-width: 560px; margin: 0 auto; }
.pricing-rates h4 { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; }
.rates-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.rate { font-size: 14px; color: var(--text-secondary); }
.rate strong { color: var(--text); font-weight: 800; margin-left: 4px; }

/* ═══ SECTORS ═══ */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.sector-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 20px 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text); transition: all .3s; cursor: default; }
.sector-card:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sector-card span { display: block; font-size: 30px; margin-bottom: 6px; }

/* ═══ FORM ═══ */
.signup-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group input, .form-group select { width: 100%; padding: 12px 16px; background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.08); }
.form-group input::placeholder { color: var(--text-muted); }
.form-group select { cursor: pointer; }
.form-note { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.form-note a { color: var(--primary); }
.form-result { padding: 12px; border-radius: var(--radius-sm); text-align: center; font-size: 14px; font-weight: 600; margin-top: 12px; }
.form-result.success { background: rgba(16,185,129,0.08); color: var(--success); }
.form-result.error { background: rgba(239,68,68,0.08); color: var(--danger); }

/* ═══ FOOTER ═══ */
.footer { background: var(--bg-dark); color: #fff; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-top: 8px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.45); padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .channels-grid { grid-template-columns: repeat(2, 1fr); }
    .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .nav-mobile-toggle { display: flex; }
    .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); padding: 16px 24px; gap: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 30px; }
    .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
    .channels-grid, .tools-grid { grid-template-columns: 1fr; }
    .pricing-grid, .pricing-grid-3 { grid-template-columns: 1fr; }
    .pricing-featured { transform: none; }
    .form-row { grid-template-columns: 1fr; }
    #migration div[style*="grid-template-columns:1fr 40px 1fr"] { grid-template-columns: 1fr !important; gap: 16px !important; }
    #migration div[style*="grid-template-columns:1fr 40px 1fr"] > div:nth-child(2) { transform: rotate(90deg); justify-self: center; }
    #migration div[style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .sectors-grid { grid-template-columns: repeat(3, 1fr); }
    .section { padding: 60px 0; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-content > * { animation: fadeInUp 0.7s ease forwards; opacity: 0; }
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }

/* ═══ DEVELOPER SECTION ═══ */
.code-tab.active { border-bottom-color: #7c3aed !important; color: #e0e0f0 !important; }
.code-tab:hover { color: #e0e0f0 !important; background: rgba(255,255,255,0.03); }

/* Plan selector in form */
.plan-selector input[type="radio"]:checked + .plan-option-inner {
    border-color: var(--secondary);
    background: rgba(139,92,246,0.04);
    box-shadow: 0 0 0 2px rgba(139,92,246,0.15);
}
.plan-option-inner {
    padding: 14px 10px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.plan-option-inner:hover { border-color: var(--secondary-light); }
.plan-option-inner strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.plan-option-inner span { font-size: 12px; color: var(--text-muted); }

@media (max-width: 768px) {
    #developers .container > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    #developers div[style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
    #developers div[style*="display:flex;align-items:center;justify-content:space-between"] { flex-direction: column; text-align: center; }
    .plan-selector { grid-template-columns: 1fr !important; }
}
