/* =========================================================
   RankPulse — styled to the Pixels Corp design system
   Black · Gold · Ivory  |  Playfair Display + DM Sans
   ========================================================= */

:root {
  /* Pixels Corp tokens (same values as pixelscorp.com) */
  --black:      #0A0A0A;
  --black-soft: #111111;
  --surface:    #161616;
  --surface-2:  #1E1E1E;
  --gold:       #C9A84C;
  --gold-light: #E2C47A;
  --gold-dim:   #8A6E2F;
  --ivory:      #F5F0E8;
  --ivory-dim:  #BFB99F;
  --white:      #FFFFFF;
  --text-muted: #9A9A9A;
  --border:     rgba(201,168,76,0.15);
  --border-mid: rgba(201,168,76,0.35);
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius:     6px;
  --radius-lg:  12px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --trans:      0.3s var(--ease);
  --nav-h:      80px;

  /* App semantics mapped onto the brand */
  --bg: var(--black);
  --card: var(--surface);
  --line: rgba(255,255,255,0.07);
  --text: var(--ivory-dim);
  --muted: var(--text-muted);
  --brand: var(--gold);
  --accent: var(--gold-light);
  --green: #3DBE7A;
  --green-soft: rgba(61,190,122,0.13);
  --red: #E5566A;
  --red-soft: rgba(229,86,106,0.13);
  --amber-soft: rgba(201,168,76,0.14);
  /* ranking distribution */
  --d1: #3DBE7A; --d2: #247A4E; --d3: #C9A84C; --d4: #4A4A4A; --d5: #262626;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.6);
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.7; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ivory); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
p { margin: 0 0 1em; }
strong, b { color: var(--ivory); font-weight: 600; }
code { font-family: var(--mono); font-size: .85em; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 4px; color: var(--gold-light); word-break: break-all; }
ol, ul { padding-left: 1.2em; }
::selection { background: var(--gold); color: var(--black); }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 28px }
.mb-0 { margin-bottom: 0 } .mb-2 { margin-bottom: 16px }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.gold { color: var(--gold); }
.gold-line { display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 22px; }
.gold-line.center-line { margin-left: auto; margin-right: auto; }

/* ---------- Buttons (Pixels Corp style) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: var(--radius); border: 1px solid transparent; font: 500 .82rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none !important; transition: var(--trans); white-space: nowrap; line-height: 1.2; }
.btn svg { width: 16px; height: 16px; }
.btn-primary, .btn-gold, .btn-accent { background: var(--gold); color: var(--black) !important; font-weight: 600; }
.btn-primary:hover, .btn-gold:hover, .btn-accent:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,.3); }
.btn-ghost, .btn-outline { background: transparent; color: var(--gold) !important; border-color: var(--border-mid); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }
.btn-light { background: transparent; color: var(--ivory) !important; border-color: rgba(245,240,232,.25); }
.btn-danger { background: var(--red); color: #fff !important; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-sm { padding: 8px 14px; font-size: .72rem; }
.btn-lg { padding: 16px 32px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.link-btn { background: none; border: 0; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { color: var(--gold-light); }
.link-danger, .btn.link-danger { color: var(--red) !important; }

/* ---------- Forms ---------- */
.form label, label.field { display: block; font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], input[type=date], input:not([type]), select, textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: var(--black-soft); font: 400 .95rem var(--font-body); color: var(--ivory); letter-spacing: normal; text-transform: none; transition: border var(--trans), box-shadow var(--trans);
}
input::placeholder, textarea::placeholder { color: #666; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23C9A84C' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px; padding-right: 34px; }
select option { background: var(--surface); color: var(--ivory); }
input[type=date] { color-scheme: dark; }
input:disabled { opacity: .6; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.checkbox { display: flex !important; align-items: center; gap: 9px; font-weight: 400 !important; text-transform: none !important; letter-spacing: normal !important; font-size: .92rem !important; }
.checkbox input, input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help { font-weight: 400; color: var(--muted); font-size: .8rem; display: block; margin-top: 5px; text-transform: none; letter-spacing: normal; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .92rem; border: 1px solid; }
.alert-success { background: var(--green-soft); color: #7fe0a9; border-color: rgba(61,190,122,.3); }
.alert-error { background: var(--red-soft); color: #f29aa6; border-color: rgba(229,86,106,.3); }
.alert-info { background: rgba(201,168,76,.08); color: var(--gold-light); border-color: var(--border-mid); }
.alert-warn { background: rgba(201,168,76,.1); color: var(--gold-light); border-color: var(--border-mid); }
.alert a { color: inherit; text-decoration: underline; }

/* =========================================================
   LOGO (same mark as pixelscorp.com)
   ========================================================= */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-mark { width: 36px; height: 36px; background: var(--gold); border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--ivory); letter-spacing: .02em; }
.logo-sub { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

/* =========================================================
   PUBLIC HEADER
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 1000; height: var(--nav-h); background: rgba(10,10,10,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; height: var(--nav-h); gap: 24px; }
.main-nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.main-nav a { display: flex; align-items: center; padding: 8px 13px; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-dim); border-radius: var(--radius); }
.main-nav a:hover, .main-nav a.active { color: var(--gold); background: rgba(201,168,76,.07); }
.header-cta { display: flex; gap: 8px; align-items: center; margin-left: 8px; }
.header-cta .login-link { color: var(--ivory-dim); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 8px 10px; }
.header-cta .login-link:hover { color: var(--gold); }
.nav-cta { padding: 10px 20px; background: var(--gold); color: var(--black) !important; border-radius: var(--radius); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: var(--trans); }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,.35); }
.hamburger { display: none; margin-left: auto; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: transparent; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--ivory); transition: var(--trans); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
.mobile-menu { display: none; }
.mobile-menu.open { display: block; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--black-soft); z-index: 999; overflow-y: auto; padding: 20px 24px; border-top: 1px solid var(--border); }
.mobile-menu a { display: block; padding: 15px 0; font-size: 1rem; font-weight: 500; color: var(--ivory-dim); border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .btn { margin-top: 20px; border: 0; padding: 14px; }

/* =========================================================
   HERO & SECTIONS
   ========================================================= */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; background: radial-gradient(900px 480px at 85% -10%, rgba(201,168,76,.13), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(201,168,76,.06), transparent 60%), var(--black); border-bottom: 1px solid var(--border); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,168,76,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(201,168,76,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.hero .lead { font-size: 1.1rem; color: var(--ivory-dim); max-width: 560px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,.6) } 70% { box-shadow: 0 0 0 9px rgba(201,168,76,0) } 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0) } }
.hero-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 22px; max-width: 560px; }
.hero-form input { flex: 1; min-width: 210px; margin: 0; padding: 15px 16px; background: var(--surface); border-color: var(--border-mid); }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.hero-points span::before { content: '✦ '; color: var(--gold); }

.mock { background: var(--surface); border: 1px solid var(--border-mid); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--black-soft); align-items: center; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c2c2c; display: block; }
.mock-bar span { margin-left: 10px; font: 500 .74rem var(--mono); color: var(--muted); }
.mock-body { padding: 18px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-stat { background: var(--black-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.mock-stat b { display: block; font: 700 1.4rem var(--font-body); color: var(--ivory); }
.mock-stat small { color: var(--muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.mock table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mock td { padding: 8px 6px; border-top: 1px solid var(--line); }
.mock td:first-child { color: var(--ivory); }

.section { padding: 100px 0; }
.section-alt { background: var(--black-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head p { color: var(--ivory-dim); font-size: 1.04rem; }
.section-head .gold-line { margin: 0 auto 20px; }
.kicker { display: block; font: 600 .74rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

.logos-strip { padding: 24px 0; background: var(--black-soft); border-bottom: 1px solid var(--border); }
.logos-strip .container { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; }
.logos-strip b { font: italic 600 1.1rem var(--font-head); color: var(--ivory-dim); letter-spacing: .01em; text-transform: none; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--black); padding: 34px 30px; transition: background var(--trans); }
.feature:hover { background: var(--surface); }
.feature .ico { width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; border: 1px solid var(--border-mid); color: var(--gold); margin-bottom: 20px; background: rgba(201,168,76,.05); }
.feature .ico svg { width: 21px; height: 21px; }
.feature p { color: var(--muted); margin: 0; font-size: .93rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 22px 0; }
.check-list li { padding: 7px 0 7px 30px; position: relative; color: var(--ivory-dim); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--gold); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23C9A84C'%3E%3Cpath d='M8.2 13.6 4.6 10l-1.2 1.2 4.8 4.8 9-9-1.2-1.2z'/%3E%3C/svg%3E") center/11px no-repeat; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font: italic 700 2.4rem var(--font-head); color: var(--gold); margin-bottom: 10px; line-height: 1; }
.step p { color: var(--muted); margin: 0; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 26px; display: flex; flex-direction: column; position: relative; transition: border var(--trans), transform var(--trans); }
.price-card:hover { border-color: var(--border-mid); transform: translateY(-3px); }
.price-card.featured { border: 1px solid var(--gold); background: linear-gradient(180deg, rgba(201,168,76,.09), var(--surface) 45%); box-shadow: 0 20px 50px rgba(201,168,76,.1); }
.price-card .badge-pop { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--black); font: 700 .66rem var(--font-body); padding: 5px 13px; border-radius: 99px; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.price-card h3 { margin-bottom: 4px; }
.price { font: 700 2.5rem var(--font-head); color: var(--ivory); margin: 14px 0 2px; }
.price small { font: 400 .85rem var(--font-body); color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.price-card li { padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--line); color: var(--ivory-dim); }
.price-card li:last-child { border: 0; }
.price-card li b { color: var(--gold-light); }
.currency-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); padding: 4px; border-radius: var(--radius); margin-bottom: 34px; }
.currency-toggle button { border: 0; background: none; padding: 7px 18px; border-radius: 4px; font: 600 .75rem var(--font-body); letter-spacing: .08em; cursor: pointer; color: var(--muted); }
.currency-toggle button.on { background: var(--gold); color: var(--black); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 22px; margin-bottom: 10px; transition: border var(--trans); }
.faq details[open] { border-color: var(--border-mid); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--ivory); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--gold); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

.cta-band { background: radial-gradient(600px 300px at 90% 0%, rgba(201,168,76,.14), transparent 60%), var(--surface); border: 1px solid var(--border-mid); border-radius: var(--radius-lg); padding: 58px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: var(--ivory-dim); }

.page-hero { padding: 84px 0 76px; text-align: center; background: radial-gradient(900px 320px at 50% -20%, rgba(201,168,76,.14), transparent 70%), var(--black); border-bottom: 1px solid var(--border); }
.page-hero p { max-width: 660px; margin: 0 auto; color: var(--ivory-dim); }
.page-hero .gold-line { margin: 0 auto 20px; }
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose li { margin-bottom: 6px; }

/* =========================================================
   FOOTER (mirrors pixelscorp.com)
   ========================================================= */
.footer-cta-band { background: var(--surface); border-top: 1px solid var(--border-mid); border-bottom: 1px solid var(--border); padding: 70px 0; }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-cta-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.footer-cta-text p { max-width: 540px; color: var(--muted); font-size: .94rem; margin: 0; }
.footer-cta-action { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.footer-main { background: var(--black-soft); padding: 78px 0 46px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-logo { margin-bottom: 20px; }
.footer-brand-desc { font-size: .875rem; color: var(--muted); line-height: 1.75; margin-bottom: 22px; }
.footer-brand-desc strong { color: var(--gold); font-weight: 500; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); transition: var(--trans); }
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.08); }
.footer-col-title { font: 600 .75rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-links a { font-size: .875rem; color: var(--muted); position: relative; transition: color var(--trans), padding-left var(--trans); }
.footer-links a::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0; transition: opacity var(--trans); }
.footer-links a:hover { color: var(--ivory); padding-left: 14px; }
.footer-links a:hover::before { opacity: 1; }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0 0 22px; padding: 0; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--gold); }
.contact-icon { flex-shrink: 0; margin-top: 1px; color: var(--gold); }
.contact-icon svg { width: 15px; height: 15px; }
.footer-bottom { background: var(--black); border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copyright { font-size: .8rem; color: #A0A0A0; margin: 0; }
.footer-copyright a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-copyright a:hover { color: var(--gold-light); text-decoration: none; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: .8rem; color: var(--muted); }
.footer-legal a:hover { color: var(--gold); }

/* =========================================================
   FREE CHECKER
   ========================================================= */
.tool-wrap { margin-top: -44px; position: relative; z-index: 2; }
.tool-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px; border: 1px solid var(--border-mid); }
.tool-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.tool-card textarea { min-height: 222px; font-family: var(--mono); font-size: .86rem; line-height: 1.75; }
.kw-count { font-size: .8rem; color: var(--muted); margin-top: -8px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 20px 0 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light)); transition: width .3s; }
.progress-label { font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px; }
.summary-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: .74rem; padding: 5px 12px; border-radius: 99px; background: var(--black-soft); border: 1px solid var(--border); color: var(--ivory-dim); font-weight: 600; letter-spacing: .04em; }

/* =========================================================
   TABLES / BADGES
   ========================================================= */
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font: 600 .68rem var(--font-body); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); background: var(--black-soft); padding: 13px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th a { color: inherit; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(201,168,76,.03); }
table.data .kw { font-weight: 500; color: var(--ivory); min-width: 190px; }
table.data .kw a { color: var(--ivory); }
table.data .kw a:hover { color: var(--gold); }
table.data .url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
table.data .url a { color: var(--muted); }
table.data .url a:hover { color: var(--gold); }
table.data td.num, table.data th.num { text-align: center; }
.row-checking { opacity: .5; }
.row-flash { animation: rowflash 1.4s ease; }
@keyframes rowflash { 0% { background: rgba(201,168,76,.16) } 100% { background: transparent } }

.pos { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 8px; border-radius: var(--radius); font: 700 .9rem var(--font-body); font-variant-numeric: tabular-nums; }
.pos-top3 { background: var(--gold); color: var(--black); }
.pos-top10 { background: var(--green-soft); color: #6fdca0; border: 1px solid rgba(61,190,122,.3); }
.pos-top30 { background: var(--amber-soft); color: var(--gold-light); border: 1px solid var(--border); }
.pos-low { background: var(--surface-2); color: var(--ivory-dim); border: 1px solid var(--line); }
.pos-none { background: transparent; color: #5c5c5c; border: 1px dashed #333; }
.chg { font: 600 .82rem var(--font-body); white-space: nowrap; }
.chg-up { color: var(--green); } .chg-down { color: var(--red); } .chg-flat { color: #555; } .chg-new { color: var(--gold); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font: 600 .68rem var(--font-body); letter-spacing: .06em; background: var(--surface-2); color: var(--ivory-dim); border: 1px solid var(--line); text-transform: uppercase; }
.badge-green { background: var(--green-soft); color: #6fdca0; border-color: rgba(61,190,122,.3); }
.badge-red { background: var(--red-soft); color: #f29aa6; border-color: rgba(229,86,106,.3); }
.badge-brand { background: rgba(201,168,76,.1); color: var(--gold); border-color: var(--border-mid); }
.tag { display: inline-block; font-size: .68rem; padding: 2px 8px; background: rgba(201,168,76,.09); color: var(--gold); border: 1px solid var(--border); border-radius: 4px; margin-left: 8px; font-weight: 600; letter-spacing: .04em; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--surface-2); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg) } }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); font-size: .86rem; color: var(--ivory-dim); }
.pagination .current { background: var(--gold); color: var(--black); border-color: var(--gold); }
.spark { display: block; }

/* =========================================================
   APP (dashboard)
   ========================================================= */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--black-soft) 256px, var(--black) 256px); }
.sidebar { background: var(--black-soft); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .logo { padding: 2px 8px 24px; }
.side-label { font: 600 .64rem var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dim); padding: 16px 10px 8px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius); color: var(--ivory-dim); font-size: .9rem; margin-bottom: 2px; text-decoration: none !important; border: 1px solid transparent; }
.side-nav a svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.side-nav a:hover { background: rgba(201,168,76,.06); color: var(--gold); }
.side-nav a.active { background: rgba(201,168,76,.1); color: var(--gold); border-color: var(--border); }
.side-nav a .count { margin-left: auto; font-size: .7rem; background: var(--gold); color: var(--black); padding: 1px 7px; border-radius: 99px; font-weight: 700; }
.side-projects a { font-size: .86rem; }
.side-projects .dotc { width: 6px; height: 6px; border-radius: 1px; background: var(--gold); flex: none; transform: rotate(45deg); }
.usage-box { margin-top: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; font-size: .8rem; color: var(--muted); }
.usage-box .bar { height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 6px 0 10px; }
.usage-box .bar > div { height: 100%; background: var(--gold); }
.usage-box b { color: var(--ivory); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: rgba(10,10,10,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 30px; gap: 16px; position: sticky; top: 0; z-index: 20; }
.topbar .title { font: 600 1.05rem var(--font-head); color: var(--ivory); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(201,168,76,.12); border: 1px solid var(--border-mid); color: var(--gold); display: grid; place-items: center; font: 600 .8rem var(--font-body); }
.menu-btn { display: none; background: none; border: 1px solid var(--border-mid); color: var(--gold); border-radius: var(--radius); padding: 6px 10px; cursor: pointer; }
.content { padding: 30px; max-width: 1440px; width: 100%; }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title h1 { font-size: 1.9rem; margin-bottom: 4px; }
.page-title .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-title .muted svg { width: 14px; height: 14px; vertical-align: -2px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.card.danger { border-color: rgba(229,86,106,.35); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; left: 18px; top: 0; width: 26px; height: 2px; background: var(--gold); }
.stat .lbl { font-size: .66rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-top: 4px; }
.stat .val { font: 700 1.75rem var(--font-body); color: var(--ivory); margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: .78rem; }
.stat.green .val { color: var(--green); } .stat.red .val { color: var(--red); } .stat.goldv .val { color: var(--gold); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.project-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: block; color: inherit; transition: border var(--trans), transform var(--trans); text-decoration: none !important; }
.project-card:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; }
.project-card h3 { margin-bottom: 2px; }
.project-card .dom { font-size: .84rem; color: var(--muted); }
.project-card .mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; text-align: center; }
.project-card .mini-stats b { display: block; font: 700 1.2rem var(--font-body); color: var(--ivory); }
.project-card .mini-stats small { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.project-card .meta { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { width: 64px; height: 64px; border-radius: var(--radius-lg); border: 1px solid var(--border-mid); background: rgba(201,168,76,.06); color: var(--gold); display: grid; place-items: center; margin: 0 auto 18px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search], .toolbar select { width: auto; margin: 0; padding: 9px 12px; font-size: .88rem; }
.toolbar select { padding-right: 34px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.bulk-bar { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(201,168,76,.08); border: 1px solid var(--border-mid); border-radius: var(--radius); margin-bottom: 12px; font-size: .88rem; flex-wrap: wrap; }
.bulk-bar.show { display: flex; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 9px 14px; font-weight: 500; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs a.active, .tabs a:hover { color: var(--gold); border-color: var(--gold); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 1100; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border-mid); border-radius: var(--radius-lg); width: 100%; max-width: 560px; padding: 28px; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-box h3 { margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.chart-box { position: relative; height: 330px; }
.dist-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--d5); }
.dist-bar span { display: block; height: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; margin-top: 10px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* ---------- Auth pages ---------- */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; background: radial-gradient(800px 460px at 100% 0%, rgba(201,168,76,.12), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(201,168,76,.06), transparent 60%), var(--black); }
.auth-card { background: var(--surface); border: 1px solid var(--border-mid); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card h3 { margin-top: 18px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.brand-row { margin-bottom: 30px; }
.auth-foot { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--muted); }
.req-list { list-style: none; padding: 0; margin: 0 0 20px; font-size: .9rem; }
.req-list .ok { color: var(--green); } .req-list .bad { color: var(--red); }
.install-next li { margin-bottom: 8px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .container, .split, .tool-grid { grid-template-columns: 1fr; }
  .mock { transform: none; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .cta-band, .footer-cta-inner { flex-direction: column; text-align: center; padding-left: 24px; padding-right: 24px; }
  .footer-cta-action { justify-content: center; }
  .app { grid-template-columns: 1fr; background: var(--black); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 1050; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: block; }
  .content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 80px; }
  .feature-grid, .steps, .pricing-grid, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tool-card { padding: 20px; }
  .auth-card { padding: 28px 22px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
  .topbar .hide-sm { display: none; }
  table.data td, table.data th { padding: 10px; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
