@import "./base.css";

:root{
  --bg: url("/cmd-squad-background.png");

  --black:#070a0f;
  --panel: rgba(10,14,20,.62);
  --line: rgba(255,255,255,.10);
  --text: #e7eef7;
  --muted:#a7b6c8;

  --gold:#d6b25e;
  --gold2:#a8873a;

  --ok:#49d19a;

  --radius: 18px;
  --shadow: 0 14px 60px rgba(0,0,0,.55);

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --cmd-signature: "CSQ-HOME-v1|origin:commandsquad.net|build:2026-02-17";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: var(--black);
  overflow:hidden;
}

/* Background image + cinematic overlays */
.bg{
  position:fixed;
  inset:0;
  background-image: var(--bg);
  background-size:cover;
  background-position:center;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.03);
}
.bg:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(214,178,94,.10), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(90,167,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(7,10,15,0), rgba(7,10,15,.58));
}
.bg:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(7,10,15,.42), rgba(7,10,15,.45), rgba(7,10,15,.92));
  opacity:.75;
}

/* Subtle noise */
.noise{
  pointer-events:none;
  position:fixed;
  inset:0;
  opacity:.08;
  mix-blend-mode:overlay;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><metadata>commandsquad.net|CSQ-HOME-v1</metadata><filter id="n"><feTurbulence type="fractalNoise" baseFrequency=".9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)" opacity=".55"/></svg>');
  background-size:160px 160px;
}

/* Content */
.wrap{
  position:relative;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px 16px;
}

.card{
  width:min(980px, 100%);
  border:1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(10,14,20,.70), rgba(10,14,20,.55));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
  backdrop-filter: blur(10px);
}

.card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(680px 220px at 18% 0%, rgba(214,178,94,.18), transparent 60%),
    radial-gradient(520px 240px at 92% 8%, rgba(90,167,255,.16), transparent 60%);
  pointer-events:none;
}

.inner{
  position:relative;
  z-index:1;
  padding: 22px 20px 18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:center;
  min-width:0;
}

.brand{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:0;
}

.mark{
  width:54px;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(214,178,94,.34);
  background:
    radial-gradient(20px 20px at 30% 30%, rgba(255,255,255,.12), transparent 65%),
    linear-gradient(180deg, rgba(214,178,94,.26), rgba(214,178,94,.06));
  display:grid;
  place-items:center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  flex:0 0 auto;
}
.mark svg{width:28px;height:28px}

h1{
  margin:0;
  font-size: 22px;
  letter-spacing:.3px;
  font-weight: 850;
  line-height: 1.15;
}
.tagline{
  margin:8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 70ch;
}

.meta{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  min-width:0;
}

/* KEY FIX: pills can never exceed container width */
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(231,238,247,.92);
  border-radius:999px;
  padding:7px 10px;
  font-family: var(--mono);
  font-size: 11px;
  white-space:nowrap;

  max-width:100%;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pill a{
  color: inherit;
  text-decoration: none;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  display:inline-block;
  max-width:100%;
}
.dot{
  width:8px;height:8px;border-radius:999px;background: var(--ok);
  box-shadow: 0 0 0 4px rgba(73,209,154,.12);
  flex:0 0 auto;
}

.cta{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:stretch;
  justify-content:center;
  min-width:0;
}

.btn{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(231,238,247,.95);
  text-decoration:none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  min-width:0;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(214,178,94,.30);
  background: rgba(214,178,94,.08);
}
.btn .l{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:0;
}
.btn .icon{
  width:34px;height:34px;border-radius:12px;
  display:grid;place-items:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  flex:0 0 auto;
}
.btn .text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.btn .text strong{
  font-size:13px;
  letter-spacing:.15px;
}
.btn .text span{
  font-size:11.5px;
  color: rgba(231,238,247,.70);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:normal;
  max-width: 42ch;
}

/* 2-line clamp for CTA subtext (prevents tall buttons on small phones) */
.btn .text span{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  max-width: 42ch;
}

.btn-video{
  border-color: rgba(90,167,255,.35);
  background: rgba(90,167,255,.08);
}
.btn-video:hover{
  border-color: rgba(90,167,255,.55);
  background: rgba(90,167,255,.12);
}

.btn .arrow{
  font-family: var(--mono);
  opacity:.75;
  flex:0 0 auto;
}

.btn-primary{
  border-color: rgba(214,178,94,.45);
  background: rgba(214,178,94,.10);
}
.btn-primary:hover{
  border-color: rgba(214,178,94,.62);
  background: rgba(214,178,94,.14);
}

.footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding: 12px 16px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  color: rgba(231,238,247,.70);
  font-size: 11.5px;
  line-height:1.35;
}
.footer a{color: rgba(231,238,247,.86); text-decoration:none}
.footer a:hover{text-decoration:underline}
.disclaimer{opacity:.9}

@media (max-width: 900px){
  body{overflow:auto}
  .wrap{align-items:flex-start; padding:16px 14px 26px}
  .card{margin-top:16px}
  .inner{
    grid-template-columns: 1fr;
    padding: 18px 16px 14px;
  }
  .cta{margin-top:6px}
  .footer{flex-direction:column; align-items:flex-start}
}

/* Extra-tight phones */
@media (max-width: 380px){
  .wrap{padding:14px 10px 22px}
  .inner{padding:16px 14px 12px}
  .mark{width:48px;height:48px;border-radius:14px}
  h1{font-size:20px}
}

/* Fingerprint classes */
.cmd-opsframe{}
.cmd-sustainment-shell{}
