/* ============================================================
   Pistolo Copyright & Policy Core — styles.css
   Semi-dark corporate / tech-dashboard aesthetic
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:       #141618;
  --bg-surface:    #1c1f23;
  --bg-card:       #22262c;
  --bg-card-hover: #272c33;
  --border:        #2e343c;
  --accent:        #f59e0b;
  --accent-light:  #fbbf24;
  --accent-dim:    rgba(245,158,11,.12);
  --text-primary:  #e8eaed;
  --text-secondary:#9aa3af;
  --text-muted:    #5c6470;
  --text-link:     #f59e0b;
  --radius:        6px;
  --radius-lg:     10px;
  --shadow:        0 2px 12px rgba(0,0,0,.45);
  --shadow-card:   0 4px 20px rgba(0,0,0,.55);
  --font-sans:     'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:     'Courier New', Courier, monospace;
  --transition:    .2s ease;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--text-link); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .8; }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--text-primary);
}

p { color: var(--text-secondary); }

/* --- Layout helpers --------------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--alt { background-color: var(--bg-surface); }

/* --- Top Info Strip --------------------------------------- */
.top-strip {
  background-color: var(--accent);
  color: #0d0e0f;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 24px;
}

/* --- Navigation ------------------------------------------- */
.nav {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav__brand-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__brand-icon svg { width: 16px; height: 16px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}

.nav__links a.active { color: var(--accent); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
}

/* --- Hero ------------------------------------------------- */
.hero {
  background-color: var(--bg-base);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero__title span { color: var(--accent); }

.hero__desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__note {
  font-size: 12.5px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

/* Dashboard panel (right side of hero) */
.hero__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.hero__panel-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.panel-item:last-child { border-bottom: none; }

.panel-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 6px rgba(245,158,11,.5);
}

.panel-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.panel-item__sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  letter-spacing: .01em;
}

.btn--primary {
  background: var(--accent);
  color: #0d0e0f;
}
.btn--primary:hover { background: var(--accent-light); opacity: 1; }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent-dim); opacity: 1; }

.btn--ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--bg-card-hover); opacity: 1; }

/* --- Section headers -------------------------------------- */
.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 600px;
}

.section-header--center .section-desc { margin: 0 auto; }

/* --- Cards ------------------------------------------------ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--accent-dim), var(--shadow-card);
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card__icon svg { width: 22px; height: 22px; color: var(--accent); }

.card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 16px;
}

/* --- Reference Banner ------------------------------------- */
.ref-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ref-banner__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ref-banner__icon svg { width: 20px; height: 20px; color: var(--accent); }

.ref-banner__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ref-banner__text {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* --- Workflow Steps --------------------------------------- */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  box-shadow: 0 0 12px rgba(245,158,11,.2);
}

.step__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step__desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* --- Content pages (policy, copyright, etc.) -------------- */
.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}

.page-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-hero__title {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 14px;
}

.page-hero__desc {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 640px;
}

.page-hero__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
}

/* Content body */
.content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-nav__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar-nav__list {
  list-style: none;
}

.sidebar-nav__list li + li { margin-top: 2px; }

.sidebar-nav__list a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 10px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.sidebar-nav__list a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.content-body h2 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}

.content-body h3 {
  font-size: 15.5px;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.content-body p {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.content-body li {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.content-section {
  margin-bottom: 52px;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.callout strong { color: var(--text-primary); }

/* --- Notice Form ------------------------------------------ */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  max-width: 680px;
}

.form-group { margin-bottom: 22px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.form-label span { color: var(--accent); }

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-note {
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Contact --------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-item__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon svg { width: 18px; height: 18px; color: var(--accent); }

.contact-item__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.contact-item__value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* --- Footer ---------------------------------------------- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer__brand-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer__ext-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 600;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__col-links {
  list-style: none;
}

.footer__col-links li + li { margin-top: 8px; }

.footer__col-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col-links a:hover { color: var(--accent); opacity: 1; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer__bottom-links a:hover { color: var(--accent); opacity: 1; }

/* --- Utilities -------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 20px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,.25);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { display: none; }
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    z-index: 99;
  }
  .nav__toggle { display: flex; }
  .nav { position: relative; }
  .workflow-steps::before { display: none; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
}
