@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --bg:       #06060F;
  --bg2:      #0C0C1A;
  --bg3:      #11111F;
  --surface:  rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.08);
  --border2:  rgba(255,255,255,0.15);
  --accent:   #00E87A;
  --accent-d: rgba(0,232,122,0.12);
  --accent2:  #7B6FFF;
  --text:     #ECEDF8;
  --text2:    #8A8AA8;
  --text3:    #55556A;
  --r:        10px;
  --r-lg:     18px;
  --r-xl:     24px;
  --shadow:   0 8px 40px rgba(0,0,0,0.5);
  --glow:     0 0 60px rgba(0,232,122,0.15);
  --f-head:   'Syne', sans-serif;
  --f-body:   'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--f-head); line-height: 1.1; }
h1 { font-size: clamp(2.8rem,6vw,5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--text2); line-height: 1.7; }
a  { text-decoration: none; color: inherit; }

/* ── GRADIENT TEXT ── */
.grad { background: linear-gradient(135deg, #00E87A 0%, #7B6FFF 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r);
  font-family: var(--f-body); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #06060F;
  box-shadow: 0 0 30px rgba(0,232,122,0.3);
}
.btn-primary:hover { background: #00ff88; transform: translateY(-1px); box-shadow: 0 0 50px rgba(0,232,122,0.45); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface2); border-color: var(--border2); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-d); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ── CARD ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ── BADGE ── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.badge-green { background: var(--accent-d); color: var(--accent); border: 1px solid rgba(0,232,122,0.2); }
.badge-purple { background: rgba(123,111,255,0.12); color: var(--accent2); border: 1px solid rgba(123,111,255,0.2); }
.badge-gray { background: var(--surface); color: var(--text2); border: 1px solid var(--border); }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.form-input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 11px 14px;
  color: var(--text); font-family: var(--f-body); font-size: 14px;
  transition: border-color .2s, box-shadow .2s; width: 100%;
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-d); }
.form-input::placeholder { color: var(--text3); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(6,6,15,0.7); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
.nav-logo { font-family: var(--f-head); font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.nav-logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 7px 14px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--text2); transition: all .15s; }
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 40px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.18;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #00E87A, transparent); top: -200px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #7B6FFF, transparent); bottom: -150px; right: -100px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #00E87A, transparent); bottom: 100px; left: 40%; animation-delay: -2s; opacity: 0.08; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1100px; margin: 0 auto; width: 100%; }
.hero-content { display: flex; flex-direction: column; gap: 24px; }
.hero-badge { align-self: flex-start; }
.hero-title { margin: 0; }
.hero-sub { font-size: 1.1rem; max-width: 460px; }
.hero-ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; padding-top: 8px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: var(--f-head); font-size: 1.4rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text3); }

/* ── HERO VISUAL ── */
.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.tool-dots { display: flex; gap: 6px; }
.tool-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--border2);
}
.tool-dots span:first-child { background: #FF5F56; }
.tool-dots span:nth-child(2) { background: #FFBD2E; }
.tool-dots span:nth-child(3) { background: #27C93F; }

.tool-card-mini {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s;
}
.tool-card-mini:hover { border-color: rgba(0,232,122,0.3); background: rgba(0,232,122,0.03); }
.tool-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tool-info { flex: 1; }
.tool-name { font-family: var(--f-head); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.tool-desc { font-size: 12px; color: var(--text3); }
.tool-arrow { color: var(--text3); font-size: 16px; transition: all .2s; }
.tool-card-mini:hover .tool-arrow { color: var(--accent); transform: translateX(2px); }

/* ── SECTION ── */
.section { padding: 90px 40px; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; max-width: 520px; color: var(--text2); margin-bottom: 52px; }
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto 52px; }

/* ── TOOLS GRID ── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tool-big-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: all .25s; position: relative; overflow: hidden;
}
.tool-big-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(circle at 20% 80%, rgba(0,232,122,0.05), transparent 60%);
}
.tool-big-card:hover { border-color: rgba(0,232,122,0.25); transform: translateY(-4px); box-shadow: 0 16px 60px rgba(0,0,0,0.5); }
.tool-big-card:hover::before { opacity: 1; }
.tool-big-icon { font-size: 2rem; margin-bottom: 18px; display: block; }
.tool-big-title { font-family: var(--f-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.tool-big-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 20px; }
.tool-big-footer { display: flex; align-items: center; justify-content: space-between; }
.tool-tag { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.tag-free { background: rgba(0,232,122,0.1); color: var(--accent); }
.tag-pro  { background: rgba(123,111,255,0.12); color: var(--accent2); }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-d); border: 1px solid rgba(0,232,122,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 800; font-size: 1.1rem; color: var(--accent);
}
.step h3 { font-size: 1rem; }
.step p { font-size: 14px; color: var(--text2); }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 36px 30px;
  position: relative; transition: all .25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card.popular {
  border-color: rgba(0,232,122,0.4);
  background: rgba(0,232,122,0.03);
  box-shadow: 0 0 60px rgba(0,232,122,0.08);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #06060F;
  font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.plan-name { font-family: var(--f-head); font-size: 0.9rem; font-weight: 700; color: var(--text2); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.plan-price { margin-bottom: 6px; }
.plan-price .amount { font-family: var(--f-head); font-size: 2.8rem; font-weight: 800; color: var(--text); }
.plan-price .per { font-size: 14px; color: var(--text2); }
.plan-desc { font-size: 13px; color: var(--text2); margin-bottom: 28px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; width: 16px; flex-shrink: 0; }
.plan-features li.off { color: var(--text3); }
.plan-features li.off::before { content: '×'; color: var(--text3); }

/* ── CTA BANNER ── */
.cta-banner {
  margin: 0 40px 80px;
  background: linear-gradient(135deg, rgba(0,232,122,0.08) 0%, rgba(123,111,255,0.08) 100%);
  border: 1px solid rgba(0,232,122,0.2);
  border-radius: var(--r-xl); padding: 70px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,232,122,0.05), transparent 70%);
  pointer-events: none;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 40px 40px;
  max-width: 1100px; margin: 0 auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { font-size: 13px; color: var(--text2); margin-top: 12px; max-width: 260px; }
.footer-col h4 { font-family: var(--f-head); font-size: 13px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 13px; color: var(--text2); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 13px; color: var(--text3); }

/* ── AUTH PAGES ── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative;
}
.auth-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 48px 40px;
  width: 100%; max-width: 440px; position: relative; z-index: 1;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-family: var(--f-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; text-align: center; }
.auth-sub { text-align: center; color: var(--text2); font-size: 14px; margin-bottom: 36px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--text2); margin-top: 24px; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.alert { padding: 12px 16px; border-radius: var(--r); font-size: 13px; margin-bottom: 16px; }
.alert-error { background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.2); color: #ff6b6b; }
.alert-success { background: rgba(0,232,122,0.1); border: 1px solid rgba(0,232,122,0.2); color: var(--accent); }

/* ── DASHBOARD ── */
.dash-wrap { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
}
.sidebar-logo { font-family: var(--f-head); font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 32px; }
.sidebar-section { font-size: 11px; font-weight: 700; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 12px; margin-bottom: 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r); font-size: 14px; font-weight: 500;
  color: var(--text2); transition: all .15s; margin-bottom: 4px;
  text-decoration: none;
}
.sidebar-link:hover { color: var(--text); background: var(--surface); }
.sidebar-link.active { color: var(--text); background: var(--surface2); }
.sidebar-link .icon { font-size: 16px; width: 20px; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); }
.user-pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-d); border: 1px solid rgba(0,232,122,0.3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--accent); }
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 11px; color: var(--text3); }

.dash-main { margin-left: 240px; flex: 1; }
.dash-header { padding: 28px 36px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dash-header h1 { font-size: 1.4rem; font-weight: 700; }
.dash-body { padding: 36px; }
.dash-section-title { font-family: var(--f-head); font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text2); }

/* ── TOOL PAGE ── */
.tool-wrap { max-width: 860px; }
.tool-header { margin-bottom: 36px; }
.tool-header h1 { font-size: 2rem; }
.tool-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tool-body.single { grid-template-columns: 1fr; }
.result-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; min-height: 200px; }
.result-box pre { white-space: pre-wrap; word-break: break-word; font-family: var(--f-body); font-size: 14px; color: var(--text); line-height: 1.7; }

/* ── USAGE BAR ── */
.usage-bar { background: var(--border); border-radius: 100px; height: 6px; overflow: hidden; }
.usage-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width .5s ease; }
.usage-text { display: flex; justify-content: space-between; font-size: 12px; color: var(--text2); margin-top: 6px; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 14px 20px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease;
  max-width: 360px;
}
.toast.success { border-color: rgba(0,232,122,0.3); }
.toast.success::before { content: '✓'; color: var(--accent); font-weight: 700; }
@keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── UPGRADE GATE ── */
.upgrade-gate {
  text-align: center; padding: 60px 40px;
  border: 2px dashed var(--border2); border-radius: var(--r-xl);
}
.upgrade-gate h3 { margin-bottom: 8px; }
.upgrade-gate p { margin-bottom: 24px; font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .tool-body { grid-template-columns: 1fr; }
  .sidebar { width: 200px; }
  .dash-main { margin-left: 200px; }
}
@media (max-width: 600px) {
  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .auth-box { padding: 32px 24px; }
  .sidebar { position: relative; width: 100%; }
  .dash-wrap { flex-direction: column; }
  .dash-main { margin-left: 0; }
}

/* ── ANIMATIONS ── */
.fade-in { animation: fadeIn .6s ease both; }
.fade-up { animation: fadeUp .6s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
[data-delay="1"] { animation-delay: .1s; }
[data-delay="2"] { animation-delay: .2s; }
[data-delay="3"] { animation-delay: .3s; }
[data-delay="4"] { animation-delay: .4s; }

/* ── SPINNER ── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,0.2); border-top-color: #06060F; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TABLE ── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.table th { font-weight: 600; color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr:hover td { background: var(--surface); }
.table-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
