/*==========================================================
SYNEURA CORE
ASSL v4 — Framework Layer (Level 1)
==========================================================*/

/*==========================================================
OWNERSHIP MANIFEST
Update this list every time something is promoted to core.
If a component isn't listed here, it doesn't live in core —
go look in the owning page's stylesheet instead.

TOKENS        — colors, spacing, typography scale (below)
TYPOGRAPHY    — h1 h2 h3 p .lede .scene-body
FLOW          — .content-section
CARD          — .glass-card (box treatment only)
LAYOUT        — .layout-60-40 .layout-40-60
                .layout-grid-2 .layout-grid-3 .layout-grid-4
                .layout-centered
BUTTON        — .button .button-small .actions
MODAL         — dialog, #early-access, .eyebrow
NAV           — .site-header .nav-container .brand .site-nav
FOOTER        — .hub-section and children
PAGE SHELL    — .page .page-content .wrap
HELPERS       — .center .left .right .hidden .fade-up
==========================================================*/

:root{

/*----------------------------------------------------------
COLOR
----------------------------------------------------------*/

--ink:#0a1128;
--ink-mid:#050816;
--ink-deep:#000000;
--line:rgba(94,107,135,0.28);
--white:#ffffff;
--muted:#5e6b87;
--cyan:#38bdf8;
--mint:#34d399;
--purple:#d78aff;
--violet:#a855f7;
--shadow:0 28px 80px rgba(0,0,0,0.55);

/*----------------------------------------------------------
PAGE TOKENS
(pages override these in their own :root — see each page file)
----------------------------------------------------------*/

--page-max-width:1600px;
--reading-width:900px;

--page-padding-top:120px;
--page-padding-bottom:120px;
--page-padding-inline:clamp(24px,5vw,80px);

--hero-title-size:36px;
--section-title-size:30px;
--card-title-size:22px;

--body-size:18px;
--small-text-size:16px;

--hero-line-height:1.08;
--section-line-height:1.20;
--body-line-height:1.80;

--lead-width:70ch;
--lead-size:1.15rem;
--paragraph-width:70ch;

--space-after-h1:28px;
--space-after-h2:28px;
--space-after-h3:12px;
--space-after-lede:56px;
--space-before-section:80px;
--paragraph-gap:20px;

--card-gap:24px;
--card-padding:32px;
--card-radius:22px;
--card-border:1px solid rgba(255,255,255,.08);

--list-indent:24px;
--list-gap:10px;

--dialog-width:1200px;

/*----------------------------------------------------------
LAYOUT TOKENS
Drive the layout primitives below. Pages may override the
gap/columns of a primitive they consume, but not its ratio —
if the ratio needs to change, that's a different primitive.
----------------------------------------------------------*/

--layout-gap:clamp(48px,6vw,96px);
--layout-grid-2-min:320px;
--layout-grid-3-min:280px;
--layout-grid-4-min:220px;

}

/*==========================================================
RESET / BASE
==========================================================*/

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(215,138,255,0.16), transparent 24%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-mid) 52%, var(--ink-deep) 100%);
  color:var(--white);
  font-family:Manrope,Arial,sans-serif;
  overflow-x:hidden;
  line-height:1.5;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:auto;
  width:38vw;
  height:38vw;
  border-radius:50%;
  filter:blur(110px);
  opacity:0.16;
  pointer-events:none;
  z-index:0;
}

body::before{ top:-8vw; left:-10vw; background:var(--cyan); }
body::after{ bottom:-10vw; right:-8vw; background:var(--violet); }

img{ display:block; width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
button, summary{ font:inherit; }

.noise{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:0.06;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index:0;
}

/*==========================================================
PAGE DOTS
==========================================================*/

.page-nav{
  position:fixed;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.page-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--muted);
  transition:background 250ms ease, transform 250ms ease;
}

.page-dot.is-active{
  background:var(--white);
  transform:scale(1.4);
}

/*==========================================================
WRAP
==========================================================*/

.wrap{
  width:100%;
  max-width:1600px;
  margin:0 auto;
  position:relative;
  z-index:1;
}

/*==========================================================
SITE HEADER / NAV
==========================================================*/

.site-header{
  height:88px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0;
  border-bottom:1px solid var(--line);
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100vw;
  z-index:30;
  background:rgba(2,8,23,0.72);
  backdrop-filter:blur(18px);
}

.nav-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  height:100%;
  padding:0 10vw;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--white);
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-size:27px;
  white-space:nowrap;
}

.brand img{ width:60px; height:60px; border-radius:50%; }

.site-nav{
  display:flex;
  align-items:center;
  gap:21px;
  height:100%;
}

.nav-link{
  color:var(--muted);
  font-size:12px;
  letter-spacing:0.18em;
  text-transform:uppercase;
  transition:color 220ms ease;
  display:flex;
  align-items:center;
  height:100%;
}

.nav-link:hover,
.nav-link:focus-visible{
  color:var(--white);
}

/*==========================================================
BUTTONS
==========================================================*/

.button{
  border:1px solid rgba(255,255,255,0.12);
  border-radius:999px;
  background:linear-gradient(135deg, rgba(56,189,248,0.12), rgba(255,255,255,0.04));
  color:var(--white);
  padding:13px 20px;
  cursor:pointer;
  transition:transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16);
}

.button:hover,
.button:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 16px 35px rgba(56,189,248,0.16);
  border-color:rgba(56,189,248,0.32);
}

.button-small{ padding:10px 16px; font-size:12px; }

.actions{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}

/*==========================================================
PAGE SHELL
Every <page>-page uses this base layout container. Pages
override --reading-width / --page-* tokens in their own
:root, and consume a layout primitive (below) for their
hero/grid sections.
==========================================================*/

.page{
  width:min(100%, var(--page-max-width));
  margin-inline:auto;
  padding:
    var(--page-padding-top)
    var(--page-padding-inline)
    var(--page-padding-bottom);
}

.page-content{
  max-width:var(--reading-width);
  margin-inline:auto;
}

.page-content.centered{
  max-width:900px;
  margin-inline:auto;
  text-align:center;
}

/*==========================================================
TYPOGRAPHY
==========================================================*/

h1{
  font-size:var(--hero-title-size);
  line-height:var(--hero-line-height);
  margin-bottom:var(--space-after-h1);
}

h2{
  font-size:var(--section-title-size);
  line-height:var(--section-line-height);
  margin-bottom:var(--space-after-h2);
}

h3{
  font-size:var(--card-title-size);
  line-height:1.2;
  margin-bottom:var(--space-after-h3);
}

p{
  font-size:var(--body-size);
  line-height:var(--body-line-height);
  margin-bottom:var(--paragraph-gap);
}

p:last-child{
  margin-bottom:0;
}

.lede{
  font-size:var(--lead-size);
  max-width:var(--lead-width);
  line-height:var(--body-line-height);
  margin-bottom:var(--space-after-lede);
}

.scene-body{
  font-size:var(--body-size);
  line-height:var(--body-line-height);
  max-width:var(--paragraph-width);
  margin-bottom:var(--paragraph-gap);
}

.page-content .lede,
.page-content .scene-body{
    color: var(--muted);
}

.scene-body:last-child{
  margin-bottom:0;
}

/*==========================================================
FLOW
Vertical rhythm between stacked sections. One component,
one class, used by every page — no page-local aliases.
==========================================================*/

.content-section{
  margin-top:var(--space-before-section);
}

.content-section:first-of-type{
  margin-top:0;
}

/*==========================================================
LAYOUT PRIMITIVES
Structural, content-agnostic. Pages consume these instead of
hand-declaring grid-template-columns. Named by shape, not by
the page that first needed them, so a future page can reuse
the exact rhythm without knowing its origin.
==========================================================*/

.layout-60-40{
  display:grid;
  grid-template-columns:60% 40%;
  gap:var(--layout-gap);
  align-items:center;
}

.layout-40-60{
  display:grid;
  grid-template-columns:40% 60%;
  gap:var(--layout-gap);
  align-items:center;
}

.layout-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(var(--layout-grid-2-min),1fr));
  gap:var(--card-gap);
}

.layout-grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(var(--layout-grid-3-min),1fr));
  gap:var(--card-gap);
}

.layout-grid-4{
  display:grid;
  grid-template-columns:repeat(4,minmax(var(--layout-grid-4-min),1fr));
  gap:var(--card-gap);
}

.layout-centered{
  max-width:900px;
  margin-inline:auto;
  text-align:center;
}

/*==========================================================
CARD
Box treatment only — border, blur, hover-lift, hover-border,
hover-shadow. Pages add their own class alongside .glass-card
for content layout (icon position, text alignment, etc):
e.g. class="glass-card feature-item"
==========================================================*/

.glass-card{
  padding:var(--card-padding);
  border-radius:var(--card-radius);
  border:var(--card-border);
  background:rgba(255,255,255,.03);
  backdrop-filter:blur(14px);
  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.glass-card:hover{
  transform:translateY(-4px);
  background:rgba(255,255,255,.05);
  border-color:rgba(56,189,248,.35);
  box-shadow:0 18px 40px rgba(0,0,0,.30);
}

.glass-card h3{
  margin-bottom:var(--space-after-h3);
}

.glass-card p{
  margin:0;
  color:var(--muted);
}

/*==========================================================
HELPERS
Generic, content-agnostic utilities usable on any page.
==========================================================*/

.center{ text-align:center; }
.left{ text-align:left; }
.right{ text-align:right; }
.hidden{ display:none; }

.fade-up{
  opacity:0;
  transform:translateY(30px);
  transition:
    opacity .6s ease,
    transform .6s ease;
}

.fade-up.is-visible{
  opacity:1;
  transform:none;
}

/*==========================================================
MODAL / DIALOG
==========================================================*/

dialog{
  width:min(var(--dialog-width),92vw);
  max-height:90vh;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:28px;
  background:#0D1724;
  color:var(--white);
  box-shadow:var(--shadow);
}

dialog::backdrop{
  background:rgba(2,6,20,.78);
  backdrop-filter:blur(10px);
}

dialog h2{
  font-size:30px;
  margin:0 0 12px;
}

dialog p:not(.eyebrow){
  color:var(--muted);
  line-height:1.75;
}

#early-access{
  width:min(640px,92vw);
  min-height:200px;
  padding:48px;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  color:var(--muted);
  font-family:"DM Mono",monospace;
  font-size:11px;
  letter-spacing:.24em;
  text-transform:uppercase;
}

.eyebrow i{
  width:8px;
  height:8px;
  border:1px solid currentColor;
  display:inline-block;
  transform:rotate(35deg);
}

.eyebrow.cyan{ color:var(--cyan); }
.eyebrow.purple{ color:var(--purple); }
.eyebrow.mint{ color:#34d399; }
.eyebrow.orange{ color:#ff9b45; }

/*==========================================================
HUB SECTION (FOOTER)
==========================================================*/

.hub-section{
  position:relative;
  padding:40px 0 80px;
  margin-top:100px;
  width:100%;
  border-top:none;
}

.hub-section::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:var(--line);
}

.hub-container{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:96px;
  width:100%;
}

.hub-branding{
  width:400px;
  flex:0 0 400px;
  padding:0;
}

.hub-branding .brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 24px;
  font-size:24px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.hub-branding .brand img{
  width:44px;
  height:44px;
  flex-shrink:0;
}

.hub-branding .brand span{
  line-height:1;
}

.hub-branding p{
  margin:0;
  max-width:380px;
  font-size:16px;
  line-height:1.75;
  color:var(--white);
}

.hub-branding p + p{
  margin-top:22px;
}

.hub-spoke{
  flex:1;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:72px;
  margin:0;
  padding:0;
}

.hub-column{
  display:flex;
  flex-direction:column;
  min-width:170px;
}

.hub-column h3{
  margin:0 0 24px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--white);
  line-height:1.2;
}

.hub-column ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hub-column li{
  margin:0;
}

.hub-column a{
  display:inline-block;
  color:var(--muted);
  font-size:15px;
  line-height:1.6;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s ease;
}

.hub-column a:hover{
  color:var(--white);
}

/*==========================================================
RESPONSIVE
==========================================================*/

@media (max-width:1100px){

  .hub-container{
    flex-direction:column;
    gap:56px;
  }

  .hub-branding{
    width:100%;
    flex:0 0 auto;
  }

  .hub-branding p{
    max-width:100%;
  }

  .hub-spoke{
    width:100%;
    flex-wrap:wrap;
    gap:48px;
    justify-content:flex-start;
  }

  .hub-column{
    min-width:180px;
  }

}

@media (max-width:992px){

  .page-content{
    text-align:center;
  }

  .lede,
  .scene-body{
    margin-inline:auto;
  }

  .layout-60-40,
  .layout-40-60{
    grid-template-columns:1fr;
  }

  .layout-grid-2,
  .layout-grid-3,
  .layout-grid-4{
    grid-template-columns:1fr;
  }

}

@media (max-width:940px){

  .site-nav{
    gap:16px;
  }

  .nav-link{
    font-size:11px;
  }

}

@media (max-width:768px){

  .page{
    padding-top:100px;
    padding-inline:24px;
  }

}

@media (max-width:720px){

  .site-header{
    height:auto;
    padding:8px 0;
  }

  .nav-container{
    flex-direction:column;
    gap:8px;
    padding:8px 16px;
  }

  .brand{
    padding:8px 0;
  }

  .site-nav{
    gap:12px;
    padding:8px 0;
    flex-wrap:wrap;
    justify-content:center;
  }

}

@media (max-width:480px){

  .page{
    padding-top:72px;
    padding-inline:24px;
  }

}

.modal-close{

    position:absolute;

    top:24px;

    right:24px;

    width:40px;

    height:40px;

    display:flex;

    align-items:center;

    justify-content:center;

    border:none;

    background:transparent;

    color:var(--white);

    font-size:30px;

    line-height:1;

    cursor:pointer;

    transition:.2s ease;

}

.modal-close:hover{

    opacity:.75;

}
/*==========================================================
END OF CORE
==========================================================*/
