/* ============================================================
 CSS CUSTOM PROPERTIES & RESET
============================================================ */
:root {
--bg-deep: #040810;
--bg-dark: #080d1a;
--bg-card: #0d1426;
--bg-card2:#111929;
--accent:#00e5ff;
--accent2: #7c3aed;
--accent3: #f472b6;
--gold:#fbbf24;
--text-primary:#f0f4ff;
--text-muted:#8896b0;
--text-soft: #c5cfe8;
--border:rgba(0,229,255,0.12);
--border2: rgba(124,58,237,0.2);
--glow:0 0 40px rgba(0,229,255,0.15);
--glow2: 0 0 40px rgba(124,58,237,0.2);
--radius:14px;
--radius-lg: 22px;
--shadow:0 8px 40px rgba(0,0,0,0.5);
--font-display:'Syne', sans-serif;
--font-body: 'DM Sans', sans-serif;
--nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
font-family: var(--font-body);
background: var(--bg-deep);
color: var(--text-primary);
line-height: 1.65;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ============================================================
 RANDOM TOOLS BAR
============================================================ */
#tools-bar {
background: linear-gradient(90deg, #0d1426 0%, #111929 100%);
border-bottom: 1px solid var(--border);
padding: 0 1rem;
overflow: hidden;
}
.tools-bar-inner {
display: flex;
align-items: center;
gap: 0;
height: 38px;
white-space: nowrap;
}
.tools-bar-label {
font-size: 0.68rem;
font-weight: 600;
letter-spacing: 0.08em;
color: var(--accent);
text-transform: uppercase;
padding-right: 12px;
border-right: 1px solid var(--border);
margin-right: 12px;
flex-shrink: 0;
}
.tools-scroll-wrap { overflow: hidden; flex: 1; position: relative; }
.tools-scroll-track {
display: flex;
gap: 6px;
animation: toolsScroll 30s linear infinite;
width: max-content;
}
.tools-scroll-track:hover { animation-play-state: paused; }
@keyframes toolsScroll {
0% { transform: translateX(0); }
100% { transform: translateX(-50%); }
}
.tool-chip {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 12px;
border-radius: 50px;
background: rgba(0,229,255,0.06);
border: 1px solid rgba(0,229,255,0.15);
font-size: 0.72rem;
color: var(--text-soft);
transition: all 0.2s;
flex-shrink: 0;
}
.tool-chip:hover { background: rgba(0,229,255,0.14); color: var(--accent); border-color: var(--accent); }
.tool-chip i { font-size: 0.65rem; }

/* ============================================================
 NAVIGATION
============================================================ */
#navbar {
position: sticky;
top: 0;
z-index: 900;
height: var(--nav-h);
background: rgba(4,8,16,0.92);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
padding: 0 1.5rem;
}
.nav-inner {
max-width: 1280px;
margin: 0 auto;
width: 100%;
display: flex;
align-items: center;
gap: 1.5rem;
}
.nav-logo {
font-family: var(--font-display);
font-size: 1.25rem;
font-weight: 800;
color: var(--text-primary);
flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links {
display: flex;
align-items: center;
gap: 0.25rem;
flex: 1;
}
.nav-item { position: relative; }
.nav-link {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 12px;
font-size: 0.84rem;
font-weight: 500;
color: var(--text-soft);
border-radius: 8px;
transition: all 0.2s;
white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--accent); background: rgba(0,229,255,0.07); }
.nav-link i { font-size: 0.7rem; transition: transform 0.2s; }
.nav-item:hover .nav-link i { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
position: absolute;
top: calc(100% + 8px);
left: 0;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 1rem;
min-width: 520px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
opacity: 0;
visibility: hidden;
transform: translateY(-8px);
transition: all 0.25s;
box-shadow: var(--shadow);
z-index: 999;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-link {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-radius: 8px;
font-size: 0.8rem;
color: var(--text-soft);
transition: all 0.18s;
}
.nav-dd-link i { color: var(--accent); font-size: 0.75rem; width: 14px; }
.nav-dd-link:hover { background: rgba(0,229,255,0.08); color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-nav {
padding: 7px 16px;
border-radius: 8px;
font-size: 0.82rem;
font-weight: 600;
background: linear-gradient(135deg, var(--accent2), var(--accent));
color: #fff;
transition: all 0.2s;
white-space: nowrap;
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hamburger */
#nav-toggle {
display: none;
flex-direction: column;
gap: 5px;
padding: 6px;
border-radius: 8px;
background: rgba(255,255,255,0.06);
cursor: pointer;
margin-left: auto;
}
#nav-toggle span {
display: block;
width: 22px;
height: 2px;
background: var(--text-primary);
border-radius: 2px;
transition: all 0.3s;
}
#nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
#nav-toggle.open span:nth-child(2) { opacity: 0; }
#nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav overlay */
#mobile-nav {
display: none;
position: fixed;
inset: 0;
top: var(--nav-h);
background: var(--bg-deep);
z-index: 800;
overflow-y: auto;
padding: 1.5rem;
}
#mobile-nav.open { display: block; }
.mob-nav-section { margin-bottom: 1.5rem; }
.mob-nav-title {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent);
margin-bottom: 0.75rem;
}
.mob-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mob-nav-link {
display: flex;
align-items: center;
gap: 6px;
padding: 9px 12px;
border-radius: 9px;
font-size: 0.8rem;
color: var(--text-soft);
background: var(--bg-card);
border: 1px solid var(--border);
transition: all 0.18s;
}
.mob-nav-link:hover { color: var(--accent); border-color: var(--accent); }
.mob-nav-link i { color: var(--accent); font-size: 0.72rem; }

/* ============================================================
 BREADCRUMB
============================================================ */
#breadcrumb {
background: var(--bg-dark);
border-bottom: 1px solid var(--border);
padding: 10px 1.5rem;
}
.breadcrumb-inner {
max-width: 1280px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 6px;
font-size: 0.8rem;
color: var(--text-muted);
flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner .sep { color: var(--border); }
.breadcrumb-inner .current { color: var(--accent); font-weight: 500; }

/* ============================================================
 CONTAINER / SECTIONS
============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ============================================================
 HERO SECTION
============================================================ */
#hero {
position: relative;
padding: 5rem 0 4rem;
overflow: hidden;
}
.hero-bg {
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,255,0.12) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 90% 50%, rgba(124,58,237,0.1) 0%, transparent 55%),
radial-gradient(ellipse 40% 30% at 10% 80%, rgba(244,114,182,0.07) 0%, transparent 50%);
pointer-events: none;
}
/* Animated waveform lines in hero */
.hero-waves {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 80px;
display: flex;
align-items: flex-end;
justify-content: center;
gap: 3px;
opacity: 0.15;
pointer-events: none;
}
.hero-wave-bar {
width: 3px;
background: var(--accent);
border-radius: 3px;
animation: wavePulse 1.4s ease-in-out infinite;
}
@keyframes wavePulse {
0%,100% { height: 8px; }
50% { height: 60px; }
}

.hero-inner {
position: relative;
text-align: center;
max-width: 820px;
margin: 0 auto;
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 14px;
border-radius: 50px;
background: rgba(0,229,255,0.08);
border: 1px solid rgba(0,229,255,0.2);
font-size: 0.78rem;
font-weight: 600;
color: var(--accent);
margin-bottom: 1.5rem;
letter-spacing: 0.04em;
}
.hero-badge .dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--accent);
animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
font-family: var(--font-display);
font-size: clamp(2.2rem, 5vw, 3.8rem);
font-weight: 800;
line-height: 1.12;
margin-bottom: 1.25rem;
letter-spacing: -0.02em;
}
.hero-title .grd {
background: linear-gradient(135deg, #00e5ff, #7c3aed, #f472b6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.hero-subtitle {
font-size: 1.05rem;
color: var(--text-muted);
max-width: 600px;
margin: 0 auto 2rem;
line-height: 1.7;
}

.hero-stats {
display: flex;
align-items: center;
justify-content: center;
gap: 2rem;
margin-bottom: 2.5rem;
flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-val {
font-family: var(--font-display);
font-size: 1.6rem;
font-weight: 800;
color: var(--accent);
}
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.hero-btns {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
}

/* ============================================================
 BUTTONS
============================================================ */
.btn-primary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 13px 28px;
border-radius: 12px;
font-size: 0.95rem;
font-weight: 700;
background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 100%);
color: #fff;
transition: all 0.25s;
box-shadow: 0 4px 24px rgba(0,229,255,0.25);
white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,255,0.35); }

.btn-secondary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 24px;
border-radius: 12px;
font-size: 0.9rem;
font-weight: 600;
background: transparent;
color: var(--text-soft);
border: 1px solid var(--border);
transition: all 0.25s;
white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,229,255,0.06); }

/* ============================================================
 MAIN TOOL CARD
============================================================ */
#tool-section { padding: 3rem 0 5rem; }

.tool-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 2rem;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}
.tool-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 2px;
background: linear-gradient(90deg, var(--accent2), var(--accent), var(--accent3));
}

/* Mode Tabs */
.mode-tabs {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 1.5rem;
}
.mode-tab {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 14px;
border-radius: 9px;
font-size: 0.82rem;
font-weight: 600;
color: var(--text-muted);
background: var(--bg-card2);
border: 1px solid transparent;
transition: all 0.2s;
}
.mode-tab:hover { color: var(--text-soft); border-color: var(--border); }
.mode-tab.active {
color: var(--accent);
background: rgba(0,229,255,0.1);
border-color: rgba(0,229,255,0.3);
}
.mode-tab i { font-size: 0.8rem; }

/* Upload Zone */
.upload-zone {
border: 2px dashed rgba(0,229,255,0.25);
border-radius: var(--radius);
padding: 3rem 2rem;
text-align: center;
background: rgba(0,229,255,0.02);
transition: all 0.25s;
cursor: pointer;
position: relative;
}
.upload-zone.drag-over {
border-color: var(--accent);
background: rgba(0,229,255,0.07);
transform: scale(1.01);
}
.upload-zone.has-file {
border-color: rgba(124,58,237,0.4);
background: rgba(124,58,237,0.05);
}
.upload-icon {
width: 64px; height: 64px;
border-radius: 50%;
background: rgba(0,229,255,0.1);
border: 1px solid rgba(0,229,255,0.2);
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1rem;
font-size: 1.4rem;
color: var(--accent);
transition: all 0.3s;
}
.upload-zone:hover .upload-icon { transform: scale(1.1); background: rgba(0,229,255,0.15); }
.upload-zone h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.upload-zone p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.upload-formats {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
flex-wrap: wrap;
}
.fmt-badge {
padding: 3px 10px;
border-radius: 50px;
background: var(--bg-card2);
border: 1px solid var(--border);
font-size: 0.7rem;
font-weight: 700;
color: var(--text-muted);
letter-spacing: 0.05em;
}
#file-input { display: none; }

/* File Info */
#file-info {
display: none;
align-items: center;
gap: 1rem;
padding: 1rem 1.25rem;
background: var(--bg-card2);
border: 1px solid var(--border2);
border-radius: var(--radius);
margin-top: 1rem;
}
#file-info.show { display: flex; }
.file-icon {
width: 44px; height: 44px;
border-radius: 10px;
background: rgba(124,58,237,0.15);
display: flex;
align-items: center;
justify-content: center;
color: var(--accent2);
font-size: 1.1rem;
flex-shrink: 0;
}
.file-meta { flex: 1; min-width: 0; }
.file-name {
font-size: 0.87rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file-details { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
#remove-file {
padding: 6px 10px;
border-radius: 8px;
background: rgba(244,114,182,0.1);
color: var(--accent3);
font-size: 0.78rem;
border: 1px solid rgba(244,114,182,0.2);
transition: all 0.2s;
}
#remove-file:hover { background: rgba(244,114,182,0.2); }

/* Waveform Canvas */
#waveform-wrap {
display: none;
margin-top: 1.5rem;
}
#waveform-wrap.show { display: block; }
#waveform-canvas {
width: 100%;
height: 120px;
border-radius: var(--radius);
background: var(--bg-card2);
border: 1px solid var(--border);
cursor: pointer;
}
.waveform-controls {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
flex-wrap: wrap;
}
.waveform-time {
font-size: 0.78rem;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
margin-left: auto;
}

/* Settings Panel */
.settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1rem;
margin-top: 1.5rem;
}
.settings-group label {
display: block;
font-size: 0.78rem;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.07em;
margin-bottom: 6px;
}
.settings-group input[type="text"],
.settings-group input[type="number"],
.settings-group select {
width: 100%;
padding: 9px 12px;
background: var(--bg-card2);
border: 1px solid var(--border);
border-radius: 9px;
color: var(--text-primary);
font-size: 0.87rem;
font-family: var(--font-body);
transition: border-color 0.2s;
appearance: none;
}
.settings-group input:focus,
.settings-group select:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 3px rgba(0,229,255,0.1);
}
.settings-group input.error { border-color: #f87171; }
.settings-group .error-msg {
font-size: 0.72rem;
color: #f87171;
margin-top: 4px;
display: none;
}
.settings-group input.error + .error-msg { display: block; }

/* Range slider */
.range-wrap { position: relative; }
input[type="range"] {
width: 100%;
height: 4px;
-webkit-appearance: none;
appearance: none;
background: var(--bg-card2);
border-radius: 4px;
outline: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
background: linear-gradient(90deg, var(--accent) var(--pct, 50%), var(--bg-card2) var(--pct, 50%));
border-radius: 4px;
height: 4px;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px; height: 16px;
border-radius: 50%;
background: var(--accent);
margin-top: -6px;
box-shadow: 0 0 6px rgba(0,229,255,0.5);
}
.range-val {
font-size: 0.75rem;
color: var(--accent);
font-weight: 600;
margin-top: 4px;
}

/* Split Points Editor */
#split-points-area { margin-top: 1.5rem; }
.split-point-item {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.split-point-item input {
flex: 1;
padding: 8px 10px;
background: var(--bg-card2);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text-primary);
font-size: 0.85rem;
font-family: var(--font-body);
}
.split-point-item input:focus { outline: none; border-color: var(--accent); }
.btn-remove-point {
width: 30px; height: 30px;
border-radius: 7px;
background: rgba(244,114,182,0.1);
color: var(--accent3);
font-size: 0.8rem;
border: 1px solid rgba(244,114,182,0.2);
display: flex; align-items: center; justify-content: center;
transition: all 0.2s;
}
.btn-remove-point:hover { background: rgba(244,114,182,0.2); }
.btn-add-point {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border-radius: 8px;
font-size: 0.8rem;
font-weight: 600;
background: rgba(0,229,255,0.07);
border: 1px solid rgba(0,229,255,0.2);
color: var(--accent);
transition: all 0.2s;
}
.btn-add-point:hover { background: rgba(0,229,255,0.12); }

/* Output Format */
.format-pills {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.fmt-pill {
padding: 6px 14px;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 600;
color: var(--text-muted);
background: var(--bg-card2);
border: 1px solid transparent;
transition: all 0.2s;
}
.fmt-pill.active { color: var(--accent); background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.3); }
.fmt-pill:hover { color: var(--text-soft); border-color: var(--border); }

/* Action Bar */
.action-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border);
flex-wrap: wrap;
}
.action-bar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn-split {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 14px 32px;
border-radius: 12px;
font-size: 1rem;
font-weight: 700;
background: linear-gradient(135deg, var(--accent2), var(--accent));
color: #fff;
transition: all 0.25s;
box-shadow: 0 4px 24px rgba(0,229,255,0.2);
}
.btn-split:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,229,255,0.35); }
.btn-split:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-preview {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 12px 20px;
border-radius: 12px;
font-size: 0.87rem;
font-weight: 600;
color: var(--text-soft);
background: var(--bg-card2);
border: 1px solid var(--border);
transition: all 0.2s;
}
.btn-preview:hover { color: var(--accent); border-color: var(--accent); }

/* Progress */
#progress-wrap {
display: none;
margin-top: 1.5rem;
}
#progress-wrap.show { display: block; }
.progress-label {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--text-muted);
margin-bottom: 8px;
}
.progress-bar-bg {
height: 6px;
border-radius: 6px;
background: var(--bg-card2);
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
border-radius: 6px;
background: linear-gradient(90deg, var(--accent2), var(--accent));
width: 0%;
transition: width 0.3s;
}
.progress-stage {
font-size: 0.78rem;
color: var(--accent);
margin-top: 6px;
}

/* Results */
#results-wrap {
display: none;
margin-top: 2rem;
}
#results-wrap.show { display: block; }
.results-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1rem;
flex-wrap: wrap;
gap: 8px;
}
.results-title {
font-family: var(--font-display);
font-size: 1rem;
font-weight: 700;
display: flex;
align-items: center;
gap: 7px;
}
.results-title i { color: var(--accent); }
.btn-dl-all {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
border-radius: 9px;
font-size: 0.82rem;
font-weight: 600;
background: rgba(0,229,255,0.08);
border: 1px solid rgba(0,229,255,0.2);
color: var(--accent);
transition: all 0.2s;
}
.btn-dl-all:hover { background: rgba(0,229,255,0.14); }

.result-items { display: flex; flex-direction: column; gap: 10px; }
.result-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
background: var(--bg-card2);
border: 1px solid var(--border);
border-radius: var(--radius);
transition: border-color 0.2s;
}
.result-item:hover { border-color: rgba(0,229,255,0.25); }
.result-num {
width: 28px; height: 28px;
border-radius: 7px;
background: rgba(0,229,255,0.1);
display: flex; align-items: center; justify-content: center;
font-size: 0.75rem;
font-weight: 700;
color: var(--accent);
flex-shrink: 0;
}
.result-info { flex: 1; min-width: 0; }
.result-name { font-size: 0.84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-meta { font-size: 0.73rem; color: var(--text-muted); margin-top: 2px; }
.result-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.btn-play-seg, .btn-dl-seg {
width: 32px; height: 32px;
border-radius: 8px;
display: flex; align-items: center; justify-content: center;
font-size: 0.75rem;
transition: all 0.2s;
}
.btn-play-seg { background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2); color: var(--accent); }
.btn-play-seg:hover { background: rgba(0,229,255,0.15); }
.btn-dl-seg { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); color: var(--accent2); }
.btn-dl-seg:hover { background: rgba(124,58,237,0.18); }
.result-mini-wave {
width: 80px;
height: 30px;
flex-shrink: 0;
}

/* Visualizer panel */
#analyzer-panel { display: none; margin-top: 1.5rem; }
#analyzer-panel.show { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.analyzer-card {
padding: 1rem;
background: var(--bg-card2);
border: 1px solid var(--border);
border-radius: var(--radius);
}
.analyzer-card-title { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
#freq-canvas, #scope-canvas { width: 100%; height: 80px; border-radius: 8px; background: var(--bg-deep); }

/* ============================================================
 ADVANCED OPTIONS ACCORDION
============================================================ */
.accordion { margin-top: 1.5rem; }
.acc-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px;
background: var(--bg-card2);
border: 1px solid var(--border);
border-radius: 10px;
cursor: pointer;
font-size: 0.85rem;
font-weight: 600;
transition: all 0.2s;
}
.acc-header:hover { border-color: rgba(0,229,255,0.25); color: var(--accent); }
.acc-header i { transition: transform 0.3s; font-size: 0.75rem; color: var(--text-muted); }
.acc-header.open i { transform: rotate(180deg); }
.acc-body {
display: none;
padding: 1rem 14px;
background: rgba(0,229,255,0.02);
border: 1px solid var(--border);
border-top: none;
border-radius: 0 0 10px 10px;
}
.acc-body.open { display: block; }

/* ============================================================
 FEATURES SECTION
============================================================ */
#features { background: var(--bg-dark); }
.section-tag {
display: inline-block;
padding: 4px 12px;
border-radius: 50px;
background: rgba(0,229,255,0.08);
border: 1px solid rgba(0,229,255,0.2);
font-size: 0.72rem;
font-weight: 700;
color: var(--accent);
letter-spacing: 0.08em;
text-transform: uppercase;
margin-bottom: 0.75rem;
}
.section-title {
font-family: var(--font-display);
font-size: clamp(1.7rem, 3.5vw, 2.5rem);
font-weight: 800;
line-height: 1.2;
margin-bottom: 0.75rem;
letter-spacing: -0.02em;
}
.section-sub { font-size: 1rem; color: var(--text-muted); max-width: 560px; line-height: 1.7; }

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 1.25rem;
margin-top: 3rem;
}
.feature-card {
padding: 1.75rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
transition: all 0.3s;
position: relative;
overflow: hidden;
}
.feature-card::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
background: radial-gradient(circle at 0% 0%, rgba(0,229,255,0.05) 0%, transparent 60%);
pointer-events: none;
opacity: 0;
transition: opacity 0.3s;
}
.feature-card:hover { border-color: rgba(0,229,255,0.25); transform: translateY(-3px); box-shadow: var(--glow); }
.feature-card:hover::after { opacity: 1; }
.feat-icon {
width: 48px; height: 48px;
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
font-size: 1.1rem;
margin-bottom: 1rem;
}
.feat-icon.cyan { background: rgba(0,229,255,0.12); color: var(--accent); }
.feat-icon.purple { background: rgba(124,58,237,0.12); color: var(--accent2); }
.feat-icon.pink { background: rgba(244,114,182,0.12); color: var(--accent3); }
.feat-icon.gold { background: rgba(251,191,36,0.12); color: var(--gold); }
.feature-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
 HOW IT WORKS
============================================================ */
#how-it-works {}
.steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-top: 3rem;
position: relative;
}
.step-card {
text-align: center;
padding: 2rem 1.5rem;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
transition: all 0.3s;
}
.step-card:hover { border-color: rgba(0,229,255,0.25); transform: translateY(-3px); }
.step-num {
width: 52px; height: 52px;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent2), var(--accent));
display: flex; align-items: center; justify-content: center;
font-family: var(--font-display);
font-size: 1.1rem;
font-weight: 800;
margin: 0 auto 1.25rem;
box-shadow: 0 4px 20px rgba(0,229,255,0.25);
}
.step-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
 SEO ARTICLE
============================================================ */
#seo-article { background: var(--bg-dark); }
.article-inner {
max-width: 820px;
margin: 0 auto;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 2.5rem;
line-height: 1.8;
}
.article-inner h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-primary); }
.article-inner h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.6rem; color: var(--accent); }
.article-inner p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1rem; }
.article-inner strong { color: var(--text-primary); font-weight: 600; }
.kw-tag {
display: inline-block;
margin: 2px 3px;
padding: 2px 9px;
border-radius: 50px;
background: rgba(0,229,255,0.07);
border: 1px solid rgba(0,229,255,0.15);
font-size: 0.72rem;
color: var(--accent);
}

/* ============================================================
 FAQ
============================================================ */
#faq {}
.faq-wrap { max-width: 760px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.1rem 1.25rem;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
gap: 1rem;
transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q i { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--accent); }
.faq-a {
display: none;
padding: 0 1.25rem 1.1rem;
font-size: 0.84rem;
color: var(--text-muted);
line-height: 1.75;
border-top: 1px solid var(--border);
padding-top: 0.85rem;
}
.faq-item.open .faq-a { display: block; }

/* ============================================================
 CTA SECTION
============================================================ */
#cta {
background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(0,229,255,0.1));
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
text-align: center;
}
.cta-inner { max-width: 680px; margin: 0 auto; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3.5vw,2.4rem); font-weight: 800; margin-bottom: 1rem; }
.cta-inner p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.7; }
.cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============================================================
 DISCLAIMER
============================================================ */
#disclaimer { padding: 2.5rem 0; }
.disclaimer-box {
padding: 1.5rem;
background: rgba(251,191,36,0.05);
border: 1px solid rgba(251,191,36,0.2);
border-radius: var(--radius);
font-size: 0.8rem;
color: var(--text-muted);
line-height: 1.7;
}
.disclaimer-box strong { color: var(--gold); }

/* ============================================================
 FOOTER
============================================================ */
#footer {
background: var(--bg-dark);
border-top: 1px solid var(--border);
padding: 4rem 0 2rem;
}
.footer-grid {
display: grid;
grid-template-columns: 1.4fr repeat(2, 1fr);
gap: 2.5rem;
margin-bottom: 3rem;
}
.footer-brand .logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
width: 34px; height: 34px;
border-radius: 9px;
background: var(--bg-card);
border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-size: 0.8rem;
color: var(--text-muted);
transition: all 0.2s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.footer-links a {
font-size: 0.78rem;
color: var(--text-muted);
padding: 4px 0;
transition: color 0.2s;
display: flex; align-items: center; gap: 4px;
}
.footer-links a:hover { color: var(--accent); }
.footer-links a i { font-size: 0.6rem; color: var(--accent); opacity: 0.6; }
.footer-bottom {
padding-top: 2rem;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
flex-wrap: wrap;
font-size: 0.78rem;
color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ============================================================
 COOKIE BANNER
============================================================ */
#cookie-banner {
position: fixed;
bottom: 1.5rem;
left: 50%;
transform: translateX(-50%);
width: calc(100% - 2rem);
max-width: 760px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 1.25rem 1.5rem;
display: flex;
align-items: center;
gap: 1rem;
box-shadow: var(--shadow);
z-index: 9999;
transition: all 0.4s;
flex-wrap: wrap;
}
#cookie-banner.hide { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }
#cookie-banner i { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; }
#cookie-banner p { flex: 1; font-size: 0.82rem; color: var(--text-muted); min-width: 200px; }
#cookie-banner p a { color: var(--accent); text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie-dismiss {
padding: 8px 18px;
border-radius: 9px;
font-size: 0.82rem;
font-weight: 600;
background: linear-gradient(135deg, var(--accent2), var(--accent));
color: #fff;
transition: all 0.2s;
}
.btn-cookie-dismiss:hover { opacity: 0.88; }
.btn-cookie-policy {
padding: 8px 14px;
border-radius: 9px;
font-size: 0.82rem;
font-weight: 600;
color: var(--text-muted);
border: 1px solid var(--border);
transition: all 0.2s;
}
.btn-cookie-policy:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
 TOAST
============================================================ */
#toast {
position: fixed;
bottom: 5rem;
right: 1.5rem;
padding: 12px 18px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 12px;
font-size: 0.84rem;
color: var(--text-primary);
box-shadow: var(--shadow);
z-index: 9998;
display: flex;
align-items: center;
gap: 8px;
transform: translateX(120%);
transition: transform 0.3s;
}
#toast.show { transform: translateX(0); }
#toast.success i { color: #4ade80; }
#toast.error i { color: #f87171; }

/* ============================================================
 SCROLL TO TOP
============================================================ */
#scroll-top {
position: fixed;
bottom: 5rem;
right: 1.5rem;
width: 40px; height: 40px;
border-radius: 10px;
background: var(--bg-card);
border: 1px solid var(--border);
color: var(--text-muted);
font-size: 0.9rem;
display: flex; align-items: center; justify-content: center;
z-index: 990;
opacity: 0;
pointer-events: none;
transition: all 0.3s;
}
#scroll-top.show { opacity: 1; pointer-events: all; }
#scroll-top:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
 MEDIA QUERIES
============================================================ */
@media (max-width: 768px) {
:root { --nav-h: 56px; }
#nav-toggle { display: flex; }
.nav-links, .nav-right { display: none; }
.footer-grid { grid-template-columns: 1fr; }
section { padding: 3.5rem 0; }
#analyzer-panel.show { grid-template-columns: 1fr; }
.hero-stats { gap: 1.25rem; }
.hero-stat-val { font-size: 1.3rem; }
.settings-grid { grid-template-columns: 1fr; }
.mob-nav-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
.container { padding: 0 1rem; }
.tool-card { padding: 1.25rem; }
.mode-tabs { gap: 4px; }
.mode-tab { padding: 7px 10px; font-size: 0.75rem; }
.article-inner { padding: 1.5rem 1.25rem; }
.action-bar { flex-direction: column; align-items: stretch; }
.btn-split { justify-content: center; }
}

/* Lazy load fade */
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s; }
img[loading="lazy"].loaded { opacity: 1; }
/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: none; }