:root {
  --brand: #0e02eb;
  --brand-soft: #4338ff;
  --brand-accent: #97b4ff;
  --surface: #fafaff;
  --surface-2: rgba(255, 255, 255, 0.78);
  --surface-3: #eef0ff;
  --text: #0f172a;
  --text-soft: #475569;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 20px 60px rgba(14, 2, 235, 0.18);
  --radius: 28px;
  --radius-lg: 36px;
  --max: 1240px;
  --header-bg: rgba(255, 255, 255, 0.78);
  --hero-bg: radial-gradient(circle at top, rgba(14,2,235,0.14), transparent 40%), linear-gradient(135deg, rgba(255,255,255,0.92), rgba(238,240,255,0.78));
  --card-bg: rgba(255,255,255,0.82);
  --muted-bg: rgba(255,255,255,0.66);
  --footer-bg: #060816;
  --footer-text: #cbd5e1;
  --footer-border: rgba(255,255,255,0.08);
  --success: #0f9d58;
}

body.dark {
  --surface: #020617;
  --surface-2: rgba(2, 6, 23, 0.76);
  --surface-3: #0f172a;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --border: rgba(51, 65, 85, 0.72);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --shadow-strong: 0 20px 60px rgba(67, 56, 255, 0.24);
  --header-bg: rgba(2, 6, 23, 0.8);
  --hero-bg: radial-gradient(circle at top, rgba(67,56,255,0.22), transparent 38%), linear-gradient(135deg, rgba(2,6,23,0.96), rgba(15,23,42,0.98));
  --card-bg: rgba(15, 23, 42, 0.8);
  --muted-bg: rgba(15,23,42,0.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 2, 235, 0.06), transparent 24%),
    radial-gradient(circle at bottom right, rgba(151, 180, 255, 0.08), transparent 22%),
    var(--surface);
  transition: background-color .3s ease, color .3s ease;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(14, 2, 235, 0.16); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.stack-80 { padding: 80px 0; }
.stack-64 { padding: 64px 0; }
.stack-40 { padding: 40px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0 0;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  transition: .28s ease;
}
.site-header.shrink { padding: 12px 16px; transform: translateY(-1px); }
.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 18px;
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft), var(--brand-accent));
  box-shadow: var(--shadow-strong);
}
.logo-text strong { display: block; font-size: 1.08rem; letter-spacing: -0.03em; }
.logo-text span { display: block; color: var(--text-soft); font-size: .77rem; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: .96rem; }
.nav-links a:hover, .footer-links a:hover, .footer-tools a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .select-pill, .menu-btn {
  height: 42px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow);
}
.icon-btn:hover, .cta:hover, .ghost-btn:hover, .tool-btn:hover, .newsletter button:hover { transform: translateY(-1px); }
.select-pill select {
  border: 0; background: transparent; color: var(--text);
  outline: 0;
}
.cta, .tool-btn, .newsletter button, .submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 0; padding: 14px 22px;
  color: #fff; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  box-shadow: var(--shadow-strong);
  transition: .2s ease;
}
.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 14px 22px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  box-shadow: var(--shadow); transition: .2s ease;
}
.mobile-panel {
  display: none; margin-top: 12px; padding: 16px; border-radius: 26px;
  border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow);
}
.mobile-panel.open { display: block; }
.mobile-panel a, .mobile-panel button { display: block; width: 100%; margin-bottom: 10px; }
.desktop-only { display: inline-flex; }
.mobile-only { display: none; }
.search-overlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(2, 6, 23, 0.45); backdrop-filter: blur(8px);
}

.hero {
  position: relative; overflow: hidden; padding: 88px 0 72px;
}
.hero-shell {
  position: relative; overflow: hidden; border-radius: 40px; padding: 56px;
  background: var(--hero-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-badge, .section-badge, .pill {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; border: 1px solid rgba(14, 2, 235, 0.18);
  padding: 10px 14px; color: var(--brand); background: var(--surface-2); font-weight: 700;
}
.hero h1, .page-hero h1 { margin: 18px 0 16px; font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.05em; }
.hero p.lead, .page-hero p.lead { font-size: 1.08rem; line-height: 1.8; color: var(--text-soft); max-width: 760px; }
.hero-actions, .inline-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.stats-row, .tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stat-pill, .tag-pill {
  padding: 10px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-weight: 600; color: var(--text-soft);
}
.glass-card, .card, .content-card {
  border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.glass-card { padding: 24px; backdrop-filter: blur(18px); }
.mini-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mini-card, .feature-card, .use-card, .audience-card, .seo-card, .search-panel, .form-card {
  border-radius: 24px; background: var(--muted-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 20px;
}
.mini-card h3, .feature-card h3, .tool-card h3, .section-card h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.mini-card p, .feature-card p, .tool-card p, .section-card p, .body-copy p, .faq-answer, .legal-copy p { color: var(--text-soft); line-height: 1.85; }
.search-shell { margin-top: 18px; }
.search-input {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 24px; border: 1px solid var(--border); background: var(--surface-2); box-shadow: var(--shadow);
}
.search-input input { width: 100%; border: 0; background: transparent; outline: 0; color: var(--text); }
.search-suggestions { margin-top: 14px; overflow: hidden; }
.search-suggestions .item {
  padding: 14px 16px; border-top: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start;
}
.search-suggestions .item:first-child { border-top: 0; }
.search-suggestions .item:hover { background: rgba(14,2,235,0.06); }
.icon-box {
  width: 48px; height: 48px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(14,2,235,0.08); color: var(--brand); font-weight: 800; flex: 0 0 auto;
}

.floating-icons {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.floating-icons span {
  position: absolute; color: rgba(14,2,235,0.18); font-size: 18px;
  animation: float 13s ease-in-out infinite;
}
body.dark .floating-icons span { color: rgba(151,180,255,0.18); }
@keyframes float {
  0%,100% { transform: translate3d(0,0,0) rotate(0); }
  25% { transform: translate3d(16px,-18px,0) rotate(10deg); }
  50% { transform: translate3d(-14px,12px,0) rotate(-8deg); }
  75% { transform: translate3d(8px,-10px,0) rotate(4deg); }
}

.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head h2, .body-copy h2, .legal-copy h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin: 12px 0 14px; letter-spacing: -0.04em; }
.body-copy h3, .legal-copy h3 { margin-top: 26px; font-size: 1.2rem; }
.body-copy, .legal-copy { max-width: 920px; }
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.tool-card {
  padding: 24px; transition: .25s ease; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.tool-card .kicker, .kicker {
  color: var(--brand); text-transform: uppercase; letter-spacing: .22em; font-size: .73rem; font-weight: 800;
}
.tool-card p { min-height: 84px; }
.tool-card .tool-btn { margin-top: 16px; }

.split { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.steps { display: grid; gap: 16px; }
.step-card, .faq-item, .section-card, .list-card {
  padding: 22px; border-radius: var(--radius); background: var(--card-bg); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.step-number {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 16px;
  background: rgba(14,2,235,0.09); color: var(--brand); font-weight: 800; margin-bottom: 16px;
}
.check-list, .arrow-list, .mistake-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li, .arrow-list li, .mistake-list li { display: flex; gap: 12px; color: var(--text-soft); line-height: 1.8; }
.check-list li::before { content: '✔'; color: var(--brand); font-weight: 800; }
.arrow-list li::before { content: '→'; color: var(--brand); font-weight: 800; }
.mistake-list li::before { content: '•'; color: var(--brand); font-weight: 800; }

.page-hero { padding: 32px 0 10px; }
.page-hero-shell { padding: 44px; border-radius: 40px; background: var(--hero-bg); border: 1px solid var(--border); box-shadow: var(--shadow); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-soft); font-size: .95rem; margin-bottom: 18px; }
.breadcrumbs span.sep { opacity: .5; }
.tool-interface {
  margin-top: 30px; display: grid; gap: 20px; grid-template-columns: 1.05fr .95fr;
}
.dropzone {
  border: 2px dashed rgba(14,2,235,0.22); border-radius: 28px; padding: 34px; background: rgba(14,2,235,0.04); text-align: center;
}
.info-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.info-badges span { padding: 10px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); }

.faq-list { display: grid; gap: 14px; }
.faq-question {
  width: 100%; background: transparent; border: 0; color: var(--text); display: flex;
  justify-content: space-between; align-items: center; font-weight: 700; text-align: left;
}
.faq-answer { display: none; padding-top: 14px; }
.faq-item.open .faq-answer { display: block; }

.footer {
  margin-top: 60px; background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid var(--footer-border);
}
.footer-inner { padding: 64px 0 20px; display: grid; gap: 28px; grid-template-columns: 1.1fr .8fr 1.3fr 1fr; }
.footer h3 { color: #fff; font-size: .86rem; letter-spacing: .22em; text-transform: uppercase; }
.footer p { color: #94a3b8; line-height: 1.8; }
.footer-links, .footer-tools { display: grid; gap: 12px; margin-top: 18px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.socials a {
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04);
}
.socials a:hover { transform: translateY(-2px); border-color: rgba(151,180,255,.5); }
.newsletter {
  padding: 18px; border-radius: 26px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); margin-top: 18px;
}
.newsletter input {
  width: 100%; margin-top: 12px; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,23,0.5); color: #fff; padding: 14px 16px;
}
.newsletter button { width: 100%; margin-top: 12px; }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,0.08); color: #94a3b8; }

.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.form-card input, .form-card textarea {
  width: 100%; margin-top: 8px; margin-bottom: 16px; border-radius: 18px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 14px 16px; outline: 0;
}
.form-card textarea { min-height: 160px; resize: vertical; }
.form-success { color: var(--success); font-weight: 700; display: none; }
.form-success.show { display: block; }
.map-box { min-height: 260px; display: grid; place-items: center; text-align: center; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 999px;
  display: none; place-items: center; border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-soft)); box-shadow: var(--shadow-strong);
}
.back-to-top.show { display: grid; }
.center { text-align: center; }
.muted { color: var(--text-soft); }

@media (max-width: 1080px) {
  .hero-grid, .split, .tool-interface, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .card-grid, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
  .desktop-only { display: none; }
  .mobile-only { display: inline-flex; }
  .hero-shell, .page-hero-shell { padding: 32px 22px; }
  .mini-grid { grid-template-columns: 1fr; }
  .card-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .site-header { padding: 12px 14px; }
  .hero { padding-top: 30px; }
  .hero-shell, .page-hero-shell { border-radius: 28px; }
  .tool-card, .step-card, .section-card, .faq-item, .feature-card, .mini-card, .form-card { padding: 18px; }
}
