/* ============================================
   vibenotifications -- Landing Page Styles
   ============================================ */

/* --- Reset & Base --- */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fbbf24;
}

/* --- Layout --- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Hero --- */

.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__title span {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #a3a3a3;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* --- Install Block --- */

.install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 620px;
  margin: 0 auto 3rem;
  background: #161616;
  border: 1px solid #262626;
  border-radius: 10px;
  overflow: hidden;
}

.install__prompt {
  color: #737373;
  padding-left: 1.25rem;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
  font-size: 0.85rem;
  user-select: none;
  flex-shrink: 0;
}

.install__code {
  flex: 1;
  padding: 0.9rem 0.75rem;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
  font-size: 0.85rem;
  color: #e5e5e5;
  white-space: nowrap;
  overflow-x: auto;
}

.install__copy {
  flex-shrink: 0;
  background: none;
  border: none;
  border-left: 1px solid #262626;
  color: #737373;
  padding: 0.9rem 1rem;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  transition: color 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.install__copy:hover {
  color: #e5e5e5;
  background: #1e1e1e;
}

.install__copy.copied {
  color: #22c55e;
}

.install__copy-icon {
  width: 16px;
  height: 16px;
}

/* --- Terminal Mockup --- */

.terminal {
  max-width: 680px;
  margin: 0 auto;
  background: #161616;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal__titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #1a1a1a;
  border-bottom: 1px solid #262626;
}

.terminal__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: #525252;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-right: 2.25rem;
}

.terminal__body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.8;
}

.terminal__line {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.terminal__spinner {
  color: #f59e0b;
  margin-right: 0.5rem;
  animation: spin 1s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.terminal__tag {
  font-weight: 600;
  margin-right: 0.35rem;
  flex-shrink: 0;
}

.terminal__tag--stocks { color: #22c55e; }
.terminal__tag--github { color: #a78bfa; }
.terminal__tag--slack  { color: #38bdf8; }
.terminal__tag--email  { color: #fb923c; }
.terminal__tag--x      { color: #e5e5e5; }

.terminal__text {
  color: #a3a3a3;
}

.terminal__text--positive {
  color: #22c55e;
}

.terminal__text--time {
  color: #525252;
  margin-left: auto;
  padding-left: 1rem;
  flex-shrink: 0;
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #f59e0b;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* --- Section Headers --- */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f59e0b;
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header__subtitle {
  font-size: 1rem;
  color: #737373;
  margin-top: 0.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Features Grid --- */

.features {
  background: #0a0a0a;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #262626;
  border: 1px solid #262626;
  border-radius: 12px;
  overflow: hidden;
}

.feature {
  background: #111111;
  padding: 2rem 1.5rem;
  transition: background 0.2s ease;
}

.feature:hover {
  background: #161616;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.feature__icon--github {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

.feature__icon--slack {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
}

.feature__icon--x {
  background: rgba(229, 229, 229, 0.1);
  color: #e5e5e5;
}

.feature__icon--email {
  background: rgba(251, 146, 60, 0.12);
  color: #fb923c;
}

.feature__icon--stocks {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
}

.feature__icon--mcp {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.feature__name {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 0.4rem;
}

.feature__desc {
  font-size: 0.85rem;
  color: #737373;
  line-height: 1.5;
}

/* --- Surfaces --- */

.surfaces {
  background: #0a0a0a;
}

.surfaces__list {
  display: grid;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.surface {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.surface:hover {
  border-color: #303030;
  background: #141414;
}

.surface__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
}

.surface__content {
  flex: 1;
}

.surface__name {
  font-size: 1rem;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 0.25rem;
}

.surface__desc {
  font-size: 0.85rem;
  color: #737373;
  line-height: 1.5;
}

/* --- Footer --- */

.footer {
  border-top: 1px solid #1a1a1a;
  padding: 3rem 0;
  text-align: center;
}

.footer__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #737373;
  background: #161616;
  border: 1px solid #262626;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer__badge:hover {
  border-color: #404040;
  color: #a3a3a3;
}

.footer__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.footer__text {
  font-size: 0.8rem;
  color: #525252;
  margin-top: 1rem;
}

.footer__text a {
  color: #737373;
}

.footer__text a:hover {
  color: #a3a3a3;
}

/* --- Responsive --- */

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .install {
    flex-direction: column;
    align-items: stretch;
  }

  .install__prompt {
    padding: 0.75rem 1rem 0;
  }

  .install__code {
    padding: 0.5rem 1rem 0.75rem;
  }

  .install__copy {
    border-left: none;
    border-top: 1px solid #262626;
    justify-content: center;
  }

  .terminal__body {
    font-size: 0.72rem;
    padding: 1rem;
  }

  .terminal__text--time {
    display: none;
  }

  .surface {
    padding: 1.25rem;
  }
}

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

  .hero__title {
    font-size: 2.2rem;
  }

  .terminal__body {
    font-size: 0.68rem;
    overflow-x: auto;
  }
}
