/* The Secure Cyber — corporate site styles */
:root {
  --navy-950: #050d18;
  --navy-900: #0b1b2e;
  --navy-800: #12273f;
  --navy-700: #1b3654;
  --ink: #0f1e2e;
  --body: #3c4b5c;
  --muted: #6b7a8c;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --teal: #14b8a6;
  --teal-300: #5eead4;
  --sky: #0ea5e9;
  --accent: #0d9488;
  --danger: #dc2626;
  --ok: #059669;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 27, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(5, 13, 24, 0.25);
  --max: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: .9rem; display: inline-block;
}
.lead { font-size: 1.15rem; color: var(--body); max-width: 62ch; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none !important; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--sky)); color: #fff; box-shadow: 0 8px 24px rgba(14,165,233,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(14,165,233,.4); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 13, 24, 0.86); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 700; font-size: 1.08rem; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; font-family: var(--mono); font-size: .64rem; color: var(--teal-300); letter-spacing: .16em; font-weight: 500; }
.nav-links { display: flex; gap: 1.8rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #cfd8e3; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: 8px 20px 20px; display: none; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #cfd8e3;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14,165,233,.22), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(20,184,166,.18), transparent 60%),
    var(--navy-950);
  padding: 110px 0 96px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, var(--teal-300), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #b6c3d1; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.badge {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: #d7e6f2;
  border: 1px solid rgba(94,234,212,.35); background: rgba(20,184,166,.08); padding: 6px 11px; border-radius: 999px;
}
.terminal {
  background: rgba(11,27,46,.85); border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  box-shadow: var(--shadow-lg); font-family: var(--mono); font-size: .84rem; color: #b6c3d1; overflow: hidden;
}
.terminal-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334a63; }
.terminal pre { margin: 0; padding: 18px 20px 22px; white-space: pre-wrap; line-height: 1.75; }
.t-ok { color: var(--teal-300); } .t-warn { color: #fbbf24; } .t-dim { color: #6b819a; } .t-key { color: #7dd3fc; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 72px 0 64px; } }

/* Stats strip */
.stats { background: var(--navy-900); color: #cfd8e3; border-top: 1px solid rgba(255,255,255,.06); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 20px; border-left: 1px solid rgba(255,255,255,.07); }
.stat:first-child { border-left: 0; }
.stat b { display: block; color: #fff; font-size: 1.9rem; font-weight: 700; }
.stat span { font-size: .9rem; color: #9fb0c3; }
@media (max-width: 760px) { .stats .container { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } }

/* Sections */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-950); color: #b6c3d1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: rgba(13,148,136,.45); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(20,184,166,.14), rgba(14,165,233,.14)); color: var(--accent);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { font-size: .97rem; margin-bottom: .8em; }
.card ul { margin: 0; padding-left: 1.1em; font-size: .93rem; color: var(--muted); }
.card ul li { margin: .2em 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checklist { list-style: none; padding: 0; margin: 1.2em 0 0; }
.checklist li { position: relative; padding-left: 30px; margin: .65em 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(20,184,166,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section-dark .checklist li::before { background-color: rgba(94,234,212,.12); }

.ot-diagram { background: var(--navy-900); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 26px; }
.purdue { display: grid; gap: 8px; font-family: var(--mono); font-size: .8rem; }
.purdue div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); color: #d7e6f2; }
.purdue div em { font-style: normal; color: #7f93a8; }
.purdue .l5 { background: rgba(14,165,233,.12); } .purdue .l4 { background: rgba(14,165,233,.08); }
.purdue .dmz { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.35); color: #fde68a; }
.purdue .l3 { background: rgba(20,184,166,.08); } .purdue .l2 { background: rgba(20,184,166,.12); } .purdue .l1 { background: rgba(20,184,166,.16); }

/* Credentials */
.cred { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); }
.cred b { color: #fff; display: block; margin-bottom: 2px; }
.cred span { font-size: .92rem; }
.cred .tag { flex: none; font-family: var(--mono); font-size: .74rem; font-weight: 700; color: var(--navy-950); background: var(--teal-300); padding: 6px 8px; border-radius: 6px; min-width: 64px; text-align: center; }
.projects { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.projects span { font-size: .86rem; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); color: #d7e6f2; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px; }
.step p { font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 550; color: var(--ink); font-size: .95rem; }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900), var(--navy-800)); color: #cfd8e3; border-radius: 20px; padding: 48px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }

/* Forms */
.form-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-wrap { padding: 22px; } }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
  border: 1px solid #cdd6e1; border-radius: 10px; padding: .72rem .85rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(14,165,233,.15); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .84rem; color: var(--muted); margin-top: 14px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: .94rem; margin-top: 16px; display: none; }
.alert.show { display: block; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-list b { display: block; color: var(--ink); font-size: .85rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: #8ea0b4; padding: 60px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #b6c3d1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Chat widget */
.chat-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--sky)); color: #fff; box-shadow: 0 12px 30px rgba(14,165,233,.45);
  display: grid; place-items: center; transition: transform .15s;
}
.chat-launcher:hover { transform: scale(1.05); }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher .dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; background: #f43f5e; border: 2px solid #fff; border-radius: 50%; }
.chat-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 81; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 120px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
@media (max-width: 480px) { .chat-panel { right: 12px; bottom: 86px; } .chat-launcher { right: 14px; bottom: 14px; } }
.chat-head { background: var(--navy-900); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.chat-head img { width: 34px; height: 34px; }
.chat-head b { display: block; font-size: .98rem; }
.chat-head small { color: var(--teal-300); font-size: .78rem; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #cfd8e3; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--accent); font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1px solid rgba(13,148,136,.4); background: #fff; color: var(--accent); border-radius: 999px; padding: 6px 11px; font-size: .84rem; cursor: pointer; font-family: inherit; }
.quick button:hover { background: rgba(13,148,136,.08); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; padding: .6rem .8rem; }
.chat-input button { border: 0; border-radius: 10px; background: var(--accent); color: #fff; padding: 0 14px; cursor: pointer; font-weight: 600; font-family: inherit; }

/* Portal */
.portal-shell { min-height: calc(100vh - 72px); background: var(--bg-soft); padding: 48px 0 80px; }
.auth-card { max-width: 440px; margin: 30px auto; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.dash-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.panel h3 { margin-bottom: 16px; }
.panel .form-grid { grid-template-columns: 1fr; gap: 14px; }
.jobs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.jobs th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.jobs td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.jobs td small { color: var(--muted); display: block; }
.table-scroll { overflow-x: auto; }
.status { display: inline-block; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.s-new { background: #e0f2fe; color: #075985; } .s-triage { background: #fef3c7; color: #92400e; }
.s-progress { background: #ede9fe; color: #5b21b6; } .s-waiting { background: #fce7f3; color: #9d174d; }
.s-done { background: #d1fae5; color: #065f46; } .s-closed { background: #e5e7eb; color: #374151; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; padding: 14px 16px; border-radius: 12px; font-size: .92rem; margin-bottom: 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select { width: auto; padding: .45rem .7rem; font-size: .88rem; }

/* Legal pages */
.legal { padding: 64px 0 90px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
