/* assets/css/style.css */

/* ==========================
   THEME TOKENS
   ========================== */
:root{
  --bg: #0b0f19;
  --ink: #eaf0ff;
  --muted: rgba(234,240,255,.72);
  --hairline: rgba(234,240,255,.10);

  --accent: #7aa2ff;
  --accent2: #9af5d1;

  --paper: #f6f8ff;
  --paperInk: #101322;
  --paperMuted: rgba(16,19,34,.72);

  --max: 1080px;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,.45);

  /* ==========================
     VERTICAL RHYTHM SYSTEM
     ========================== */
  --space-xl: 120px;   /* between major sections */
  --space-lg: 72px;    /* section internal spacing */
  --space-md: 40px;    /* between sub-sections */
  --space-sm: 22px;    /* paragraph / element spacing */
}

/* ==========================
   BASE
   ========================== */
*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  line-height: 1.55;
  letter-spacing: .2px;

  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* One continuous background canvas */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;

  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(122,162,255,.18), transparent 62%),
    radial-gradient(900px 600px at 90% 0%, rgba(154,245,209,.10), transparent 58%),
    radial-gradient(900px 700px at 60% 110%, rgba(122,162,255,.08), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%),
    var(--bg);

  background-attachment: fixed;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: .22em; }

.wrap{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Accessibility */
:focus-visible{
  outline: 2px solid rgba(122,162,255,.65);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ==========================
   HEADER / NAV
   ========================== */
header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(11,15,25,.86), rgba(11,15,25,.60));
  border-bottom: 1px solid rgba(234,240,255,.08);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 220px;
}

.mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(12px 12px at 30% 30%, rgba(154,245,209,.85), transparent 60%),
    radial-gradient(14px 14px at 70% 70%, rgba(122,162,255,.85), transparent 60%),
    linear-gradient(135deg, rgba(234,240,255,.15), rgba(234,240,255,.03));
  border: 1px solid rgba(234,240,255,.12);
  box-shadow: 0 10px 24px rgba(0,0,0,.30);
}

.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.brand strong{ font-weight: 720; letter-spacing: .6px; }
.brand span{ color: var(--muted); font-size: 12.5px; }

nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap: 14px;
  align-items:center;
}

nav a{
  font-size: 13.5px;
  color: rgba(234,240,255,.70);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

nav a:hover{
  color: var(--ink);
  border-color: rgba(234,240,255,.10);
  text-decoration:none;
  background: rgba(234,240,255,.04);
}

.ctaRow{
  display:flex;
  align-items:center;
  gap: 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(234,240,255,.12);
  background: rgba(234,240,255,.05);
  color: var(--ink);
  font-size: 13.5px;
  white-space:nowrap;
}

.btn:hover{
  background: rgba(234,240,255,.08);
  text-decoration:none;
}

.btn.primary{
  background: linear-gradient(135deg, rgba(122,162,255,.28), rgba(154,245,209,.12));
  border-color: rgba(122,162,255,.26);
}

/* ==========================
   GLOBAL SECTION RHYTHM
   ========================== */
section{
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Hero slightly tighter at bottom */
.hero{
  padding-top: 96px;
  padding-bottom: var(--space-lg);
}

.kicker{
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: rgba(234,240,255,.62);
}

h1{
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.6px;
  font-weight: 640;
}

.hero p.lead{
  font-size: clamp(16px, 1.65vw, 20px);
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 var(--space-md);
}

.bigLines{
  margin: var(--space-md) 0 var(--space-md);
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(234,240,255,.12);
  background: linear-gradient(180deg, rgba(234,240,255,.05), rgba(234,240,255,.02));
  box-shadow: var(--shadow);
  max-width: 640px;
}

.bigLines .line{
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.35;
  margin: 10px 0;
  color: rgba(234,240,255,.88);
}

.bigLines .line strong{ color: var(--ink); font-weight: 780; }

.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
  align-items: start;
}

/* Panels */
.panel{
  border-radius: var(--radius);
  border: 1px solid rgba(234,240,255,.10);
  background: rgba(234,240,255,.04);
  padding: 22px;
}

.panel h3{
  margin: 0 0 10px;
  font-size: 15.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(234,240,255,.70);
}

.panel p{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14.5px;
}

.callouts{
  display:grid;
  gap: 10px;
  margin-top: var(--space-sm);
}

.callout{
  border-radius: 14px;
  border: 1px solid rgba(234,240,255,.10);
  background: rgba(234,240,255,.03);
  padding: 14px 14px;
  color: rgba(234,240,255,.86);
  font-size: 14.5px;
}

/* Section headings */
.sectionTitle{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: var(--space-md);
}

h2{
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.3px;
  font-weight: 500;
  line-height: 1.12;
}

.sectionTitle .hint{
  color: rgba(234,240,255,.56);
  font-size: 13.5px;
  max-width: 46ch;
  text-align:right;
}

.prose{
  max-width: 86ch;
  color: var(--muted);
  font-size: 16px;
}

.prose p{
  margin: 0 0 var(--space-sm);
}
.prose p:last-child{ margin-bottom: 0; }

/* Consistent sub-section spacing helpers */
.mt-md{ margin-top: var(--space-md); }
.mt-sm{ margin-top: var(--space-sm); }

/* ==========================
   SURFACES (CO-ORDINATED BACKGROUND)
   ========================== */
.surface{
  position: relative;
}

.surface::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;

  background: rgba(234,240,255,.028);

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

/* ==========================
   REJECTIONS BLOCK
   ========================== */
.reject{
  margin-top: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid rgba(234,240,255,.12);
  background: linear-gradient(135deg, rgba(122,162,255,.14), rgba(154,245,209,.06));
  padding: 22px;
  max-width: 900px;
}

.reject .statement{
  font-size: clamp(18px, 2vw, 22px);
  margin: 12px 0;
  line-height: 1.25;
  font-weight: 400;
  color: rgba(234,240,255,.92);
}

/* ==========================
   PAPER SECTION (SOFT TRANSITIONS)
   ========================== */
.paper{
  background: var(--paper);
  color: var(--paperInk);
  position: relative;
}

/* Soft fade into/out of paper to avoid “hard bands” */
.paper::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top:-10px;
  height: 10px;
  background: linear-gradient(
    to bottom,
    rgba(246,248,255,0),
    rgba(246,248,255,.85)
  );
  pointer-events:none;
}

.paper::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-10px;
  height: 10px;
  background: linear-gradient(
    to top,
    rgba(246,248,255,0),
    rgba(246,248,255,.85)
  );
  pointer-events:none;
}

.paper .kicker,
.paper .sectionTitle .hint,
.paper .prose{ color: var(--paperMuted); }

.paper h2, .paper h3, .paper strong{ color: var(--paperInk); }

.triad{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: var(--space-md);
}

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(16,19,34,.12);
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(16,19,34,.10);
  padding: 18px 18px 16px;
}

.card .tag{
  display:inline-block;
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(16,19,34,.62);
  margin-bottom: 10px;
}

.card h3{
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.2px;
  font-weight: 840;
}

.card p{
  margin: 0;
  color: rgba(16,19,34,.72);
  font-size: 15.5px;
}

/* ==========================
   FINAL CTA
   ========================== */
.finalCta{
  padding-top: calc(var(--space-xl) + 20px);
  padding-bottom: calc(var(--space-xl) + 40px);
}

.finalCta .box{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(234,240,255,.14);
  background:
    radial-gradient(700px 340px at 15% 35%, rgba(122,162,255,.25), transparent 60%),
    radial-gradient(700px 340px at 85% 60%, rgba(154,245,209,.12), transparent 60%),
    rgba(234,240,255,.03);
  padding: 30px;
  box-shadow: var(--shadow);
}

.finalCta h2{
  margin-bottom: 10px;
  max-width: 24ch;
}

.finalCta p{
  margin: 0 0 var(--space-sm);
  color: var(--muted);
  max-width: 72ch;
  font-size: 16px;
}

.finalCta .actions{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: var(--space-sm);
}

/* ==========================
   FOOTER
   ========================== */
footer{
  border-top: 1px solid rgba(234,240,255,.08);
  padding: 22px 0 34px;
  color: rgba(234,240,255,.62);
  font-size: 13px;
}

footer .foot{
  display:flex;
  flex-wrap:wrap;
  gap: 14px 18px;
  align-items:center;
  justify-content:space-between;
}

footer .links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 14px;
  align-items:center;
}

footer .links a{
  padding: 6px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
}

footer .links a:hover{
  border-color: rgba(234,240,255,.10);
  background: rgba(234,240,255,.04);
  text-decoration:none;
  color: rgba(234,240,255,.88);
}

.footBrand{
  color: rgba(234,240,255,.86);
  letter-spacing:.6px;
}
.footSub{
  display:block;
  margin-top:4px;
}

.copyright{
  margin-top: 16px;
  color: rgba(234,240,255,.52);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
  nav{ justify-content:flex-start; }
  .brand{ min-width:auto; }
  .wrap{ width: min(var(--max), calc(100% - 32px)); }
}

@media (max-width: 700px){
  .sectionTitle{
    flex-direction:column;
    align-items:flex-start;
  }
  .sectionTitle .hint{ text-align:left; }
}

@media (max-width: 950px){
  .triad{ grid-template-columns: 1fr; }
}

/* ==========================
   LOGO
   ========================== */
.logo{
  height: 55px;
  display: block;
  object-fit: contain;

  /* Subtle optical alignment */
  transform: translateY(1px);
}

/* ==========================
   EXAMPLE BUTTONS
   ========================== */
.exampleBtn{
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #4a6cf7;
  cursor: pointer;
}

.exampleBtn:hover{
  text-decoration: underline;
}

/* ==========================
   MODAL
   ========================== */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(11,15,25,.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modalOverlay.active{
  display: flex;
}

.modal{
  background: #0f1626;
  border: 1px solid rgba(234,240,255,.12);
  border-radius: 16px;
  max-width: 640px;
  width: calc(100% - 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

.modalHeader{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(234,240,255,.08);
}

.modalHeader h3{
  margin: 0;
  font-size: 20px;
}

.modalClose{
  background: none;
  border: none;
  font-size: 26px;
  color: rgba(234,240,255,.7);
  cursor: pointer;
}

.modalClose:hover{
  color: #fff;
}

.modalBody{
  padding: 22px;
  font-size: 15.5px;
  color: rgba(234,240,255,.85);
  line-height: 1.6;
}

/* ==========================
   HERO VIDEO LAYOUT
   ========================== */

.heroGrid{
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.heroContent{
  min-width: 0; /* prevents overflow */
}

.heroVideo{
  position: relative;
}

/* Video container */
.videoFrame{
  border-radius: 18px;
  border: 1px solid rgba(234,240,255,.12);
  background: linear-gradient(
    180deg,
    rgba(234,240,255,.05),
    rgba(234,240,255,.02)
  );
  padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.videoTitle{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgba(234,240,255,.65);
  margin-bottom: 8px;
}

.videoEmbed{
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px; /* optional – remove if you want it razor-sharp */
  background: #000;
}

.videoCaption{
  margin-top: 8px;
  font-size: 13px;
  color: rgba(234,240,255,.55);
}

/* ==========================
   RESPONSIVE BEHAVIOUR
   ========================== */
@media (max-width: 1100px){
  .heroGrid{
    grid-template-columns: 1fr;
  }

  .heroVideo{
    margin-top: 40px;
  }
}

/* ==========================
   HERO VIDEO — BORDERLESS
   ========================== */

.videoFrame{
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.heroVideo{
  padding-top: 42px;
}

