
/**Global variables & design tokens**/




/* Per-theme CSS is now driven entirely by CSS custom-property overrides
   defined in styles/theme-variables.css.  If you wish to create a new look,
   simply add new variable values inside a `.your-theme-name-theme` block in
   that file – no additional imports necessary. */



/**BASE STYLES**/
html {
    overscroll-behavior: none;
}
/* --------------------------------------------------
   Mobile social links (icons row)
-------------------------------------------------- */
@media (max-width: 600px) {
  .mobile-nav .social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 8px 0;
  }
  .mobile-nav .social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
  }
  .mobile-nav .social-links a:hover {
    opacity: 0.8;
  }
}

body {
    font-family: "trade-gothic-next", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 11pt;
    line-height: 14pt;
    letter-spacing: 0.3px;
    color: var(--color-text);
    background: transparent; /* gradient rendered by fixed pseudo-element */
    margin: 0;
    padding: 0;
    overscroll-behavior: none;
}

/* Global link styles */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 0.08em;
  text-decoration-skip-ink: auto;
}
a:hover,
a:focus-visible {
  color: var(--prompt-link-hover);
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Fixed, full-viewport gradient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--body-bg);
  z-index: 0;
  pointer-events: none;
}

h1, h2 {
font-family: freight-text-pro, serif;
  font-weight: 400;
}

/* Generic sections */
.section {
  padding: 60px 20px;
  background: transparent;
}
.section, .page-footer { position: relative; z-index: 1; }
.section + .section { border-top: 1px solid rgba(255,255,255,0.1); }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.section h2 {     
    margin: 0;
    font-size: 30px;
    padding-bottom: 16px;
    font-weight: 400;
  }
.section-lead { margin: 0 0 24px; opacity: 0.85; }

/* Video block */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000; /* placeholder while loading */
  border-radius: 6px;
  overflow: hidden; /* clip corners for iframe/video */
}
.video-wrap iframe,
.video-wrap .video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 6px;
}
.download-card {
  padding: 16px;
  border-radius: 2px;
  background: var(--color-glass-dark);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.12);
}
.download-card h3 { margin: 0 0 6px; font-size: 16px; }
.download-card p { margin: 0 0 12px; opacity: 0.9; }

hr {
    border: 0.5pt solid;
}

p {
    margin:0;
}

ul {
    padding-left: 10px;
}


ol {
    padding-left: 28px;
}

/**ANIMATIONS**/
.thinking {
    width: 100%;
    margin: 0 !important;
    padding:0 !important;
    position: relative;
}

.thinking.sending {
    position: relative;
}

.thinking.sending::before {
    content: '';
    z-index: 80; /* Makes sure it's in the background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(90deg, #ffdb00, #a8d70b, #ffdb00);
    background-size: 200% 100%;
    animation: lightning 1.6s infinite;
}

@keyframes lightning {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 95, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 20px 10px rgba(220, 95, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 95, 0, 0);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(0);
        opacity: 0;
    }
    to {
        transform: translateX(100%);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}


#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40; /* Push it behind all interactive elements */
    pointer-events: none; /* Prevent it from blocking clicks */
    padding:0;
    margin:0;
}
#glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.4;
    transition: opacity 0.5s ease-in-out;
    backdrop-filter: saturate(110%) blur(4px);
    -webkit-backdrop-filter: saturate(110%) blur(4px);
    background: rgba(255, 255, 255, 0.01);
    z-index: 50; /* Above canvas but below UI overlays */
}
#glass-overlay.visible {
    opacity: 1;
}


.credit {
    font-size: 12px;
    margin: 0 auto;
    color: var(--credit-color);
}


  /* Landing page layout */
  /*
  body { margin: 0; background: #dbdbdb; }
  */
  .landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 16px 0;
    width: 100%;
    box-sizing: border-box;
  }
  .text-content {
    padding: 16px;
    box-sizing: border-box;
    color: var(--color-text);
    text-align: center;
    width: 100%;
    max-width:1200px;
    margin: 8px auto 0;
  }
  .text-content h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -0.5px;
    padding-bottom:16px;
    line-height:0.8;
  }
  .text-content .tagline {
    margin: 0 0 8px;
    font-size: 14px;
    opacity: 0.9;
  }
  .text-content .credit {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--credit-color);
  }
    
    /*
    #bar.card { 
    order: 0;
    flex: 1 0 auto;
    background: transparent;
    border-radius: 420px;
    overflow: hidden;
    position: relative;
    height: 100%;
    aspect-ratio: 1 / 1;   
    margin: 0 auto;
    }
    */

#bar.card {
 order: 0;
    flex: 1 0 auto;
    background: transparent;
    overflow: hidden;
    transform: translateX(-50%);
    width: 100%;
    height: 80dvh;
    border-radius: 80%;
    pointer-events: none;}

    #bar.card #canvas-container {
      position: absolute;
      inset: 0;
      border-radius: 0;
      overflow: hidden;   /* keep animation inside rounded card */
    }

/* --------------------------------------------------
   Fixed header / footer navigation (desktop)
-------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  box-sizing: border-box;
  z-index: 100;
  pointer-events: none; /* keep it above canvas while allowing child links to be clickable */
}

.site-header .logo {
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 1px;
  text-decoration: none;
  pointer-events: auto; /* re-enable for link */
  font-family: "degular-mono", monospace;
}

.desktop-nav {
  display: flex;
  gap: 12px;
  pointer-events: auto;
}

.nav-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 999px;

  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s ease-out;
}

.download-card .nav-btn {

  background: #000000;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.nav-btn a{
  color: #ffffff;
}



/* Footer (desktop) */
.site-footer {
  display: none; /* replaced by page-footer at bottom */
}

/* --------------------------------------------------
   Mobile stacked nav / footer
-------------------------------------------------- */
.mobile-nav {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  display: none; /* hidden by default, enabled in media query */
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 100;
  text-align: center;
}

.mobile-nav .logo {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}
/* Logo image and title */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.logo img {
  height: 1em;
  width: auto;
}

/* Logo subtitle below title */
.logo-subline {
  display: block;
  margin-top: 0.2em;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text);
  padding:8px 0;

}

.footer-copy {
  font-size: 12px;
  color: #ffffff;
}

/* --------------------------------------------------
   Responsive rules
-------------------------------------------------- */

    /* Override chat UI initial-position to keep card static */
    #bar.initial-position { top: auto !important; transform: none !important; }
    /* Layer ordering */
    /* Dotmatrix canvas animation */
    #canvas-container { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
    /* Frosted glass overlay */
    #glass-overlay.visible { position: fixed; inset: 0; backdrop-filter: saturate(180%) blur(6px); -webkit-backdrop-filter: saturate(180%) blur(6px); z-index: 2; }
    .landing, .text-content, #bar.card { position: relative; z-index: 3; }
    #menu-button, #sliding-menu { z-index: 4; }
    /* Mobile hero stacking handled in rules above */
  @media (max-width: 600px) {
    #bar.card{
      height: 45vh;
    }
  }

/* Minimal theme: use dark text for logo */
body.minimal-theme .site-header .logo,
body.minimal-theme .mobile-nav .logo,
body.minimal-theme .nav-btn,
body.minimal-theme .site-footer,
body.minimal-theme .footer-copy {
  color: var(--color-text);
}

/* Cool theme: header text and logo black */
body.cool-theme .site-header .logo { color: #000000; }
body.cool-theme .site-header .logo img { filter: brightness(0) saturate(100%); }
body.cool-theme .desktop-nav .nav-btn { color: #000000; }

/* Minimal theme: card content is white */
body.minimal-theme .download-card { color: #ffffff; }
body.minimal-theme .download-card .nav-btn { color: #ffffff; }

/* Page footer at bottom */
.page-footer {
  padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.page-footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-footer .links { display: flex; gap: 8px; }
.page-footer .copy { font-size: 12px; opacity: 0.9; }

/* (removed modal styles) */


.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.brand a{
  color: #fff;
  text-decoration: none;
}