:root {
    --bg-dark: #0D1117;
    --accent: #00C896; /* RankRax Green */
    --card-bg: #161b22;
    --border: rgba(0, 200, 150, 0.2);
    --text-white: #f0f4f8;
    --text-dim: #8b949e;
}

body {
    margin: 0; font-family: 'Syne', sans-serif; background-color: var(--bg-dark); color: var(--text-white);
}

header {
    background: rgba(13, 17, 23, 0.95); padding: 15px 5%; display: flex; 
    justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px);
}
.logo { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; }
.logo span { color: var(--accent); }
nav a { color: var(--text-white); text-decoration: none; margin-left: 20px; font-weight: 600; font-size: 0.9rem; }

.hero { text-align: center; padding: 60px 20px; }
.hero-badge { 
    background: rgba(0, 200, 150, 0.1); color: var(--accent); 
    padding: 6px 16px; border-radius: 20px; font-size: 0.8rem; display: inline-block; margin-bottom: 15px;
}
h1 em { color: var(--accent); font-style: normal; }

.tool-container {
    display: grid; grid-template-columns: 1fr 200px 1fr; gap: 0; 
    max-width: 1300px; margin: 0 auto 40px; padding: 0 20px;
}

.editor-wrap { background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.editor-header { background: #f8f9fa; padding: 10px; color: #333; font-weight: 700; border-bottom: 1px solid #ddd; }
textarea { height: 450px; padding: 15px; border: none; outline: none; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.editor-footer { background: #f8f9fa; padding: 5px 15px; font-size: 0.7rem; color: #999; }

.controls-center { display: flex; flex-direction: column; gap: 15px; padding: 0 20px; justify-content: center; }
.btn { width: 100%; padding: 12px; border: none; border-radius: 5px; cursor: pointer; font-weight: 800; transition: 0.3s; }
.btn-primary { background: var(--accent); color: var(--bg-dark); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: #ff6b6b; border: 1px solid #ff6b6b; }
.btn:hover { transform: scale(1.03); opacity: 0.9; }

/* Why Minify & FAQ Section */
.info-section { padding: 80px 5%; border-top: 1px solid var(--border); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; }
.info-text h2 { font-size: 2.5rem; color: var(--accent); }
.info-text p { color: var(--text-dim); font-size: 1.1rem; }

.accordion-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; }
.accordion-header { 
    width: 100%; padding: 20px; background: transparent; border: none; color: #fff; 
    text-align: left; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between;
}
.accordion-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: 0.3s; color: var(--text-dim); }
.accordion-item.active .accordion-content { max-height: 100px; padding-bottom: 20px; }

/* EXPLORE TOOLS (image_956796.png) */
.explore-tools { padding: 80px 5%; max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border); }
.subtitle { color: var(--text-dim); margin-bottom: 40px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.tool-card { 
    background: var(--card-bg); border: 1px solid var(--border); padding: 25px; 
    border-radius: 12px; display: flex; gap: 20px; text-decoration: none; transition: 0.3s;
}
.tool-card:hover { border-color: var(--accent); background: rgba(0, 200, 150, 0.05); }
.tool-icon { 
    width: 60px; height: 60px; background: rgba(0, 200, 150, 0.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; font-size: 0.8rem;
}
.tool-info h3 { margin: 0; color: #fff; font-size: 1.1rem; }
.tool-info p { margin: 5px 0 0; color: var(--text-dim); font-size: 0.85rem; }

footer { text-align: center; padding: 40px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.8rem; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; }
.modal-content { background: var(--bg-dark); width: 400px; margin: 10% auto; padding: 30px; border: 1px solid var(--border); border-radius: 15px; text-align: center; }
.modal-content input { width: 100%; padding: 12px; margin: 15px 0; background: #000; border: 1px solid var(--border); color: #fff; box-sizing: border-box; }

@media (max-width: 900px) {
    .tool-container, .info-grid { grid-template-columns: 1fr; }
    .controls-center { padding: 30px 0; }
}