/* FileCab — shared styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0d12;
  --bg-card:   #10131a;
  --bg-nav:    rgba(10,13,18,0.92);
  --border:    #1e2430;
  --text:      #e8e8e8;
  --text-muted:#888;
  --text-dim:  #555;
  --blue:      #4A7DB5;
  --blue-h:    #5a8ec6;
  --cta:       #E8920A;
  --cta-h:     #d4820a;
  --green:     #4BA84B;
  --orange:    #F0A020;
  --red:       #E04030;
  --white:     #ffffff;
  --radius:    8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-h); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-logo span {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 450;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: #161c28; }
.nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 6px 14px !important;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: var(--blue-h) !important; color: var(--white) !important; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-h); color: var(--white); }
.btn-cta {
  background: var(--blue);
  color: var(--white);
}
.btn-cta:hover { background: var(--blue-h); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: #2a3448; color: var(--white); background: #161c28; }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 11px 0;
}
.btn-ghost:hover { color: var(--text); }

/* ── LAYOUT ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 30px 0; }
.section-sm { padding: 20px 0; }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: #2a3448; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo img { width: 24px; height: 24px; border-radius: 5px; }
.footer-logo span { font-size: 15px; font-weight: 600; color: var(--white); }
.footer-tagline { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bmc { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.footer-bmc:hover { color: var(--white); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.form-label span { color: var(--text-dim); font-weight: 400; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.form-select option { background: #10131a; }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; padding: 6px 0; }
.radio-group.input-error { border: 1px solid #e05555; border-radius: var(--radius); padding: 8px 10px; background: rgba(224,85,85,0.04); }
.radio-opt { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-opt input { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }
.radio-opt span { font-size: 14px; color: var(--text-muted); }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--white); }
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding-bottom 0.25s ease;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.nav-toggle:hover { background: #161c28; }
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 450;
  padding: 10px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-mobile-menu a:hover { color: var(--text); background: #161c28; }
.nav-mobile-menu a.active { color: var(--text); }
.nav-mobile-menu .nav-cta {
  margin-top: 4px;
  background: var(--blue) !important;
  color: var(--white) !important;
  text-align: center;
  font-weight: 500 !important;
}
.nav-mobile-menu .nav-cta:hover { background: var(--blue-h) !important; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 20px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero {
    height: auto;
    min-height: calc(100vh - 56px);
  }
}

/* ── NAV CTA override → blue ── */
.nav-cta {
  background: #4A7DB5 !important;
  color: #ffffff !important;
}
.nav-cta:hover { background: #5a8ec6 !important; color: #ffffff !important; }

/* ── HERO ── */
.hero {
  height: calc(100vh - 56px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 65%;
  height: 120%;
  background: radial-gradient(ellipse at 60% 40%, rgba(74,125,181,0.18) 0%, rgba(74,125,181,0.07) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero.fullscreen {
  height: calc(100vh - 56px);
}
.hero-inner {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.hero-headline {
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 760;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 20px;
  text-wrap: pretty;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.btn-cta {
  background: #4A7DB5;
  color: #ffffff;
}
.btn-cta:hover { background: #5a8ec6; color: #ffffff; }

.hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── HERO SCREENSHOT STACK ── */
.hero-inner { position: relative; z-index: 1; }
.hero-screenshot-stack {
  position: relative;
  perspective: 900px;
}
.hero-screenshot-stack img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.hero-screenshot-back2 {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  transform: rotateY(-12deg) rotateX(4deg) translateY(130px) scale(0.92);
  animation: screenInBack2 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0s;
  z-index: 1;
}
.hero-screenshot-back {
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  transform: rotateY(-12deg) rotateX(4deg) translateY(48px) scale(0.96);
  animation: screenInBack 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.08s;
  z-index: 2;
}
.hero-screenshot-front {
  position: relative;
  margin-top: -30px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform 0.4s ease;
  animation: screenInFront 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.15s;
  z-index: 3;
}
.hero-screenshot-stack:hover .hero-screenshot-front {
  transform: rotateY(-6deg) rotateX(2deg);
}
.hero-screenshot-stack:hover .hero-screenshot-back {
  transform: rotateY(-6deg) rotateX(2deg) translateY(48px) scale(0.96);
}
.hero-screenshot-stack:hover .hero-screenshot-back2 {
  transform: rotateY(-6deg) rotateX(2deg) translateY(130px) scale(0.92);
}
@keyframes screenInFront {
  from { opacity: 0; transform: rotateY(-16deg) rotateX(6deg) translateY(20px); }
  to   { opacity: 1; transform: rotateY(-12deg) rotateX(4deg) translateY(0); }
}
@keyframes screenInBack {
  from { opacity: 0; transform: rotateY(-16deg) rotateX(6deg) translateY(68px) scale(0.96); }
  to   { opacity: 1; transform: rotateY(-12deg) rotateX(4deg) translateY(48px) scale(0.96); }
}
@keyframes screenInBack2 {
  from { opacity: 0; transform: rotateY(-16deg) rotateX(6deg) translateY(150px) scale(0.92); }
  to   { opacity: 1; transform: rotateY(-12deg) rotateX(4deg) translateY(130px) scale(0.92); }
}

/* ── APP WINDOW MOCKUP ── */
.app-window {
  background: #0e1118;
  border: 1px solid #1e2430;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  animation: windowIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.1s;
}
@keyframes windowIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.app-titlebar {
  background: #141720;
  border-bottom: 1px solid #1e2430;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-traffic {
  display: flex;
  gap: 6px;
}
.app-traffic span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }
.app-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-left: 4px;
  flex: 1;
  text-align: center;
}
.app-toolbar-btn {
  font-size: 11px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 300px;
}
.app-sidebar {
  background: #0b0e14;
  border-right: 1px solid #1e2430;
  padding: 12px 0;
}
.app-sidebar-item {
  padding: 7px 14px;
  font-size: 12px;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}
.app-sidebar-item.active {
  background: #161c28;
  color: #ccd6f6;
}
.app-sidebar-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2a3348;
}
.app-sidebar-item.active .app-sidebar-dot { background: var(--blue); }
.app-sidebar-section {
  padding: 16px 14px 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a3348;
}
.app-content {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.app-content-header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid #1e2430;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-content-title {
  font-size: 12px;
  font-weight: 600;
  color: #aab4cc;
}
.app-content-meta {
  font-size: 11px;
  color: #3a4560;
}
.app-file-list { flex: 1; }
.app-file-row {
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #161c28;
  animation: rowIn 0.3s ease both;
}
.app-file-row:nth-child(1) { animation-delay: 0.3s; }
.app-file-row:nth-child(2) { animation-delay: 0.45s; }
.app-file-row:nth-child(3) { animation-delay: 0.6s; }
.app-file-row:nth-child(4) { animation-delay: 0.75s; }
.app-file-row:nth-child(5) { animation-delay: 0.9s; }
.app-file-row:nth-child(6) { animation-delay: 1.05s; }
@keyframes rowIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.app-file-row:hover { background: #161c28; }
.app-row-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-row-name { font-size: 11.5px; color: #aab4cc; }
.app-row-dest { font-size: 11px; color: #3a4560; white-space: nowrap; }
.app-footer {
  padding: 10px 16px;
  border-top: 1px solid #1e2430;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-footer-note { font-size: 11px; color: #3a4560; }
.app-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  border: 1px solid #1e2430;
  background: #161c28;
  color: #7a8aaa;
  cursor: default;
}
.app-btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ── TRUST STRIP ── */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.trust-item {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  white-space: nowrap;
}
.trust-item + .trust-item {
  border-left: 1px solid var(--border);
}
.trust-item svg {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .trust-item { justify-content: flex-start; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--border); width: 100%; }
}

/* ── APP SHOWCASE (rules editor) ── */
.showcase {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.showcase-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 72px;
  align-items: center;
}
.showcase-visual {
  position: relative;
}

/* Rules editor mockup */
.rules-window {
  background: #0e1118;
  border: 1px solid #1e2430;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
}
.rules-titlebar {
  background: #141720;
  border-bottom: 1px solid #1e2430;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.rules-title { font-size: 12px; font-weight: 600; color: #4a5568; text-align: center; flex: 1; }
.rules-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.rule-card {
  background: #161c28;
  border: 1px solid #1e2430;
  border-radius: 7px;
  overflow: hidden;
}
.rule-card-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #1e2430;
}
.rule-card-stripe {
  width: 3px;
  height: 32px;
  border-radius: 2px;
  flex-shrink: 0;
}
.rule-card-name { font-size: 13px; font-weight: 600; color: #ccd6f6; }
.rule-card-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid #1e2430;
  color: #4a5568;
}
.rule-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.rule-condition {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.rule-cond-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a4560;
  width: 48px;
  flex-shrink: 0;
}
.rule-cond-pill {
  background: #1e2430;
  border: 1px solid #2a3448;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  color: #7a8aaa;
  font-family: "SF Mono", "Fira Mono", monospace;
}
.rule-cond-op { font-size: 11px; color: #3a4560; }
.rule-action {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #1e2430;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule-action-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a4560;
  width: 48px;
  flex-shrink: 0;
}
.rule-action-dest {
  font-size: 11px;
  color: #aab4cc;
  font-family: "SF Mono", "Fira Mono", monospace;
  background: #1e2430;
  border: 1px solid #2a3448;
  border-radius: 4px;
  padding: 3px 8px;
}
.rule-card-compact .rule-card-body { padding: 10px 14px; }
.rule-card-compact .rule-condition { opacity: 0.6; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.feat-card {
  background: var(--bg-card);
  padding: 28px 24px;
  position: relative;
  transition: background 0.2s;
}
.feat-card:hover { background: #161c28; }
.feat-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.feat-stripe-blue  { background: var(--blue); }
.feat-stripe-green { background: var(--green); }
.feat-stripe-orange { background: var(--orange); }
.feat-stripe-red   { background: var(--red); }
.feat-icon {
  display: block;
  margin-bottom: 12px;
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}
.feat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.feat-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 7px;
  letter-spacing: -0.1px;
}
.feat-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.how-step {
  padding: 0 24px 0 0;
  position: relative;
}
.how-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 0;
  width: calc(100% - 40px);
  height: 1px;
  background: var(--border);
  left: 44px;
}
.how-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
  background: var(--bg-card);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.how-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.how-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.how-step-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0.02em;
}

/* ── DOWNLOAD ── */
.download-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.platform-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.platform-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.platform-card:hover { border-color: var(--green); background: rgba(75,168,75,0.08); }
.platform-os-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: #161c28;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.platform-os-icon-windows {
  font-size: 18px;
  color: #888;
}
.platform-info { flex: 1; }
.platform-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.platform-arch {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}
.platform-dl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}
.dl-meta {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}
.dl-meta a { color: var(--text-muted); }
.dl-meta a:hover { color: var(--text); }
.dl-meta-version { color: var(--text-muted); }
.download-coffee {
  padding: 20px 0 0 0;
}
.download-coffee-text {
  padding: 0 0 10px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.btn-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid #5a4010;
  background: rgba(232,146,10,0.08);
  color: var(--cta);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-coffee:hover {
  background: rgba(232,146,10,0.18);
  border-color: var(--cta);
  color: var(--cta-h);
}

/* ── SHOWCASE COPY ── */
.showcase-subtitle-spaced { margin-bottom: 15px; }
.showcase-rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.showcase-rule-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0.8;
  flex-shrink: 0;
  margin-top: 2px;
}
.showcase-rule-dot-blue   { background: var(--blue); }
.showcase-rule-dot-green  { background: var(--green); }
.showcase-rule-dot-orange { background: var(--orange); }
.showcase-rule-dot-red    { background: var(--red); }
.showcase-rules-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 0 60px rgba(74,125,181,0.25), 0 24px 48px rgba(0,0,0,0.5);
}

/* ── DOWNLOAD SECTION SUBTITLE ── */
.section-subtitle-spaced { margin-bottom: 20px; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .showcase-inner { grid-template-columns: 1fr; }
  .showcase-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-step::after { display: none; }
  .download-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 30px 0 30px;
  border-bottom: 1px solid var(--border);
}

/* ── FAQ PAGE ── */
.faq-section { margin-bottom: 56px; }
.faq-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0;
  padding: 32px 0 0;
}
.faq-list { margin-top: 0; }
.faq-content { max-width: 720px; margin: 0 auto; }
.faq-group { margin-bottom: 20px; }
code {
  font-family: "SF Mono", "Fira Mono", "Consolas", monospace;
  font-size: 12px;
  background: #1e2430;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text-muted);
}

/* ── PRIVACY PAGE ── */
.policy-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 72px;
  align-items: flex-start;
  padding: 72px 0 96px;
}
.policy-body h2 {
  font-size: 17px;
  font-weight: 650;
  color: var(--white);
  letter-spacing: -0.2px;
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.policy-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.policy-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.policy-body p:last-child { margin-bottom: 0; }
.policy-body strong { color: var(--text); font-weight: 550; }
.policy-body a { color: var(--blue); }
.policy-body a:hover { color: var(--blue-h); }
.policy-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.policy-body ul li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.policy-body ul li::before {
  content: "";
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 8px;
  flex-shrink: 0;
}
.policy-toc {
  position: sticky;
  top: 80px;
}
.toc-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.toc-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-links a {
  font-size: 13px;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: block;
}
.toc-links a:last-child { border-bottom: none; }
.toc-links a:hover { color: var(--text); }
.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 36px;
}
.policy-updated::before {
  content: "";
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.highlight-box {
  background: #0d1a0f;
  border: 1px solid #1a3020;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}
.highlight-box p {
  margin: 0;
  font-size: 14px;
  color: #6ab87a;
  line-height: 1.65;
}
.highlight-box strong { color: #8fd4a0; }
.policy-body code {
  font-family: monospace;
  font-size: 12px;
  background: #1e1e1e;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #2a2a2a;
  color: #888;
}

@media (max-width: 768px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { display: none; }
}

/* ── SUPPORT PAGE ── */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 56px;
}
.support-card {
  background: var(--bg-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.support-card-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.support-card-title {
  font-size: 18px;
  font-weight: 650;
  color: var(--white);
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.support-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
  flex: 1;
}
.support-card .btn { align-self: flex-start; }
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon svg { display: block; }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.contact-item strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.contact-item a { color: var(--blue); }
.contact-item a:hover { color: var(--blue-h); }
.notice {
  margin-top: 48px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}
.notice strong { color: var(--text-muted); }

@media (max-width: 768px) {
  .support-grid { grid-template-columns: 1fr; }
}

/* ── BUG REPORT PAGE ── */
.report-layout {
  display: grid;
  grid-template-columns: 680px 1fr;
  gap: 64px;
  align-items: flex-start;
  padding: 80px 0;
}
.form-section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0px 0 20px;
}
.form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.form-section-title span {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--text-dim);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit-row {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.form-note a { color: var(--text-muted); }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #e05555;
  line-height: 1.4;
}
.input-error {
  border-color: #e05555 !important;
  background: rgba(224, 85, 85, 0.04);
}
.input-error:focus {
  box-shadow: 0 0 0 3px rgba(224, 85, 85, 0.18) !important;
}
.form-error-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid rgba(224, 85, 85, 0.3);
  color: #e05555;
  font-size: 13px;
  line-height: 1.5;
}
.report-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sidebar-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.sidebar-card-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sidebar-card-body a { color: var(--blue); }
.sidebar-card-body a:hover { color: var(--blue-h); }
.sidebar-tip {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-tip:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-tip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 6px;
}
.success-state {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
}
.success-state.visible { display: flex; }
.success-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--white);
}
.success-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 480px;
}
.form-textarea.tall { min-height: 120px; }
.form-textarea.medium { min-height: 100px; }
.success-state .btn { margin-top: 8px; }

@media (max-width: 960px) {
  .report-layout { grid-template-columns: 1fr; gap: 40px; }
  .report-sidebar { position: static; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
