@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&display=swap');

:root{
  /* Core palette (citadel + masculine) */
  --bg:#E5EEFF;               /* cooler base */
  --ink:#07162F;
  --muted:#42567A;

  --blue:#0F4FE0;             /* deeper, more “steel” blue */
  --blue2:#7DB1FF;

  --gold:#D6AF4B;
  --gold2:#9E7A16;

  /* Parchment tint for cards */
  --card: rgba(255,252,245,.74);
  --cardSolid:#FFFFFF;

  --line: rgba(7,22,47,.12);
  --lineSoft: rgba(7,22,47,.08);

  --shadow: 0 22px 55px rgba(7,22,47,.14);
  --shadowSoft: 0 14px 30px rgba(7,22,47,.10);

  --radius: 16px;
  --radiusSm: 12px;

  --focus: 0 0 0 4px rgba(15,79,224,.18);

  /* Fonts */
  --font-ui: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-citadel: "Cinzel", "Trajan Pro", "Times New Roman", serif;
}
/* Center CTA buttons inside cards (used in bottom grid) */
.cta-center{
  display:flex;
  justify-content:center;
  margin-top:14px;
}
/* --- Command Banner (above hero) ---------------------------------------- */
.command-banner{
  margin: 18px 0 0;
}

.command-shell{
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid rgba(214,175,75,.92);
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 70px rgba(7,22,47,.18);
  position:relative;
  overflow:hidden;
}

/* Gold frame bevel like cards, but stronger */
.command-shell::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: calc(var(--radius) + 2px);
  pointer-events:none;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.30),
    inset 0 0 0 7px rgba(214,175,75,.18),
    inset 0 0 0 12px rgba(7,22,47,.035),
    0 0 0 2px rgba(214,175,75,.30);
}

/* Blue steel glow sweep */
.command-shell::before{
  content:"";
  position:absolute;
  inset:-2px;
  pointer-events:none;
  background:
    radial-gradient(640px 160px at 20% 0%, rgba(15,79,224,.18), transparent 60%),
    radial-gradient(540px 220px at 80% 20%, rgba(15,79,224,.12), transparent 62%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  opacity:.9;
}

.command-inner{
  position:relative;
  z-index:1;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* Left: small “status” plate */
.command-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 240px;
}
.command-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,252,245,.78);
  border:1px solid rgba(7,22,47,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  font-weight: 850;
  letter-spacing:.15px;
}
.command-badge .icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin-right:0;
}

/* Middle: statement */
.command-mid{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.command-title{
  font-family: var(--font-citadel);
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 14px;
  text-transform: uppercase;
  color: rgba(7,22,47,.88);
}
.command-sub{
  font-size: 13px;
  color: var(--muted);
  line-height:1.45;
}

/* Right: quick credibility chips */
.command-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(7,22,47,.12);
  background: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
  font-weight: 800;
  font-size: 13px;
  color: rgba(7,22,47,.86);
}
.chip .icon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  margin-right:0;
  opacity:.92;
}

/* Mobile layout */
@media (max-width: 900px){
  .command-inner{
    flex-direction:column;
    align-items:stretch;
  }
  .command-left{ min-width: 0; width:100%; }
  .command-right{ justify-content:flex-start; }
}
/* --- Command Banner as Image ------------------------------------------- */
.command-shell{
  /* keep your frame, but remove the frosted interior look */
  background: transparent;
  padding: 0;
}

.command-hero{
  position: relative;
  height: 640px;                 /* tweak 120–170 */
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
}

/* The image fills the whole banner */
.command-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% calc(50% + 50px);
  display:block;
  filter: saturate(1.05) contrast(1.05);
}

/* Darken slightly so the gold frame reads */
.command-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(7,22,47,.55), rgba(7,22,47,.20), rgba(7,22,47,.55)),
    radial-gradient(900px 220px at 50% 0%, rgba(15,79,224,.20), transparent 70%);
  pointer-events:none;
}

/* Small title overlay in the banner (optional) */
.command-hero .banner-title{
  position:absolute;
  left:16px;
  bottom:14px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-family: var(--font-citadel);
  font-weight: 800;
  letter-spacing:.5px;
  text-transform: uppercase;
  font-size: 13px;
}

.command-hero .banner-title .icon{
  width:18px; height:18px; flex:0 0 18px;
  color: rgba(255,255,255,.95);
  margin-right:0;
}

/* Mobile: shorter banner */
@media (max-width: 900px){
  .command-hero{ height: 640px; }
  .command-hero img{
    object-position: 94% 50%;
  }
}
/* --- Floating Command Row (between banner and hero) -------------------- */
.command-float{
  margin: 14px 0 6px;
}

/* This is intentionally "invisible"...no border, no background */
.command-float-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

/* Slightly stronger typography since there's no card behind it */
.command-float .command-title{
  font-size: 14px;
  color: rgba(7,22,47,.92);
}
.command-float .command-sub{
  color: rgba(66,86,122,.92);
}

/* Chips become "floating pills" with minimal structure */
.command-float .chip{
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 10px 22px rgba(7,22,47,.10),
    inset 0 1px 0 rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
}

/* Badge stays slightly more solid */
.command-float .command-badge{
  background: rgba(255,252,245,.55);
  border:1px solid rgba(255,255,255,.60);
  box-shadow:
    0 10px 22px rgba(7,22,47,.10),
    inset 0 1px 0 rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px){
  .command-float-inner{
    align-items:stretch;
  }
  .command-float .command-right{
    justify-content:flex-start;
  }
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: var(--font-ui);
  color:var(--ink);

  /* Deeper masculine blue + subtle parchment/stone texture */
  background:
    /* Stone speckle */
    radial-gradient(1px 1px at 12% 18%, rgba(30,27,20,.12), transparent 60%),
    radial-gradient(1px 1px at 58% 42%, rgba(30,27,20,.10), transparent 60%),
    radial-gradient(1px 1px at 82% 24%, rgba(30,27,20,.11), transparent 60%),
    radial-gradient(1px 1px at 22% 78%, rgba(30,27,20,.09), transparent 60%),
    radial-gradient(1px 1px at 74% 84%, rgba(30,27,20,.10), transparent 60%),

    /* Beige stone “bed” */
    radial-gradient(1400px 820px at 50% 118%, rgba(233,221,197,.56), transparent 62%),

    /* Deeper navy field (stronger than before) */
    radial-gradient(1200px 760px at 18% -2%, rgba(7,22,47,.52), transparent 62%),
    radial-gradient(1200px 760px at 88% 6%, rgba(10,34,78,.44), transparent 62%),

    /* Base */
    linear-gradient(180deg, #F6FAFF 0%, #E3EDFF 40%, #D2E1FF 100%);

}

.wrap{ width:min(1120px, calc(100% - 36px)); margin:0 auto; }
a{ color:inherit; text-decoration:none; }

h1,h2,.brand-text,.nav a{
  font-family: var(--font-citadel);
  letter-spacing: .25px;
}
h1,h2{ letter-spacing: .1px; }

/* --- Topbar -------------------------------------------------------------- */
.topbar{
  position:sticky;
  top:0;
  z-index:10;

  background: rgba(255,255,255,.70);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(214,175,75,.35);
  box-shadow: 0 8px 30px rgba(7,22,47,.08);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-mark{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;

  /* Slightly more angular than bubbly */
  border-radius: 12px;

  background: transparent;
  border: none;
  box-shadow: none;

  font-weight:950;
  letter-spacing:.6px;
}
.brand-mark img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  display:block;
}

.brand-text{
  font-weight:950;
  letter-spacing:.2px;
}

/* --- Nav ---------------------------------------------------------------- */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
}

.nav a{
  padding:10px 12px;
  border-radius: 12px; /* less pill, more “plate” */
  color: rgba(7,22,47,.72);
  font-weight:750;
  position:relative;
}

/* Hover = subtle glass plate */
.nav a:hover{
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(7,22,47,.10);
  padding:9px 11px; /* compensate for border */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.70);
  color: var(--ink);
}

/* Active link highlight (keeps your JS/PHP active class working) */
.nav a.active{
  background:
    linear-gradient(180deg, rgba(31,102,255,.12), rgba(255,255,255,.45));
  border:1px solid rgba(31,102,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.80),
    0 10px 18px rgba(7,22,47,.10);
  color: var(--ink);
}

/* Add a “sword-line” accent under active (no blade, just a crisp line) */
.nav a.active::after{
  content:"";
  position:absolute;
  left:10px;
  right:10px;
  bottom:6px;
  height:2px;
  border-radius:2px;
  background: linear-gradient(90deg, transparent, rgba(214,175,75,.85), transparent);
  opacity:.9;
}

/* --- Buttons ------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;

  /* Slightly sharper */
  border-radius: 14px;

  border:1px solid rgba(214,175,75,.70);

  /* More 3D */
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.55)),
    linear-gradient(180deg, rgba(214,175,75,.25), rgba(214,175,75,.10));

  color: var(--ink);
  box-shadow:
    0 14px 26px rgba(7,22,47,.14),
    inset 0 1px 0 rgba(255,255,255,.80);

  font-weight:900;
  letter-spacing:.2px;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 32px rgba(7,22,47,.16),
    inset 0 1px 0 rgba(255,255,255,.85);
}
.btn:active{
  transform: translateY(0);
  box-shadow:
    0 10px 18px rgba(7,22,47,.12),
    inset 0 2px 0 rgba(255,255,255,.70);
}

/* Ghost button: glass plate */
.btn.ghost{
  border:1px solid rgba(7,22,47,.14);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
  color: rgba(7,22,47,.78);
}
.btn.ghost:hover{
  color: var(--ink);
  border-color: rgba(31,102,255,.18);
  background: rgba(255,255,255,.72);
}

/* Active button states (keeps your “btn.active” working) */
.btn.active{
  border-color: rgba(214,175,75,.90);
  box-shadow:
    0 18px 34px rgba(7,22,47,.16),
    inset 0 1px 0 rgba(255,255,255,.85);
}
.btn.ghost.active{
  border-color: rgba(31,102,255,.28);
  background: rgba(31,102,255,.08);
  color: var(--ink);
}
/* --- Mobile hamburger ---------------------------------------------------- */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border-radius: 12px;
  border:1px solid rgba(214,175,75,.65);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 20px rgba(7,22,47,.12);
  color: var(--ink);
  font-weight: 950;
  font-size: 18px;
  line-height: 1;
}
.icon{
  width:18px;
  height:18px;
  display:inline-block;
  vertical-align:-3px;
  margin-right:8px;
  color: rgba(7,22,47,.78);
}
.btn .icon{ margin-right:10px; color: rgba(7,22,47,.90); }
.nav a .icon{ margin-right:8px; }

@media (max-width: 900px){
  .topbar-inner{ align-items:center; }

  .nav-toggle{ display:inline-grid; place-items:center; }

  /* Hide nav by default on mobile */
  .nav{
    position: absolute;
    right: 18px;
    top: 64px;
    width: min(320px, calc(100vw - 36px));

    display: grid;
    gap: 10px;
    padding: 12px;

    border-radius: 16px;
    border: 2px solid rgba(214,175,75,.85);
    background: #fffdf7;
    backdrop-filter: none;

    box-shadow: 0 28px 70px rgba(7,22,47,.20);

    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
  }

  /* When open */
  .nav[data-open="1"]{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Make links full width on mobile */
  .nav a{ width: 100%; }

  /* Buttons full width */
  .nav .btn{ width: 100%; justify-content:center; }
}

/* --- Typography ---------------------------------------------------------- */
h1,h2,h3{ margin:0 0 10px 0; }
h1{ font-size: clamp(30px, 4vw, 46px); letter-spacing:-.8px; }
h2{ font-size: clamp(22px, 3vw, 32px); letter-spacing:-.35px; }
h3{ font-size: 18px; letter-spacing:-.1px; }

p{ margin:0 0 14px 0; color:var(--muted); line-height:1.65; }

/* --- Layout -------------------------------------------------------------- */
.hero{
  padding:30px 0 10px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
}
@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
}

/* --- Cards (glass + 3D) -------------------------------------------------- */
.card{
  border-radius: var(--radius);

  /* Glass surface remains */
  background: var(--card);

  /* THICK antique gold framework */
  border: 2px solid rgba(214,175,75,.90);
  box-shadow:
    0 22px 55px rgba(7,22,47,.14),
    inset 0 1px 0 rgba(255,255,255,.78);

  padding:18px;

  position:relative;
  overflow:hidden;
}

/* 3D “Dark Architect” GOLD FRAMEWORK (outer ridge + inner bevel) */
.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  pointer-events:none;

  /* This layer creates the *thick* antique gold frame without tinting the interior */
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.26),            /* inner shine edge */
    inset 0 0 0 6px rgba(214,175,75,.18),             /* warm bevel depth */
    inset 0 0 0 10px rgba(7,22,47,.03),               /* slight antique shadowing */
    0 0 0 2px rgba(214,175,75,.35);                   /* outer plate */
}

/* Keep the existing glass highlight layer, but don't overwhelm the gold frame */
.card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(380px 160px at 14% 10%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(320px 180px at 86% 18%, rgba(125,177,255,.14), transparent 60%);
  pointer-events:none;
  opacity:.70;
}

.card > *{ position:relative; z-index:1; }
/* Inner nested cards: thinner gold frame so it doesn’t look too heavy */
.card[style*="box-shadow:none"]{
  border: 1px solid rgba(214,175,75,.65);
  box-shadow: none !important;
}
.card[style*="box-shadow:none"]::after{
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.22),
    inset 0 0 0 4px rgba(214,175,75,.14),
    0 0 0 1px rgba(214,175,75,.22);
}

/* --- Badges (less “cute”, more tactical) -------------------------------- */
.badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.badge{
  padding:8px 10px;

  /* Move away from pills just a bit */
  border-radius: 14px;

  border:1px solid rgba(7,22,47,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.48));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75);

  color: rgba(7,22,47,.86);
  font-size: 13px;
  font-weight: 800;
}

/* --- Grid --------------------------------------------------------------- */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
  margin: 18px 0 30px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
}

/* --- KPIs --------------------------------------------------------------- */
.kpi{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.kpi .big{
  font-size: 26px;
  font-weight: 980;
  letter-spacing:-.4px;
  color: var(--ink);
}
.kpi .label{ color: var(--muted); font-size: 13px; }

/* --- Forms -------------------------------------------------------------- */
.form{ display:grid; gap:12px; }

.field label{
  display:block;
  color: rgba(7,22,47,.82);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 900;
  letter-spacing:.2px;
}
.field input, .field select{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(7,22,47,.14);

  /* glass input */
  background: rgba(255,255,255,.80);

  color: var(--ink);
  outline:none;

  box-shadow: inset 0 1px 0 rgba(255,255,255,.80);
}
.field input:focus, .field select:focus{
  border-color: rgba(31,102,255,.55);
  box-shadow: var(--focus);
}

/* --- Rows --------------------------------------------------------------- */
.row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width: 700px){
  .row{ grid-template-columns:1fr; }
}

/* --- Flash messages ----------------------------------------------------- */
.flash{
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(7,22,47,.12);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadowSoft);
}
.flash.error{ border-color: rgba(220,60,60,.28); background: rgba(255,255,255,.76); }
.flash.success{ border-color: rgba(30,160,90,.26); background: rgba(255,255,255,.76); }
.flash.info{ border-color: rgba(31,102,255,.28); background: rgba(255,255,255,.76); }

/* Add small left “steel” accent to flash blocks */
.flash{
  position:relative;
}
.flash::before{
  content:"";
  position:absolute;
  left:10px;
  top:10px;
  bottom:10px;
  width:3px;
  border-radius:3px;
  background: linear-gradient(180deg, rgba(31,102,255,.85), rgba(214,175,75,.75));
  opacity:.9;
}

/* --- Rules -------------------------------------------------------------- */
.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(7,22,47,.14), transparent);
  margin: 14px 0;
}

/* --- Prices ------------------------------------------------------------- */
.price{
  font-size: 36px;
  font-weight: 990;
  letter-spacing:-.8px;
  color: var(--ink);
}
.subprice{ color: var(--muted); font-size: 13px; margin-top:6px; }

/* --- Lists -------------------------------------------------------------- */
.list{
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; line-height:1.55; }

/* --- Footer ------------------------------------------------------------- */
.footer{
  margin-top: 34px;
  border-top: 1px solid var(--lineSoft);
  padding: 18px 0;
  color: rgba(7,22,47,.58);
}
.footer-inner{ display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.fineprint{ font-size: 12px; }

/* --- Responsive video embed -------------------------------------------- */
.video{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 16px;
  overflow: hidden;

  border:1px solid rgba(7,22,47,.12);
  box-shadow:
    0 18px 38px rgba(7,22,47,.14),
    inset 0 1px 0 rgba(255,255,255,.12);

  background: #000;
}
.video iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
/* --- ICON SYSTEM (prevents gigantic default SVGs) ------------------------ */
.icon{
  width:38px;
  height:38px;
  flex:0 0 18px;
  display:inline-block;
  vertical-align:-3px;
  color: var(--ink);
}

/* Headline icons (hero, section titles) */
h1 .icon{ width:42px; height:42px; flex-basis:42px; vertical-align:-5px; }
h2 .icon{ width:34px; height:34px; flex-basis:34px; vertical-align:-4px; }
h3 .icon{ width:32px; height:32px; flex-basis:32px; vertical-align:-4px; }

/* Icon spacing when used inside headings/buttons */
h1 .icon, h2 .icon, h3 .icon,
.btn .icon, .badge .icon{
  margin-right:10px;
}

/* Badge layout: icon + text aligned cleanly */
.badge{
  display:flex;
  align-items:center;
  gap:10px;
}
.badge .icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  margin-right:0; /* gap handles spacing */
  opacity:.92;
}

/* KPI “big” rows: icon + text aligned */
.kpi .big{
  display:flex;
  align-items:center;
  gap:10px;
}
.kpi .big .icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  margin-right:0;
}
.topbar-inner { justify-content: space-between; }
.nav-right { display: flex; align-items: center; gap: 10px; }
