/* =========================================================
   AioGalaxy Tools — Styles
   File: /tools/assets/css/style.css
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-panel: #F5F6FA;
  --bg-panel-hover: #ECEEF5;
  --border: rgba(11, 13, 26, 0.09);
  --text-primary: #12141F;
  --text-muted: #5A5F79;
  --accent: #DB7F1F;
  --accent-teal: #0FA787;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff;
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}
p { color: var(--text-muted); margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  display: inline-flex; align-items: center;
}
.logo span { color: var(--accent); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.site-nav a:hover { color: var(--text-primary); }
.site-nav a:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-teal); outline-offset: 3px;
}

/* ===== HERO ===== */
.hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(219,127,31,0.08), transparent 60%),
    radial-gradient(500px 260px at 90% 20%, rgba(15,167,135,0.06), transparent 60%);
}
.hero-inner { display: grid; gap: 24px; }
.hero-content { max-width: 640px; }
.hero h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.02em; margin-bottom: 12px; }
.hero-sub { font-size: 16.5px; max-width: 560px; margin-bottom: 20px; }
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { background: #c46f1a; transform: translateY(-2px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ===== TOOLS GRID ===== */
.tools { padding: 24px 0 64px; }
.tools h2 { font-size: clamp(24px, 3.5vw, 30px); margin-bottom: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

.tool-card {
  display: block; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px;
  box-shadow: 0 1px 2px rgba(18,20,31,0.04);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card:hover {
  background: var(--bg-panel-hover); border-color: rgba(219,127,31,0.35);
  box-shadow: 0 10px 24px rgba(18,20,31,0.08); transform: translateY(-4px);
}
.tool-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tool-path { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.tool-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--accent-teal);
}
.tool-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); animation: pulse 2s infinite; }
.tool-status--soon { color: var(--accent); }
.tool-status--soon i { background: var(--accent); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,167,135,.5); }
  70% { box-shadow: 0 0 0 6px rgba(15,167,135,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,167,135,0); }
}
.tool-card h3 { font-size: 17px; margin-bottom: 6px; }
.tool-card p { font-size: 13.5px; margin-bottom: 0; }
.tool-card--soon { border-style: dashed; opacity: .75; }

/* ===== ABOUT / TRUST ===== */
.about { padding: 64px 0; border-top: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.about-col { max-width: 460px; }
.trust-card { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.trust-card p { font-size: 14px; margin-bottom: 0; }

/* ===== UPLOAD BOX (tool pages) ===== */
.upload-box {
  background: var(--bg-panel); border: 2px dashed var(--border);
  border-radius: 14px; padding: 40px; text-align: center; margin: 24px 0;
}
.upload-box.dragover { border-color: var(--accent); background: var(--bg-panel-hover); }
.file-notice {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  background: rgba(219,127,31,0.08); border: 1px solid rgba(219,127,31,0.25);
  border-radius: 8px; padding: 10px 14px; margin: 16px 0; display: inline-block;
}

@media (max-width: 640px) {
  .site-nav { gap: 18px; }
  .hero { padding: 40px 0 36px; }
  .tools-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-col { max-width: 100%; }
}