/* ============================================================
   PeakTock Landing Page
   ============================================================ */

:root {
  --bg-deep: #05080A;
  --bg-forest: #0D1F22;
  --bg-mid: #1C3D42;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-divider: rgba(255, 255, 255, 0.06);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.48);
  --text-tertiary: rgba(255, 255, 255, 0.25);
  --accent-teal: #38B2AC;
  --accent-teal-vivid: #6FFFE9;
}

/* --- Reset --- */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Background --- */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 75% 45%, rgba(28, 61, 66, 0.65) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 20% 70%, rgba(13, 31, 34, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-forest) 55%, var(--bg-deep) 100%);
  z-index: -1;
  pointer-events: none;
}

.mono {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 56px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0;
}

/* ============================================================
   LEFT COLUMN
   ============================================================ */

.left {
  display: flex;
  flex-direction: column;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 36px;
}

.logo-img {
  width: 44px;
  height: 44px;
}

.logo-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}

.beta-chip {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-bottom: 20px;
  align-self: flex-start;
}

h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  white-space: nowrap;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.62) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.subhead {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
}

/* --- CTA Button --- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(56, 178, 172, 0.2) 0%, rgba(56, 178, 172, 0.06) 100%);
  border: 1px solid rgba(111, 255, 233, 0.25);
  border-radius: 8px;
  color: var(--accent-teal-vivid);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(111, 255, 233, 0.08);
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.2s ease, transform 0.08s ease;
}

.cta:hover {
  background: linear-gradient(135deg, rgba(111, 255, 233, 0.22) 0%, rgba(111, 255, 233, 0.08) 100%);
  border-color: rgba(111, 255, 233, 0.4);
  box-shadow: 0 0 32px rgba(111, 255, 233, 0.14);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(1px);
}

.cta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.platform {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ============================================================
   RIGHT COLUMN — SCREENSHOT
   ============================================================ */

.right {
  position: relative;
}

.right::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 80% 70% at 55% 55%, rgba(56, 178, 172, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.screenshot-img {
  width: 100%;
  display: block;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  filter: drop-shadow(0 32px 56px rgba(0, 0, 0, 0.65));
}

.glow-under {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 80px;
  background: radial-gradient(ellipse, rgba(56, 178, 172, 0.18) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--glass-divider);
  padding: 28px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 11px;
  color: var(--text-tertiary);
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

.footer-credit {
  color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */

@media (max-width: 860px) {
  .page {
    padding: 0 32px;
    min-height: unset;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 60px 0 48px;
  }

  h1 {
    white-space: normal;
    font-size: 36px;
  }

  .left {
    display: contents;
  }

  .beta-chip { order: 0; margin-bottom: 16px; justify-self: start; }
  .logo-row { order: 1; margin-bottom: 24px; }
  .logo-img { width: 32px; height: 32px; }
  .logo-name { font-size: 16px; }
  .right { order: 2; margin-bottom: 32px; }
  h1 { order: 3; margin-bottom: 12px; }
  .subhead { order: 4; margin-bottom: 32px; }
  .cta { order: 5; margin-bottom: 8px; justify-self: start; }
  .platform { order: 6; }

  .screenshot-img {
    transform: none;
    border-radius: 12px;
  }

  .footer {
    padding: 24px 32px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 520px) {
  .page {
    padding: 0 20px;
  }

  .split {
    padding: 48px 0 40px;
    gap: 32px;
  }

  .logo-row {
    margin-bottom: 28px;
  }

  h1 {
    font-size: 30px;
  }

  .subhead {
    font-size: 14px;
  }

  .cta {
    padding: 12px 24px;
    font-size: 14px;
    align-self: stretch;
    justify-content: center;
  }

  .right::before {
    display: none;
  }

  .footer {
    padding: 20px;
  }
}
