/* src/styles.css */
:root {
  --bg: #f2f2ef;
  --text: #0d0d0d;
  --text-muted: #555;
  --accent: #ff3c00;
  --border: #0d0d0d26;
  --border-hover: #0d0d0d;
  --font-display: "Syne", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --grid-unit: 1px;
}

.noise-overlay {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

.wrapper {
  border-left: var(--grid-unit) solid var(--border);
  border-right: var(--grid-unit) solid var(--border);
  position: relative;
  background: var(--bg);
  max-width: 1440px;
  margin: 0 auto;
}

.crosshair {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  width: 15px;
  height: 15px;
}

.crosshair:before, .crosshair:after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.crosshair:before {
  width: 100%;
  height: 1px;
  top: 7px;
  left: 0;
}

.crosshair:after {
  width: 1px;
  height: 100%;
  top: 0;
  left: 7px;
}

.ch-tl {
  top: -7px;
  left: -7px;
}

.ch-tr {
  top: -7px;
  right: -7px;
}

.ch-bl {
  bottom: -7px;
  left: -7px;
}

.ch-br {
  bottom: -7px;
  right: -7px;
}

h1, h2, h3, .display-text {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  font-weight: 800;
  line-height: .95;
}

header {
  display: grid;
  grid-template-columns: 250px 1fr auto;
  border-bottom: var(--grid-unit) solid var(--border);
  position: sticky;
  backdrop-filter: blur(8px);
  z-index: 100;
  background: #f2f2efe6;
  top: 0;
}

.brand {
  border-right: var(--grid-unit) solid var(--border);
  display: flex;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -.05em;
  align-items:  center;
  gap: 12px;
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.logo-img {
  opacity: .85;
  width: auto;
  height: 16px;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.brand:hover .logo-img {
  transform: rotate(-5deg)scale(1.1);
}

.logo-mark {
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}

.brand:hover .logo-mark {
  transform: rotate(90deg);
}

.nav-center {
  display: flex;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-items:  center;
  padding: 1.5rem 2rem;
  font-size: .85rem;
}

.nav-actions {
  display: flex;
  border-left: var(--grid-unit) solid var(--border);
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  border-right: var(--grid-unit) solid var(--border);
  align-items:  center;
  padding: 1.5rem 2rem;
  transition: background .2s, color .2s;
  font-size: .85rem;
}

.nav-link:last-child {
  border-right: none;
}

.nav-link:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  border-bottom: var(--grid-unit) solid var(--border);
  min-height: 70vh;
}

.hero-main {
  display: flex;
  border-right: var(--grid-unit) solid var(--border);
  position: relative;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
}

.hero h1 {
  will-change: transform, opacity;
  margin-bottom: 2rem;
  font-size: clamp(3rem, 7vw, 7.5rem);
}

.hero-sub {
  color: var(--text-muted);
  max-width: 500px;
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero-data {
  display: flex;
  background: #0d0d0d05;
  flex-direction: column;
  padding: 0;
}

.data-header {
  border-bottom: var(--grid-unit) solid var(--border);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  padding: 1.5rem;
  font-size: .75rem;
}

.data-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.data-item {
  border-bottom: var(--grid-unit) solid var(--border);
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items:  start;
  gap: 16px;
  padding: 1.5rem;
  transition: background .3s;
  font-size: .85rem;
}

.data-item:hover {
  background: var(--text);
  color: var(--bg);
}

.data-item:hover .item-icon {
  color: var(--accent);
}

.item-icon {
  color: var(--accent);
  font-weight: bold;
}

.ticker-section {
  border-bottom: var(--grid-unit) solid var(--border);
  overflow: hidden;
  background: var(--text);
  color: var(--bg);
  position: relative;
  padding: 1.5rem 0;
}

.ticker-wrap {
  display: flex;
  animation: ticker 25s linear infinite;
  width: max-content;
}

.ticker-wrap span {
  font-family: var(--font-display);
  white-space: nowrap;
  text-transform: uppercase;
  display: flex;
  align-items:  center;
  padding: 0 2rem;
  font-size: 2rem;
}

.ticker-wrap span.sep {
  color: var(--accent);
  font-family: var(--font-mono);
  padding: 0;
  font-size: 1.5rem;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.section-header {
  border-bottom: var(--grid-unit) solid var(--border);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: flex;
  align-items:  center;
  gap: 1rem;
  padding: 2rem 4rem;
  font-size: .85rem;
}

.section-header:before {
  content: "";
  display: inline-block;
  background: var(--accent);
  width: 8px;
  height: 8px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: var(--grid-unit) solid var(--border);
}

.feature {
  border-right: var(--grid-unit) solid var(--border);
  position: relative;
  overflow: hidden;
  background: none;
  padding: 4rem;
  transition: all .4s cubic-bezier(.16,1,.3,1);
}

.feature:last-child {
  border-right: none;
}

.feature-num {
  color: var(--text-muted);
  display: block;
  margin-bottom: 3rem;
  transition: color .4s;
  font-size: .75rem;
}

.feature h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  transition: color .4s;
  font-size: 2rem;
}

.feature p {
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: color .4s;
  font-size: .95rem;
  line-height: 1.6;
}

.feature:before {
  content: "";
  position: absolute;
  background: var(--text);
  z-index: 1;
  height: 0%;
  transition: height .4s cubic-bezier(.16,1,.3,1);
  bottom: 0;
  left: 0;
  right: 0;
}

.feature:hover:before {
  height: 100%;
}

.feature:hover h3 {
  color: var(--bg);
}

.feature:hover p {
  color: #a0a0a0;
}

.feature:hover .feature-num {
  color: var(--accent);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.faq-item {
  border-bottom: var(--grid-unit) solid var(--border);
  background: var(--bg);
  transition: background .3s;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item.open {
  background: #e8e8e4;
}

.faq-question {
  cursor: pointer;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--text);
  position: relative;
  user-select: none;
  display: flex;
  text-align: left;
  background: none;
  border: none;
  justify-content: space-between;
  align-items:  center;
  width: 100%;
  padding: 2.5rem 4rem;
  transition: color .3s;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  display: flex;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  width: 32px;
  height: 32px;
  transition: all .3s;
  font-size: 1rem;
  font-weight: 400;
}

.faq-item.open .faq-icon {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: rotate(45deg);
}

.faq-answer {
  color: var(--text-muted);
  overflow: hidden;
  opacity: 0;
  max-width: 800px;
  max-height: 0;
  padding: 0 4rem;
  transition: max-height .4s cubic-bezier(.16,1,.3,1), opacity .3s, padding .3s;
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  opacity: 1;
  max-height: 300px;
  padding: 0 4rem 3rem;
}

footer {
  display: flex;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  border-top: var(--grid-unit) solid var(--border);
  justify-content: space-between;
  align-items:  center;
  padding: 4rem;
  font-size: .75rem;
}

.status-indicator {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.status-dot {
  animation: pulse 2s infinite;
  background: #00e676;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 10px #00e676;
}

@keyframes pulse {
  0% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: .5;
  }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

.cta-btn {
  display: inline-flex;
  font-family: var(--font-mono);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: var(--grid-unit) solid var(--border);
  cursor: pointer;
  align-items:  center;
  gap: 8px;
  padding: 1rem 2rem;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  font-size: .9rem;
  font-weight: 500;
}

.cta-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.cta-primary:hover {
  background: var(--text);
  border-color: var(--text);
}

.cta-demo {
  color: var(--text);
  background: none;
}

.cta-demo:hover {
  background: var(--text);
  color: var(--bg);
}

.cta-arrow {
  transition: transform .3s;
}

.cta-demo:hover .cta-arrow {
  transform: translateX(4px);
}

.nav-actions button.nav-link {
  font-family: var(--font-mono);
  cursor: pointer;
  border: none;
}

.reveal {
  opacity: 0;
  transition: all .8s cubic-bezier(.16,1,.3,1);
  transform: translateY(30px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

  .hero-main {
    border-right: none;
    border-bottom: var(--grid-unit) solid var(--border);
    padding: 4rem 2rem;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: none;
    border-bottom: var(--grid-unit) solid var(--border);
    padding: 3rem 2rem;
  }

  .feature:last-child {
    border-bottom: none;
  }

  .faq-question {
    padding: 2rem;
    font-size: 1.25rem;
  }

  .faq-answer {
    padding: 0 2rem;
  }

  .faq-item.open .faq-answer {
    padding: 0 2rem 2rem;
  }
}

@media (max-width: 768px) {
  header {
    grid-template-columns: 1fr auto;
  }

  .nav-center, .nav-link.sign-in {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  footer {
    flex-direction: column;
    align-items:  flex-start;
    gap: 2rem;
    padding: 2rem;
  }
}
