@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400&display=swap');

:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;
  --border: 0 0% 15%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Söhne Breit';
  font-weight: 750;
  font-style: normal;
  src: url('fonts/sohne-breit-dreiviertelfett.woff2') format('woff2'),
       url('fonts/sohne-breit-dreiviertelfett.woff') format('woff');
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Söhne Breit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000;
  color: hsl(var(--foreground));
  line-height: 1.5;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

a:hover,
a:active {
  text-decoration-style: solid;
}

.container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.logo {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 15px 36px rgba(0, 0, 0, 0.45));
  display: block;
}

.company-name {
  font-family: 'Söhne Breit', 'Inter', sans-serif;
  font-size: 3.5rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

@media (max-width: 768px) {
  .logo {
    width: 150px;
    height: 150px;
  }
  
  .company-name {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 120px;
    height: 120px;
  }
  
  .company-name {
    font-size: 2rem;
  }
}

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


/* App container - full viewport with black background */
.app-container {
  --chin-bar-height: 30px;
  --chin-height: var(--chin-bar-height);
  --privacy-open-height: clamp(120px, 16.7vh, 240px);
  --privacy-open-max: clamp(320px, 75vh, 900px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 6px;
}

.app-container.privacy-open {
  --chin-height: var(--privacy-open-height);
  padding: 6px;
}

.app-container.privacy-open .chin-area {
  will-change: height;
}

/* Content area - main content with border radius */
.content-area {
  flex: 1;
  position: relative;
  background: hsl(var(--background));
  border-radius: 4.5px 4.5px 9px 9px;
  overflow: hidden;
}

/* Chin area - bottom section */
.chin-area {
  position: relative;
  z-index: 45; /* above .about-goo (40) so the goo bar never covers footer text */
  height: var(--chin-height);
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.app-container.privacy-opening .chin-area {
  transition: none;
  animation: chinPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-container.privacy-snapping .chin-area {
  transition-duration: 0.3s;
  transition-timing-function: cubic-bezier(0.36, 0.2, 0.2, 1);
}

.app-container.privacy-resizing .chin-area {
  transition: none;
}


/* Copyright text */
.copyright-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
}

.chin-area .copyright-container {
  height: var(--chin-bar-height);
  flex: 0 0 var(--chin-bar-height);
}

.copyright-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.copyright-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.copyright-text {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: hsl(var(--muted-foreground));
  opacity: 0.7;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.copyright-contact {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  opacity: 0.7;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.copyright-contact:hover,
.copyright-contact:active {
  opacity: 1;
  text-decoration: underline;
}

.footer-sep {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: hsl(var(--muted-foreground));
  opacity: 0.3;
  user-select: none;
  -webkit-user-select: none;
}

/* About toggletip */
.about-toggle {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.about-toggle:hover,
.about-toggle[aria-expanded="true"] {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Goo layer: a WebGL canvas rendering the frame bar, card, and stem as
   signed distance fields fused with a smooth-minimum — the liquid
   meniscus is computed analytically in the shader, with no browser
   filter or blend involved, so every engine renders identical output */
.about-goo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(520px, 100vh);
  z-index: 40;
  pointer-events: none;
  display: block;
}

/* If WebGL is unavailable the goo canvas stays empty; give the text
   layer its own solid card so the copy remains readable */
.about-tooltip.about-tooltip-solid {
  background: #000;
  border-radius: 12px;
}

/* Unfiltered text layer, geometry-matched to the goo card by JS */
.about-tooltip {
  position: fixed;
  z-index: 50;
  width: min(340px, calc(100vw - 24px));
  padding: 15px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  user-select: text;
  -webkit-user-select: text;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0s linear 0.14s;
}

.about-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease 0.24s, transform 0.25s ease 0.24s, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
  .about-tooltip {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }
}

.about-tooltip p + p {
  margin-top: 8px;
}

.about-tooltip .about-tagline {
  color: hsl(var(--foreground));
}

.privacy-drawer {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  transform-origin: bottom;
}

.app-container.privacy-open .privacy-drawer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.app-container.privacy-opening .privacy-drawer {
  transition: none;
  animation: drawerPop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-container.privacy-snapping .privacy-drawer {
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.36, 0.2, 0.2, 1);
}

.app-container.privacy-resizing .privacy-drawer {
  transition: none;
}

.privacy-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 12px 9px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  user-select: text;
}

.privacy-content {
  width: 100%;
}

.privacy-scroll * {
  user-select: text;
}

.privacy-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.privacy-logo {
  width: 22px;
  height: 22px;
}

.privacy-title {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.privacy-scroll .last-updated {
  color: hsl(var(--muted-foreground));
  opacity: 0.8;
  margin-bottom: 12px;
}

.privacy-scroll h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 16px;
  margin-bottom: 6px;
}

.privacy-scroll p {
  margin-bottom: 8px;
}

.privacy-scroll ul {
  padding-left: 16px;
  margin-bottom: 8px;
}

.privacy-scroll li {
  margin-bottom: 4px;
}

.privacy-scroll a {
  color: hsl(var(--foreground));
  opacity: 0.85;
}

.privacy-scroll a:hover {
  opacity: 1;
}

@media (min-width: 900px) {
  .privacy-scroll {
    padding-left: 24px;
    padding-right: 24px;
  }

  .privacy-content {
    max-width: 740px;
    margin: 0 auto;
  }
}

@keyframes chinPop {
  0% {
    height: var(--chin-bar-height);
  }
  60% {
    height: calc(var(--privacy-open-height) + 18px);
  }
  100% {
    height: var(--privacy-open-height);
  }
}

@keyframes drawerPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scaleY(0.98);
  }
  65% {
    opacity: 1;
    transform: translateY(-6px) scaleY(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

/* Gradient Canvas Styles */
.gradient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}

/* Ensure logo stays on top */
.container {
  position: relative;
  z-index: 10;
}

.logo-wrapper {
  display: inline-block;
  position: relative;
  pointer-events: none;
}
