/* ============================================================
   TIPERO SHELL — unified shared design tokens + header/footer/buttons
   Loaded by every sub-page (pricing, tools, guides, vs, etc.)
   so visitors get the same look across the whole site.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root{
  --bg:#080c14;
  --bg2:#0d1220;
  --card:#111827;
  --card2:rgba(255,255,255,0.03);
  --gold:#c9a84c;
  --gold2:#e2c06a;
  --gold-dim:rgba(201,168,76,0.12);
  --gold-glow:rgba(201,168,76,0.18);
  --border:rgba(255,255,255,0.07);
  --border-gold:rgba(201,168,76,0.25);
  --text:#f0f4ff;
  --muted:#8892a4;
  --muted2:#5a6478;
  --green:#4ade80;
  --red:#f87171;
  --blue:#60a5fa;
  --radius:14px;
  --radius-sm:8px;
  --radius-lg:22px;
}

/* ── Base ───────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body.tipero-shell{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
body.tipero-shell a{color:inherit;text-decoration:none}

/* ── Canvas background (subtle gold + blue glow) ───── */
.shell-bg{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(201,168,76,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(96,165,250,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(8,12,20,0) 0%, var(--bg) 70%);
}
.shell-grid{
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,0.018) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.018) 1px,transparent 1px);
  background-size:80px 80px;
  mask-image:radial-gradient(ellipse 80% 80% at 50% 50%,black 0%,transparent 100%);
}

/* ── Launch bar (sitewide) ─────────────────────────── */
.launch-bar{
  position:fixed;top:0;left:0;right:0;z-index:200;
  background:linear-gradient(90deg,#1a1408 0%,#2a1f0a 50%,#1a1408 100%);
  border-bottom:1px solid var(--border-gold);
  padding:.55rem 1rem;text-align:center;
  font-size:.82rem;font-weight:600;color:var(--gold2);
  letter-spacing:.02em;
  display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;
}
.launch-bar strong{color:#fff}
.launch-bar a{color:var(--gold);text-decoration:underline;font-weight:700}
.launch-bar .lb-pulse{
  width:7px;height:7px;border-radius:50%;background:var(--green);
  box-shadow:0 0 8px var(--green);
  animation:lb-pulse 2s ease-in-out infinite;display:inline-block;
}
@keyframes lb-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.3)}}
.launch-bar-spacer{height:36px}
@media(max-width:600px){
  .launch-bar{font-size:.74rem;padding:.45rem .6rem}
  .launch-bar-spacer{height:48px}
}

/* ── Site header / nav ─────────────────────────────── */
body.tipero-shell .site-header{
  position:fixed;top:36px;left:0;right:0;z-index:100;
  border-bottom:1px solid transparent;
  transition:all .3s ease;
}
@media(max-width:600px){body.tipero-shell .site-header{top:48px}}
body.tipero-shell .site-header.scrolled{
  background:rgba(8,12,20,0.85);
  backdrop-filter:blur(20px);
  border-bottom-color:var(--border);
}
body.tipero-shell .nav-wrap{
  max-width:1200px;margin:0 auto;padding:0 1.5rem;
  display:flex;align-items:center;gap:2rem;height:68px;
}
body.tipero-shell .brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex-shrink:0}
body.tipero-shell .brand img{height:32px;width:32px;object-fit:contain}
body.tipero-shell .brand-text{
  font-size:1.2rem;font-weight:800;letter-spacing:0.08em;color:var(--gold);text-transform:uppercase;
}
body.tipero-shell .main-nav{display:flex;align-items:center;gap:0.25rem;margin:0 auto}
body.tipero-shell .main-nav a{
  padding:.45rem .9rem;border-radius:8px;text-decoration:none;
  font-size:.875rem;font-weight:500;color:var(--muted);transition:all .2s;
}
body.tipero-shell .main-nav a:hover{color:var(--text);background:rgba(255,255,255,0.05)}
body.tipero-shell .nav-actions{display:flex;align-items:center;gap:.75rem;flex-shrink:0}

/* ── Buttons ───────────────────────────────────────── */
body.tipero-shell .btn{
  display:inline-flex;align-items:center;gap:.4rem;
  padding:.55rem 1.2rem;border-radius:8px;
  font-size:.875rem;font-weight:600;text-decoration:none;
  border:none;cursor:pointer;transition:all .2s;white-space:nowrap;
  font-family:inherit;
}
body.tipero-shell .btn-ghost{color:var(--muted);background:transparent}
body.tipero-shell .btn-ghost:hover{color:var(--text);background:rgba(255,255,255,0.06)}
body.tipero-shell .btn-primary{
  background:linear-gradient(135deg,var(--gold),#a07c2a);
  color:#0a0800;
  box-shadow:0 0 24px rgba(201,168,76,0.25),0 2px 8px rgba(0,0,0,0.3);
}
body.tipero-shell .btn-primary:hover{
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  box-shadow:0 0 36px rgba(201,168,76,0.4),0 4px 16px rgba(0,0,0,0.3);
  transform:translateY(-1px);
}
body.tipero-shell .btn-secondary{background:rgba(255,255,255,0.06);color:var(--text);border:1px solid var(--border)}
body.tipero-shell .btn-secondary:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.15)}
body.tipero-shell .btn-lg{padding:.8rem 1.8rem;font-size:1rem;border-radius:10px}
body.tipero-shell .btn-block{width:100%;justify-content:center}

/* ── Layout helpers ────────────────────────────────── */
body.tipero-shell .container{max-width:1200px;margin:0 auto;padding:0 1.5rem;position:relative;z-index:1}
body.tipero-shell .page-shell{padding-top:108px;position:relative;z-index:1}  /* 36px launch bar + 68px header + 4px breathing room */
@media(max-width:600px){body.tipero-shell .page-shell{padding-top:120px}}

body.tipero-shell .page-tag{
  display:inline-block;
  background:rgba(201,168,76,0.08);border:1px solid var(--border-gold);
  color:var(--gold);font-size:.72rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;
  padding:.4rem .9rem;border-radius:100px;margin-bottom:1rem;
}
body.tipero-shell h1{
  font-size:clamp(2rem,3.4vw,2.8rem);
  font-weight:900;line-height:1.1;letter-spacing:-.025em;margin:0 0 12px;
}
body.tipero-shell h1 .accent{
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
body.tipero-shell h2{font-size:clamp(1.4rem,2.4vw,1.9rem);font-weight:800;letter-spacing:-.02em;margin:0 0 12px}
body.tipero-shell h3{font-size:1.1rem;font-weight:700;margin:0 0 8px}
body.tipero-shell p{color:var(--muted);margin:0 0 12px}

/* ── Cards ─────────────────────────────────────────── */
body.tipero-shell .card{
  background:var(--card2);border:1px solid var(--border);
  border-radius:var(--radius);padding:1.5rem;transition:.2s;
}
body.tipero-shell .card:hover{border-color:rgba(255,255,255,0.12)}
body.tipero-shell .card-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;margin:1.5rem 0;
}

/* ── Footer ────────────────────────────────────────── */
body.tipero-shell .site-footer{
  border-top:1px solid var(--border);
  padding:2.5rem 0;background:var(--bg2);position:relative;z-index:1;margin-top:4rem;
}
body.tipero-shell .footer-inner{
  max-width:1200px;margin:0 auto;padding:0 1.5rem;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;
}
body.tipero-shell .footer-left{display:flex;align-items:center;gap:.75rem}
body.tipero-shell .footer-logo{height:26px;opacity:.7}
body.tipero-shell .footer-copy{font-size:.85rem;color:var(--muted)}
body.tipero-shell .footer-nav{display:flex;gap:1.5rem;flex-wrap:wrap}
body.tipero-shell .footer-nav a{font-size:.82rem;color:var(--muted);text-decoration:none;transition:.2s}
body.tipero-shell .footer-nav a:hover{color:var(--text)}

/* ── Mobile nav toggle ─────────────────────────────── */
body.tipero-shell .menu-toggle{display:none;flex-direction:column;gap:5px;background:transparent;border:none;cursor:pointer;padding:.5rem}
body.tipero-shell .menu-toggle span{display:block;width:22px;height:2px;background:var(--muted);border-radius:2px;transition:.2s}
@media(max-width:900px){
  body.tipero-shell .main-nav,body.tipero-shell .nav-actions{display:none}
  body.tipero-shell .menu-toggle{display:flex;margin-left:auto}
  body.tipero-shell .nav-wrap.open .main-nav,body.tipero-shell .nav-wrap.open .nav-actions{
    display:flex;position:absolute;top:68px;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;padding:1rem;
    background:rgba(8,12,20,0.95);backdrop-filter:blur(20px);border-bottom:1px solid var(--border);
  }
  body.tipero-shell .nav-wrap.open .main-nav a,body.tipero-shell .nav-wrap.open .nav-actions a{
    width:100%;padding:.85rem 1rem;
  }
}
