/*
Theme Name: AlphaChecker SaaS
Theme URI: https://alphachecker.dk
Author: AlphaChecker
Author URI: https://alphachecker.dk
Description: Branded, premium SaaS-style theme for AlphaChecker (marketing + app dashboard) without page builders.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alphachecker-saas
Tags: custom-background, custom-logo, custom-menu, featured-images, responsive-layout
*/

/* =========================
   AlphaChecker Brand System
   ========================= */
:root{
  --bg: #070B14;
  --bg2:#0B1224;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.12);

  --brand1: #7C5CFF;
  --brand2: #2DD4BF;
  --brand3: #FFB020;

  --radius: 18px;
  --radius2: 24px;

  --shadow: 0 22px 80px rgba(0,0,0,.45);
  --shadow2: 0 12px 40px rgba(0,0,0,.30);

  --w: 1180px;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:
    radial-gradient(1100px 650px at 20% -10%, rgba(124,92,255,.24), transparent 60%),
    radial-gradient(900px 520px at 90% 10%, rgba(45,212,191,.16), transparent 55%),
    radial-gradient(900px 520px at 30% 100%, rgba(255,176,32,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; height:auto; }
a{ color: inherit; text-decoration: none; }
a:hover{ opacity:.98; }
::selection{ background: rgba(124,92,255,.35); }

.container{ max-width: var(--w); margin:0 auto; padding: 0 20px; }
.spacer{ height: 14px; }

/* Topbar */
.topbar{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight: 900; letter-spacing:.2px;
}
.brand svg{ display:block; }
.badge{
  font-size: 12px; color: rgba(255,255,255,.75);
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.navlinks{ display:flex; align-items:center; gap:8px; color: rgba(255,255,255,.72); flex-wrap: wrap; justify-content:flex-end;}
.navlinks a{ padding: 9px 10px; border-radius: 12px; transition: background .18s ease, color .18s ease; }
.navlinks a:hover{ background: rgba(255,255,255,.06); color: rgba(255,255,255,.92); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand1), rgba(124,92,255,.65));
  color: white; border: 0;
  font-weight: 750;
  box-shadow: 0 14px 40px rgba(124,92,255,.22);
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover{ transform: translateY(-1px); filter: saturate(1.05); box-shadow: 0 18px 60px rgba(124,92,255,.28); }
.btn:active{ transform: translateY(0); }

.btn.secondary{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  box-shadow: none;
}
.btn.secondary:hover{ background: rgba(255,255,255,.07); }

.btn.ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  box-shadow: none;
}
.btn.small{ padding: 10px 12px; border-radius: 12px; font-weight: 700; }

/* Chips / pill */
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.pill .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  box-shadow: 0 0 0 4px rgba(124,92,255,.16);
}

/* Card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}
.card.pad{ padding: 18px; }
.card.glow{
  position: relative;
  overflow: hidden;
}
.card.glow:before{
  content:"";
  position:absolute; inset:-120px;
  background: radial-gradient(circle at 30% 25%, rgba(124,92,255,.22), transparent 60%),
              radial-gradient(circle at 75% 35%, rgba(45,212,191,.18), transparent 55%);
  pointer-events:none;
  filter: blur(2px);
}

/* Layout */
.hero{ padding: 76px 0 30px; }
.hero-grid{ display:grid; grid-template-columns: 1.18fr .82fr; gap: 18px; }
.h-title{
  font-size: 56px; line-height:1.02; margin: 0 0 14px;
  letter-spacing: -1.0px;
}
.h-sub{
  color: rgba(255,255,255,.76);
  font-size: 18px;
  margin: 0 0 22px;
  max-width: 62ch;
}
.h-actions{ display:flex; gap:12px; flex-wrap: wrap; align-items:center; }

.grid3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.kpi{ padding: 16px; }
.kpi .label{ color: rgba(255,255,255,.70); font-size: 13px; }
.kpi .value{ font-size: 22px; font-weight: 900; margin-top: 6px; letter-spacing:-0.2px; }

.section{ padding: 26px 0 52px; }
.section h2{ margin: 0 0 14px; font-size: 28px; letter-spacing:-0.4px; }
.section p{ margin: 0; color: rgba(255,255,255,.74); }

.hr{ height:1px; background: rgba(255,255,255,.10); margin: 18px 0; }

.feature{
  display:flex; gap:12px; align-items:flex-start;
}
.icon{
  width: 38px; height: 38px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
}
.icon svg{ opacity: .92; }
.feature b{ display:block; margin-bottom:4px; }
.small{ color: rgba(255,255,255,.72); font-size: 14px; }

/* Forms */
.input, input[type="text"], input[type="url"], input[type="email"], input[type="password"], select, textarea{
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
textarea{ min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
  background: rgba(255,255,255,.07);
}

/* Table */
.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.12);
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size: 14px;
}
.table th{
  color: rgba(255,255,255,.70);
  font-weight: 850;
  background: rgba(255,255,255,.05);
}
.table tr:hover td{ background: rgba(255,255,255,.03); }

/* Footer */
.footer{
  padding: 26px 0 50px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.70);
}
.footer a{ color: rgba(255,255,255,.70); }
.footer a:hover{ color: rgba(255,255,255,.92); }

/* Notice */
.notice{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
}

/* App shell */
.app-shell{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  padding: 18px 0 60px;
}
.sidebar{
  position: sticky;
  top: 74px;
  height: calc(100vh - 88px);
  overflow:auto;
  padding: 14px;
}
.sidebar .sec-title{
  font-weight: 900;
  margin: 2px 0 10px;
}
.sidebar a{
  display:flex; align-items:center; gap:10px;
  padding: 10px 10px;
  border-radius: 14px;
  color: rgba(255,255,255,.72);
  border: 1px solid transparent;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.sidebar a:hover{ background: rgba(255,255,255,.06); color: rgba(255,255,255,.92); }
.sidebar a.active{
  background: rgba(124,92,255,.14);
  color: rgba(255,255,255,.92);
  border-color: rgba(124,92,255,.25);
}
.sidebar a svg{ opacity:.92; }

.main{ padding: 14px; }
.h1{ font-size: 28px; font-weight: 950; margin: 0 0 8px; letter-spacing:-0.4px; }
.sub{ color: rgba(255,255,255,.74); margin: 0 0 16px; }

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.price{ padding: 18px; }
.price .plan{ font-weight: 950; font-size: 16px; display:flex; align-items:center; justify-content:space-between; gap:10px;}
.price .tag{ margin-top: 10px; color: rgba(255,255,255,.72); }
.price .money{ font-size: 36px; font-weight: 980; margin-top: 10px; letter-spacing:-0.8px; }
.price ul{ margin: 12px 0 0; padding-left: 18px; color: rgba(255,255,255,.74); }
.price li{ margin: 8px 0; }
.price .cta{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }

.ring{
  border: 1px solid rgba(124,92,255,.30);
  box-shadow: 0 18px 70px rgba(124,92,255,.16);
}

@media (max-width: 1020px){
  .hero-grid{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
  .h-title{ font-size: 42px; }
  .app-shell{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; top: 0; height: auto; }
}
