/* ============================================
   ERNESTOOL.COM - Main Stylesheet
   Dark Tech Theme - Premium Design
   ============================================ */

:root {
    --accent: #ff4500;
    --accent-2: #ff7700;
    --bg-primary: #080811;
    --bg-secondary: #0f0f1e;
    --bg-card: #13131f;
    --bg-card-hover: #1a1a2e;
    --border: rgba(255,255,255,0.07);
    --text-primary: #f0f0f5;
    --text-secondary: #9090b0;
    --green: #00e676;
    --orange: #ff9100;
    --font: 'Outfit', sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(8, 8, 17, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 1.5em; }
.logo-text { font-size: 1.4em; font-weight: 800; color: var(--text-primary); }
.accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0 auto; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-primary); }
.btn-nav {
    background: var(--accent); color: #fff; padding: 10px 22px;
    border-radius: 8px; text-decoration: none; font-weight: 700;
    transition: all 0.2s; white-space: nowrap;
}
.btn-nav:hover { background: var(--accent-2); transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5em; cursor: pointer; }

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 100px 24px 60px;
    position: relative; overflow: hidden;
    max-width: 1400px; margin: 0 auto;
    gap: 60px;
}
.hero-bg {
    position: fixed; inset: 0; z-index: -1;
    pointer-events: none;
}
.grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,69,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,69,0,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
}
.glow {
    position: absolute; border-radius: 50%;
    filter: blur(120px); opacity: 0.15;
    animation: floatGlow 8s ease-in-out infinite;
}
.glow-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.glow-2 { width: 400px; height: 400px; background: #5500ff; bottom: -100px; right: 0; animation-delay: -4s; }
@keyframes floatGlow {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { flex: 1; max-width: 600px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,69,0,0.12); border: 1px solid rgba(255,69,0,0.3);
    color: var(--accent); padding: 6px 16px; border-radius: 50px;
    font-size: 0.85em; font-weight: 600; margin-bottom: 24px;
}
.pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-2), #ffcc00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    color: var(--text-secondary); font-size: 1.1em;
    margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; font-weight: 700; font-size: 1em;
    transition: all 0.3s; box-shadow: 0 8px 30px rgba(255,69,0,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,69,0,0.5); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.07); border: 1px solid var(--border);
    color: var(--text-primary); padding: 14px 28px; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: 1em;
    transition: all 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8em; font-weight: 900; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.75em; color: var(--text-secondary); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ---- MOCKUP ---- */
.hero-mockup { flex: 0 0 420px; }
.mockup-window {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(255,69,0,0.1);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
.mockup-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 16px; background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mockup-title { margin-left: auto; font-size: 0.8em; color: var(--text-secondary); font-family: var(--mono); }
.mockup-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.mockup-line { display: flex; justify-content: space-between; align-items: center; }
.line-label { font-family: var(--mono); font-size: 0.75em; color: var(--text-secondary); }
.line-value { font-family: var(--mono); font-size: 0.78em; font-weight: 700; color: var(--text-primary); }
.line-value.green { color: var(--green); }
.line-value.orange { color: var(--orange); }
.mockup-separator { height: 1px; background: var(--border); margin: 4px 0; }
.mockup-progress { display: flex; flex-direction: column; gap: 6px; }
.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.progress-fill {
    height: 100%; width: 78%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    animation: progressAnim 2s ease-in-out infinite alternate;
}
@keyframes progressAnim {
    from { width: 70%; }
    to { width: 88%; }
}
.progress-pct { font-family: var(--mono); font-size: 0.75em; color: var(--accent); align-self: flex-end; }

/* ---- SECTIONS ---- */
.section-container { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    background: rgba(255,69,0,0.12); border: 1px solid rgba(255,69,0,0.3);
    color: var(--accent); padding: 5px 16px; border-radius: 50px;
    font-size: 0.8em; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.05em; max-width: 500px; margin: 0 auto; }

/* ---- TOOLS ---- */
.tools { background: var(--bg-secondary); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.tool-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; position: relative;
    transition: all 0.3s; cursor: default;
}
.tool-card:hover { border-color: rgba(255,69,0,0.4); transform: translateY(-4px); background: var(--bg-card-hover); }
.tool-card.featured { border-color: rgba(255,69,0,0.5); box-shadow: 0 0 40px rgba(255,69,0,0.1); }
.tool-icon { font-size: 2em; margin-bottom: 14px; display: block; }
.tool-card h3 { font-size: 1.2em; font-weight: 700; margin-bottom: 8px; }
.tool-card p { color: var(--text-secondary); font-size: 0.9em; margin-bottom: 16px; line-height: 1.6; }
.tool-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tool-features li { font-size: 0.85em; color: var(--text-secondary); }
.tool-badge {
    position: absolute; top: -10px; right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; padding: 4px 14px; border-radius: 20px;
    font-size: 0.75em; font-weight: 700;
}

/* ---- FEATURES ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px;
    transition: all 0.3s;
}
.feature-item:hover { border-color: rgba(255,69,0,0.3); transform: translateY(-3px); }
.feature-icon { font-size: 2em; margin-bottom: 14px; display: block; }
.feature-item h4 { font-size: 1.05em; font-weight: 700; margin-bottom: 8px; }
.feature-item p { color: var(--text-secondary); font-size: 0.9em; line-height: 1.6; }

/* ---- PRICING ---- */
.pricing { background: var(--bg-secondary); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 32px; position: relative;
    transition: all 0.3s;
}
.price-card:hover { transform: translateY(-5px); }
.price-card.featured {
    border-color: rgba(255,69,0,0.5);
    background: linear-gradient(145deg, #1a1020, #130d0d);
    box-shadow: 0 0 60px rgba(255,69,0,0.15);
}
.price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; padding: 5px 20px; border-radius: 20px;
    font-size: 0.8em; font-weight: 700; white-space: nowrap;
}
.price-header { margin-bottom: 28px; }
.price-header h3 { font-size: 1.1em; color: var(--text-secondary); margin-bottom: 12px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.currency { font-size: 1.2em; color: var(--accent); font-weight: 700; }
.amount { font-size: 3em; font-weight: 900; line-height: 1; }
.period { color: var(--text-secondary); font-size: 0.85em; margin-left: 4px; }
.savings { display: inline-block; background: rgba(0,230,118,0.12); color: var(--green); padding: 3px 10px; border-radius: 20px; font-size: 0.8em; font-weight: 600; }
.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { font-size: 0.9em; color: var(--text-secondary); }
.price-features li:first-child, .price-features li:nth-child(2), .price-features li:nth-child(3), .price-features li:nth-child(4) { color: var(--text-primary); }
.btn-price {
    display: block; text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff; padding: 14px; border-radius: 10px;
    text-decoration: none; font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(255,69,0,0.3);
}
.btn-price:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,69,0,0.5); }

/* ---- CONTACT ---- */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.social-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; text-decoration: none; color: inherit;
    transition: all 0.3s; display: flex; flex-direction: column; gap: 8px;
}
.social-card:hover { transform: translateY(-4px); }
.social-card.telegram:hover { border-color: #2ca5e0; box-shadow: 0 0 30px rgba(44,165,224,0.15); }
.social-card.facebook:hover { border-color: #1877f2; box-shadow: 0 0 30px rgba(24,119,242,0.15); }
.social-card.tiktok:hover { border-color: #fe2c55; box-shadow: 0 0 30px rgba(254,44,85,0.15); }
.social-card.youtube:hover { border-color: #ff0000; box-shadow: 0 0 30px rgba(255,0,0,0.15); }
.social-icon { font-size: 2em; }
.social-card h4 { font-size: 1.1em; font-weight: 700; }
.social-card p { color: var(--text-secondary); font-size: 0.85em; }
.social-handle { color: var(--accent); font-size: 0.85em; font-weight: 600; margin-top: auto; }

/* ---- FOOTER ---- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); }
.footer-container {
    max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo-text { font-size: 1.3em; font-weight: 800; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9em; margin-top: 4px; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 { font-size: 0.85em; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9em; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto; padding: 20px 24px;
    border-top: 1px solid var(--border);
    text-align: center; color: var(--text-secondary); font-size: 0.85em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero { flex-direction: column; padding-top: 120px; text-align: center; }
    .hero-mockup { flex: none; width: 100%; max-width: 400px; margin: 0 auto; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-badge { justify-content: center; }
    .btn-nav, .nav-links { display: none; }
    .hamburger { display: block; }
    .footer-container { grid-template-columns: 1fr; gap: 32px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
}
