/* Alion Tech Studio — shared base stylesheet (design tokens + chrome + common components).
   New tools should link this, then add a small tool-specific stylesheet. */
:root {
  --bg: #0f1222; --bg-soft: #161a30; --card: #1b2038; --card-2: #20264a; --line: #2a3157;
  --text: #eef1ff; --muted: #a3abce; --muted-2: #79829f; --accent: #6c8bff; --accent-2: #5cd6c0;
  --accent-grad: linear-gradient(135deg, #6c8bff 0%, #8a7bff 50%, #5cd6c0 100%);
  --good: #44d39b; --danger: #ff6b8a;
  --radius: 16px; --radius-sm: 11px; --shadow: 0 18px 50px -20px rgba(0,0,0,.65); --maxw: 1080px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(108,139,255,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(92,214,192,.12), transparent 55%), var(--bg);
  color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px);
  background: rgba(15,18,34,.72); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }
.brand-sub { color: var(--muted-2); font-weight: 500; font-size: .82rem;
  border-left: 1px solid var(--line); padding-left: 10px; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 60px 0 18px; text-align: center; }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-2); background: rgba(92,214,192,.1);
  border: 1px solid rgba(92,214,192,.25); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.08; margin: 20px 0 14px; font-weight: 800; letter-spacing: -.03em; }
.hero p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
.hero p strong { color: var(--text); }

/* Ads */
.ad-wrap { margin: 26px auto; }
.ad-slot { min-height: 90px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--muted-2); font-size: .78rem; }
.ad-slot:empty::after { content: "Advertisement"; letter-spacing: .1em; text-transform: uppercase; }

/* Buttons */
.btn { font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; padding: 11px 18px;
  border-radius: var(--radius-sm); border: 1px solid transparent; transition: transform .12s, filter .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent-grad); color: #0b0e1c; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--muted-2); }

/* Tool card + tabs */
.tool { padding: 14px 0 24px; }
.tool-card { background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab { font-family: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
  padding: 9px 16px; border-radius: 999px; transition: all .15s; }
.tab:hover { color: var(--text); border-color: var(--muted-2); }
.tab.active { background: var(--accent-grad); color: #0b0e1c; border-color: transparent; }

/* Dropzone */
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  cursor: pointer; transition: border-color .18s, background .18s; background: rgba(255,255,255,.012); }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: rgba(108,139,255,.06); outline: none; }
.dropzone.dragover { border-color: var(--accent-2); background: rgba(92,214,192,.09); }
.dz-icon { color: var(--accent); display: flex; justify-content: center; margin-bottom: 10px; }
.dz-title { font-size: 1.12rem; font-weight: 600; margin: 0 0 6px; }
.dz-link { color: var(--accent); text-decoration: underline; }
.dz-hint { color: var(--muted-2); font-size: .88rem; margin: 0; }

/* Fields + inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--muted); }
.field input[type=text], .field input[type=number], .field input[type=email], .field input[type=tel],
.field textarea, .field select {
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.pill { background: var(--card-2); border: 1px solid var(--line); color: var(--accent-2);
  font-size: .72rem; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { -webkit-appearance: none; appearance: none; width: 46px; height: 40px;
  border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-row input[type=color]::-webkit-color-swatch { border: none; border-radius: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px;
  background: var(--card-2); outline: none; cursor: pointer; width: 100%; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); border: 3px solid #fff2; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff2; }

.privacy-note { text-align: center; color: var(--muted-2); font-size: .9rem; margin-top: 18px; }
.status { margin-top: 12px; font-size: .9rem; color: var(--muted); min-height: 18px; }
.status.error { color: var(--danger); }
.status.ok { color: var(--good); }

/* Content grid */
.content { padding: 40px 0 10px; }
.content h2 { text-align: center; font-size: clamp(1.5rem,3.4vw,2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 28px; }
.use-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.use { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.use .ic { font-size: 1.5rem; margin-bottom: 8px; }
.use h3 { margin: 0 0 6px; font-size: 1.04rem; }
.use p { margin: 0; color: var(--muted); font-size: .92rem; }

/* FAQ */
.faq { padding: 36px 0 64px; }
.faq h2 { text-align: center; font-size: clamp(1.5rem,3.4vw,2.1rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 28px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 18px; margin: 0 auto 12px; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 1.3rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 26px; margin-top: 18px; background: rgba(0,0,0,.18); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--text); }
.footer-inner small { color: var(--muted-2); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 820px) { .use-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .nav a { display: none; } }
