/* =========================================
   QuickPixel Tools — Shared Stylesheet
   Purpose: Global styles for all pages
   Pages: index, about, contact, privacy,
   terms, disclaimer
   ========================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;

  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --accent: #06b6d4;
  --success: #16a34a;
  --warning: #d97706;

  --footer-bg: #0b1220;
  --footer-text: #cbd5e1;
  --footer-muted: #94a3b8;
  --footer-line: rgba(148, 163, 184, 0.16);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, 0.12);

  --font-main: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --content: 780px;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.06), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
}

img,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-2);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

::selection {
  background: rgba(79, 70, 229, 0.16);
}

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #ffffff;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 68px 0;
}

.section-tight {
  padding: 36px 0;
}

.content-center {
  max-width: var(--content);
  margin-inline: auto;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.92rem;
  color: var(--muted-2);
}

.hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Top Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand);
}

.nav-links a.active {
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.34);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--brand);
  border-color: rgba(79, 70, 229, 0.35);
}

.btn-large {
  min-height: 54px;
  padding: 15px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(79, 70, 229, 0.16);
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Hero Sections ---------- */
.hero {
  padding: 84px 0 54px;
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin-inline: auto;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.12rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.94rem;
}

/* ---------- Page Hero for inner pages ---------- */
.page-hero {
  padding: 72px 0 34px;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-meta {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-pad {
  padding: 28px;
}

.card-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card-text {
  margin: 0;
  color: var(--muted);
}

/* ---------- Tools Grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.tool-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(6, 182, 212, 0.05));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 70, 229, 0.24);
  box-shadow: var(--shadow-md);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.22);
}

.tool-card h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 800;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.feature-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Prose / Legal Content ---------- */
.prose {
  max-width: var(--content);
  margin-inline: auto;
  color: #334155;
  font-size: 1.02rem;
}

.prose h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin-top: 1.7rem;
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
}

.prose p {
  margin-bottom: 1.1rem;
}

.prose ul,
.prose ol {
  margin-bottom: 1.2rem;
}

.prose li {
  margin: 0.45rem 0;
}

.prose a {
  font-weight: 700;
}

.prose strong {
  color: var(--text);
}

.legal-box {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.updated-note {
  display: inline-flex;
  padding: 9px 14px;
  margin-bottom: 22px;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.09);
  border: 1px solid rgba(6, 182, 212, 0.18);
  color: #0e7490;
  font-size: 0.9rem;
  font-weight: 800;
}

.callout {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
}

.callout p:last-child {
  margin-bottom: 0;
}

.notice {
  margin: 26px 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-weight: 600;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  max-width: 1000px;
  margin-inline: auto;
}

.contact-form-card,
.contact-info-card {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2,
.contact-info-card h2 {
  font-size: 1.35rem;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.form-hint {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fbfdff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.6;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.45);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.form-footer {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.form-note {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--text);
}

.contact-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.09);
  color: var(--brand);
  font-weight: 900;
}

/* ---------- Premium Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 84px;
  padding-top: 62px;
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 26%),
    var(--footer-bg);
  color: var(--footer-text);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px;
  padding-bottom: 42px;
}

.footer-brand {
  max-width: 340px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer-logo .brand-mark {
  box-shadow: none;
}

.footer-brand p {
  margin: 0;
  color: var(--footer-muted);
}

.footer-title {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--footer-muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-note {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-muted);
  font-size: 0.92rem;
}

.footer-bottom a {
  color: var(--footer-muted);
  font-weight: 700;
}

.footer-bottom a:hover {
  color: #ffffff;
}

.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    padding-top: 64px;
  }

  .page-hero {
    padding-top: 58px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .hero {
    padding-bottom: 40px;
  }

  .hero p {
    font-size: 1.02rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .card-pad,
  .contact-form-card,
  .contact-info-card,
  .legal-box {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}