/* Real American Security / Lucid Edge — shared styles.
   The landing-page rules below are carried over unchanged from the original
   Next.js build so the site looks the same; founder styles follow. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; }
img, svg, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

/* ---------- Tokens ---------- */
:root {
  --ink: #f7f4ff;
  --muted: #bbb6cb;
  --night: #080812;
  --night-soft: #0f1020;
  --violet: #9a82ff;
  --rose: #e890bd;
  --line: #ffffff1f;
  --serif: Georgia, "Times New Roman", serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body {
  background: var(--night);
  color: var(--ink);
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline-offset: 4px; outline: 2px solid #d9ccff; }
::selection { color: #fff; background: #9a82ff59; }

.skip-link {
  position: absolute; z-index: 100; top: -4rem; left: 1rem;
  padding: .75rem 1rem; border-radius: .75rem;
  background: #e8e0ff; color: #080812; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { z-index: 50; pointer-events: none; padding: 1.1rem clamp(1rem, 3vw, 2.25rem); position: fixed; inset: 0 0 auto; }
.site-nav {
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  pointer-events: auto; background: #0a0a17bf; border: 1px solid #ffffff1a; border-radius: 999px;
  justify-content: space-between; align-items: center; gap: 1.5rem;
  width: min(72rem, 100%); min-height: 4.25rem; margin: 0 auto;
  padding: .65rem .75rem .65rem 1.15rem; display: flex; box-shadow: 0 1rem 3rem #00000040;
}
.wordmark { letter-spacing: .03em; white-space: nowrap; align-items: center; gap: .7rem; font-family: var(--serif); font-size: 1.12rem; font-weight: 700; display: inline-flex; }
.wordmark-mark {
  color: #e3d8ff; background: linear-gradient(145deg, #9a82ff47, #e890bd1f);
  border: 1px solid #d8ccff59; border-radius: 50%; place-items: center;
  width: 2rem; height: 2rem; display: inline-grid; box-shadow: inset 0 0 1rem #9a82ff29;
}
.nav-links { color: #c7c2d6; align-items: center; gap: clamp(1.1rem, 3vw, 2.2rem); font-size: .88rem; display: flex; }
.nav-links a, .footer-link, .footer-links a { transition: color .18s; }
.nav-links a:hover, .footer-link:hover, .footer-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta {
  color: #e8e0ff; letter-spacing: .02em; background: #9a82ff21; border: 1px solid #d8ccff40;
  border-radius: 999px; padding: .72rem 1.1rem; font-size: .82rem; font-weight: 700;
  transition: background .18s, border-color .18s;
}
.nav-cta:hover { background: #9a82ff3b; border-color: #d8ccff80; }

/* ---------- Hero ---------- */
.hero {
  isolation: isolate;
  background: radial-gradient(circle at 50% 115%, #7552bf47, #0000 42%), linear-gradient(#080812 0%, #0b0b18 64%, #0d0c19 100%);
  place-items: center; min-height: 100svh; padding: 10rem 1.25rem 7rem; display: grid; position: relative; overflow: hidden;
}
.hero-grid {
  z-index: -2; opacity: .28;
  background-image: linear-gradient(#ffffff06 1px, #0000 1px), linear-gradient(90deg, #ffffff06 1px, #0000 1px);
  background-size: 5rem 5rem; position: absolute; inset: 0;
  -webkit-mask-image: linear-gradient(#0000, #000 25% 75%, #0000); mask-image: linear-gradient(#0000, #000 25% 75%, #0000);
}
.hero::before {
  content: ""; z-index: -1; aspect-ratio: 1;
  background: radial-gradient(circle at 50% 42%, #d4cbee2b, #5c48930b 58%, #0000 70%);
  border: 1px solid #dbd0ff26; border-radius: 50%; width: min(38rem, 70vw);
  position: absolute; top: 14%; left: 50%; translate: -50%;
  box-shadow: 0 0 5rem #775bbb1f, inset 0 0 5rem #ffffff09;
}
.hero-orb { z-index: -1; filter: blur(90px); opacity: .28; border-radius: 50%; animation: 14s ease-in-out infinite alternate drift; position: absolute; }
.hero-orb-one { background: #6654c2; width: 28rem; height: 28rem; top: 10%; right: -12rem; }
.hero-orb-two { background: #a54f81; width: 24rem; height: 24rem; animation-delay: -5s; bottom: 5%; left: -10rem; }
.hero-content { text-align: center; width: min(67rem, 100%); animation: .8s ease-out both reveal; }
.eyebrow, .section-kicker, .status-label {
  color: #cfc5e8; letter-spacing: .16em; text-transform: uppercase; align-items: center; gap: .6rem;
  margin: 0 0 1.5rem; font-size: .72rem; font-weight: 750; line-height: 1.4; display: inline-flex;
}
.eyebrow span, .status-label span { background: #a990ff; border-radius: 50%; width: .42rem; height: .42rem; box-shadow: 0 0 .8rem #9b80ff; }
.hero h1 { letter-spacing: -.065em; text-wrap: balance; margin: 0; font-family: var(--serif); font-size: clamp(4.75rem, 13vw, 10.5rem); font-weight: 400; line-height: .82; }
.hero h1 em, .gradient-text {
  color: #0000; -webkit-text-fill-color: transparent;
  background: linear-gradient(105deg, #ded6ff 5%, #a990ff 48%, #e8a1c7 95%);
  -webkit-background-clip: text; background-clip: text; font-weight: 400;
}
.hero-copy { color: #c2bdce; text-wrap: balance; max-width: 43rem; margin: 2.3rem auto 0; font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.75; }
.hero-actions { flex-wrap: wrap; justify-content: center; align-items: center; gap: .8rem; margin-top: 2.3rem; display: flex; }
.button {
  border: 1px solid #0000; border-radius: 999px; justify-content: center; align-items: center;
  min-height: 3.35rem; padding: 0 1.45rem; font-size: .9rem; font-weight: 750;
  transition: transform .18s, background .18s, border-color .18s; display: inline-flex;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #171324; background: #eee9ff; box-shadow: 0 .8rem 2rem #a186f429; }
.button-primary:hover { background: #fff; }
.button-secondary { color: #ded9e8; background: #ffffff0b; border-color: #ffffff29; }
.button-secondary:hover { background: #ffffff14; border-color: #ffffff4d; }
.hero-details {
  color: #8f899e; letter-spacing: .06em; text-transform: uppercase; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: .75rem 1.8rem; margin: 4.2rem auto 0; font-size: .76rem; display: flex;
}
.hero-details span:not(:last-child)::after { content: "·"; color: #665c78; margin-left: 1.8rem; }
.scroll-cue { border: 1px solid #fff3; border-radius: 999px; width: 1.6rem; height: 2.5rem; position: absolute; bottom: 1.6rem; left: 50%; translate: -50%; }
.scroll-cue span { background: #d8ceee; border-radius: 999px; width: .25rem; height: .45rem; animation: 1.8s ease-in-out infinite scroll; position: absolute; top: .5rem; left: 50%; translate: -50%; }

/* ---------- Sections ---------- */
.section-shell { width: min(72rem, 100% - 2.5rem); margin: 0 auto; }
.world-section { background: #0d0c19; padding: clamp(6rem, 11vw, 10rem) 0; }
.world-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr); align-items: start; gap: clamp(3rem, 8vw, 8rem); display: grid; }
.section-heading h2, .centered-heading h2, .status-panel h2 { letter-spacing: -.045em; text-wrap: balance; margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.03; }
.section-heading h2, .centered-heading h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.section-kicker { color: #a898c8; }
.world-copy { color: #b8b2c4; padding-top: 2.9rem; font-size: 1.03rem; line-height: 1.85; }
.world-copy p { margin: 0; }
.world-copy p + p { margin-top: 1.5rem; }
.experience-section { border-top: 1px solid var(--line); background: radial-gradient(circle at 50% 15%, #7d58bb24, #0000 30rem), #090912; padding: clamp(6rem, 11vw, 9rem) 0; }
.centered-heading { text-align: center; max-width: 50rem; margin: 0 auto; }
.pillar-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; display: grid; }
.pillar-card {
  border: 1px solid var(--line); background: linear-gradient(145deg, #ffffff0e, #ffffff05); border-radius: 1.25rem;
  min-height: 19rem; padding: 2rem; transition: transform .2s, border-color .2s, background .2s;
}
.pillar-card:hover { background: linear-gradient(145deg, #9a82ff17, #ffffff06); border-color: #b79fff47; transform: translateY(-4px); }
.pillar-icon { color: #c8b9ff; background: #9a82ff14; border: 1px solid #beabff38; border-radius: 50%; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 3rem; display: grid; }
.pillar-card h3 { margin: 0 0 .9rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.pillar-card p { color: #a9a3b5; margin: 0; font-size: .95rem; line-height: 1.72; }
.status-panel {
  background: radial-gradient(circle at 0 0, #9a82ff33, #0000 50%), #ffffff09; border: 1px solid #c9b8ff2e; border-radius: 1.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .85fr); align-items: center; gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(5rem, 9vw, 8rem); padding: clamp(2rem, 5vw, 4rem); display: grid;
}
.status-label { color: #c8b9e4; }
.status-panel h2 { font-size: clamp(2.15rem, 4.5vw, 3.7rem); }
.status-panel > div > p:last-child { color: #aaa4b7; max-width: 38rem; margin: 1.25rem 0 0; line-height: 1.75; }
.status-list { border-top: 1px solid var(--line); }
.status-list div { border-bottom: 1px solid var(--line); color: #aaa4b7; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; font-size: .85rem; display: flex; }
.status-list strong { color: #e2d9f6; letter-spacing: .05em; text-transform: uppercase; font-size: .75rem; }

/* ---------- Founder teaser (landing page) ---------- */
.founder-section { border-top: 1px solid var(--line); background: radial-gradient(circle at 85% 30%, #e890bd12, #0000 28rem), #0b0b16; padding: clamp(5rem, 9vw, 8rem) 0; }
.founder-card {
  display: grid; grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(1.75rem, 4vw, 3.25rem); border: 1px solid #c9b8ff2e; border-radius: 1.5rem;
  background: radial-gradient(circle at 100% 0, #9a82ff26, #0000 55%), #ffffff07;
}
.founder-portrait {
  position: relative; aspect-ratio: 1; border-radius: 50%; padding: .45rem;
  background: linear-gradient(145deg, #b9a8ff80, #e890bd40 60%, #ffffff10);
  box-shadow: 0 1.5rem 4rem #0006, 0 0 4rem #9a82ff26;
}
.founder-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 35%; background: var(--night-soft); }
.founder-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
.founder-role { margin: .9rem 0 0; color: #cfc5e8; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.founder-card p.founder-summary { margin: 1.4rem 0 0; color: #b8b2c4; font-size: 1.03rem; line-height: 1.8; max-width: 40rem; }
.founder-card .hero-actions { justify-content: flex-start; margin-top: 2rem; }

/* ---------- Founders page ---------- */
.fd-main {
  min-height: 100vh; padding: clamp(7.75rem, 12vw, 10rem) 1.25rem 5rem;
  background: radial-gradient(circle at 80% 8%, #7653bc2b, transparent 30rem), radial-gradient(circle at 4% 40%, #e890bd0e, transparent 24rem), var(--night);
}
.fd-shell { width: min(72rem, 100%); margin: 0 auto; }
.fd-intro {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .75fr); align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem); padding-bottom: clamp(3.5rem, 6vw, 5.5rem); border-bottom: 1px solid var(--line);
  animation: .8s ease-out both reveal;
}
.fd-eyebrow { margin: 0 0 1.2rem; color: #b9a8ff; font-size: .82rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.fd-intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 6.8rem); font-weight: 400; letter-spacing: -.06em; line-height: .95; }
.fd-role { margin: 1.5rem 0 0; color: #e2d9f6; font-size: clamp(1rem, 1.5vw, 1.12rem); font-weight: 650; }
.fd-lead { max-width: 42rem; margin: 1.1rem 0 0; color: #d2cede; font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.75; }
.fd-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.fd-intro .founder-portrait { width: 100%; max-width: 22rem; justify-self: center; }
.fd-section { padding: clamp(3.5rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.fd-section:last-child { border-bottom: 0; padding-bottom: 0; }
.fd-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.fd-section h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.06; text-wrap: balance; }
.fd-heading { max-width: 44rem; margin-bottom: 2.5rem; }
.fd-heading p { margin: 1rem 0 0; color: var(--muted); line-height: 1.75; }
.fd-copy h3 { margin: 2.4rem 0 .75rem; color: #f7f4ff; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.fd-copy h3:first-child { margin-top: 0; }
.fd-copy p { margin: 0; color: #b8b2c4; font-size: 1.03rem; line-height: 1.85; }
.fd-copy p + p { margin-top: 1.1rem; }
.fd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fd-card {
  padding: clamp(1.4rem, 2.6vw, 1.9rem); border: 1px solid var(--line); border-radius: 1.25rem;
  background: linear-gradient(145deg, #ffffff0e, #ffffff04); transition: transform .2s, border-color .2s, background .2s;
}
.fd-card:hover { background: linear-gradient(145deg, #9a82ff17, #ffffff06); border-color: #b79fff47; transform: translateY(-3px); }
.fd-card .pillar-icon { width: 2.8rem; height: 2.8rem; margin-bottom: 1.6rem; }
.fd-card h3 { margin: 0 0 .6rem; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.fd-card p { margin: 0; color: #a9a3b5; font-size: .94rem; line-height: 1.7; }
a.fd-card { display: block; }
.fd-card .fd-card-link { display: inline-block; margin-top: 1.1rem; color: #d7caff; font-size: .85rem; font-weight: 700; }
.fd-timeline { border-top: 1px solid var(--line); }
.fd-timeline li { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.fd-period { color: #a898c8; font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; padding-top: .3rem; }
.fd-timeline h3 { margin: 0; color: #f7f4ff; font-size: 1.08rem; font-weight: 700; }
.fd-timeline h3 span { color: #b9a8ff; font-weight: 600; }
.fd-timeline p { margin: .45rem 0 0; color: #aaa4b7; line-height: 1.7; }
.fd-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.fd-chips a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem;
  border: 1px solid #c9b8ff2e; border-radius: 999px; background: #9a82ff12;
  color: #e2d9f6; font-size: .82rem; font-weight: 700; letter-spacing: .05em;
  transition: background .18s, border-color .18s, transform .18s;
}
.fd-chips a::after { content: "↗"; color: #a898c8; font-size: .75rem; }
.fd-chips a:hover { background: #9a82ff2b; border-color: #d8ccff80; color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080811; padding: 2.5rem 1.25rem; }
.footer-inner { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; width: min(72rem, 100%); margin: 0 auto; display: grid; }
.footer-inner p { color: #7f7a8b; text-align: center; margin: 0; font-size: .82rem; }
.footer-links { display: flex; justify-content: center; gap: 1.4rem; margin-top: .55rem; color: #aaa4b7; font-size: .82rem; }
.footer-link { color: #aaa4b7; justify-self: end; font-size: .82rem; }

/* ---------- Motion ---------- */
@keyframes reveal { 0% { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes drift { 0% { transform: translateY(-1rem) scale(.95); } to { transform: translate(-2rem, 2rem) scale(1.08); } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } to { opacity: 0; transform: translateY(.8rem); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { padding: .75rem; }
  .site-nav { min-height: 3.75rem; }
  .nav-links { display: none; }
  .nav-cta { padding-inline: .85rem; }
  .hero { padding-top: 8rem; }
  .hero h1 { font-size: clamp(4.1rem, 25vw, 7rem); }
  .hero-details { max-width: 24rem; }
  .hero-details span::after { display: none; }
  .world-layout, .status-panel { grid-template-columns: 1fr; }
  .world-copy { padding-top: 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 0; }
  .pillar-icon { margin-bottom: 2rem; }
  .founder-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .founder-card .founder-portrait { width: min(14rem, 70vw); }
  .founder-card .hero-actions { justify-content: center; }
  .fd-main { padding-top: 7rem; }
  .fd-intro, .fd-split { grid-template-columns: 1fr; }
  .fd-intro .founder-portrait { order: -1; max-width: 15rem; justify-self: start; }
  .fd-grid { grid-template-columns: 1fr; }
  .fd-timeline li { grid-template-columns: 1fr; gap: .4rem; }
  .footer-inner { text-align: center; grid-template-columns: 1fr; justify-items: center; }
  .footer-link { justify-self: center; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 1rem; }
  .nav-cta { font-size: .72rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.text-link { color: #d7caff; text-decoration: underline; text-underline-offset: .2em; }
.text-link:hover { color: #fff; }
