/* =====================================================
   FetchRU — Landing Page Styles
   Concept: the Rutgers WebReg "status board." Course
   sections flip from CLOSED to OPEN the way a departure
   board flips a flight from DELAYED to BOARDING — so the
   page borrows that split-flap, terminal-readout language:
   monospace indices, blinking "live" dots, dark boards.
   ===================================================== */

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

:root {
  /* ---- Color: Rutgers scarlet + ink, board-status accents ---- */
  --scarlet: #cc0632;
  --scarlet-dark: #93041f;
  --scarlet-light: #fbe4e9;
  --ink: #17130f;
  --ink-soft: #4a443b;
  --ink-faint: #8a8377;
  --paper: #f5f2ea;
  --paper-dim: #ece6d7;
  --line: #ddd5c1;
  --white: #ffffff;
  --green: #1c9d63;
  --green-dim: #e4f3ea;
  --amber: #d78c12;

  /* ---- Type ---- */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  /* ---- Shape / shadow ---- */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23, 19, 15, 0.07);
  --shadow-md: 0 10px 30px rgba(23, 19, 15, 0.09);
  --shadow-lg: 0 30px 70px rgba(23, 19, 15, 0.20);

  --container-w: 1160px;
}

/* ===================================================== */
/* Reset                                                  */
/* ===================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--scarlet);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 108px 0;
}

/* ===================================================== */
/* Shared bits: eyebrow tags, checklists                 */
/* ===================================================== */

.hero-badge,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
}

.hero-badge::before,
.section-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(28, 157, 99, 0.6);
  animation: pulse-dot 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(28, 157, 99, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(28, 157, 99, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 157, 99, 0); }
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;

  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list li:first-child {
  padding-top: 0;
}

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

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    color: #0F1117;
    cursor: help;
    user-select: none;
    transition: transform .2s ease;
}

.tooltip:hover {
    transform: scale(1.08);
}

.tooltip-box {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform:
        translateX(-50%)
        translateY(8px);
    width: 310px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #1A1F2B;
    border: 1px solid rgba(255,255,255,.08);
    color: #F3F4F6;
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s;
    z-index: 100;
}

.tooltip:hover .tooltip-box {
    opacity: 1;
    visibility: visible;
    transform:
        translateX(-50%)
        translateY(0);
}

.tooltip-box::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #1A1F2B;

}

/* ===================================================== */
/* Navbar                                                 */
/* ===================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease;
  position: relative;
}

nav a:hover {
  color: var(--scarlet);
}

nav a[href^="http"] {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 8px;
}

nav a[href^="http"]:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ===================================================== */
/* Buttons                                                */
/* ===================================================== */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--scarlet);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--scarlet-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===================================================== */
/* Hero                                                   */
/* ===================================================== */

.hero {
  padding: 88px 0 100px;
  background:
    radial-gradient(720px 420px at 82% -10%, var(--scarlet-light) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.hero-text h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 4.2vw, 3.6rem);
  font-weight: 700;
}

.hero-text h1 span {
  position: relative;
  color: var(--scarlet);
  white-space: nowrap;
}

.hero-text h1 span::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 0.32em;
  background: var(--scarlet-light);
  z-index: -1;
  border-radius: 2px;
}

.hero-text > p {
  margin-top: 20px;
  font-size: 17px;
  max-width: 46ch;
  color: var(--ink-soft);
}

.cta-container {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  padding: 18px 38px;
  border-radius: var(--radius-sm);
  background: var(--scarlet);
  color: var(--white);
  border: 1.5px solid transparent;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-install::after {
  font-family: var(--font-mono);
  font-size: 15px;
  transition: transform 0.15s ease;
}

.btn-install:hover {
  background: var(--scarlet-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-install:hover::after {
  transform: translateY(2px);
}

.btn-install:active {
  transform: translateY(0);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--scarlet-light) 0%, transparent 72%);
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 20em;
  height: 20em;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(23, 19, 15, 0.18));
}

/* ===================================================== */
/* Section header                                         */
/* ===================================================== */

.section-header {
  max-width: 620px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--scarlet);
}

.section-header > span::before {
  content: '//';
  color: var(--ink-faint);
}

.section-header h2 {
  margin-top: 14px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 700;
}

.section-header p {
  margin-top: 16px;
  font-size: 16px;
}

/* ===================================================== */
/* Feature grid                                           */
/* ===================================================== */

.feature-grid {
  counter-reset: feature;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  counter-increment: feature;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}

.feature-card::after {
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14.5px;
}

/* ===================================================== */
/* Showcase (Discord bot / Chrome extension)              */
/* ===================================================== */

.showcase {
  border-bottom: 1px solid var(--line);
}

.alt-section {
  background: var(--paper-dim);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 64px;
}

.showcase-grid.reverse {
  grid-template-columns: 1.05fr 0.95fr;
}

.showcase-grid.reverse .showcase-image {
  order: 1;
}

.showcase-grid.reverse .showcase-text {
  order: 2;
}

.showcase-text h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  font-weight: 700;
}

.showcase-text > p {
  margin-top: 16px;
  font-size: 15.5px;
  max-width: 50ch;
}

.showcase-text .feature-list {
  margin-top: 26px;
}

.showcase-image h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

/* ---- Browser window frame ---- */

.browser-frame {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.browser-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: linear-gradient(180deg, #26221b 0%, #17130f 100%);
}

.browser-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.browser-header span:nth-child(1) {
  background: #ff5f57;
}

.browser-header span:nth-child(2) {
  background: #febc2e;
}

.browser-header span:nth-child(3) {
  background: #28c840;
}

.browser-frame > img {
  width: 100%;
  display: block;
}

/* ---- Chrome extension popup + notification overlay ---- */

.popup-preview {
  position: relative;
}

.popup-image {
  width: 100%;
  display: block;
}

.notification-image {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 56%;
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px rgba(23, 19, 15, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transform: rotate(1.5deg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.popup-preview:hover .notification-image {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 20px 44px rgba(23, 19, 15, 0.4);
}

/* ===================================================== */
/* Timeline ("How it works" — split-flap board)           */
/* ===================================================== */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px 26px;
  text-align: left;
}

.timeline-number {
  width: 52px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  position: relative;
  margin-bottom: 20px;
}

.timeline-number::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  background: rgba(245, 242, 234, 0.25);
}

.timeline-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 14.5px;
}

/* ===================================================== */
/* Install                                               */
/* ===================================================== */

.install-section {
  padding-top: 0;
}

.install-card {
  background: var(--ink);
  border-radius: 28px;
  padding: 72px 56px;
  text-align: center;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.install-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 320px at 50% -20%, rgba(204, 6, 50, 0.35), transparent 65%);
  pointer-events: none;
}

.install-card > * {
  position: relative;
}

.install-card .section-tag {
  background: var(--scarlet);
  color: var(--white);
}

.install-card .section-tag::before {
  background: var(--white);
}

.install-card h2 {
  margin-top: 16px;
  color: var(--paper);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

.install-card > p {
  margin: 18px auto 0;
  max-width: 56ch;
  color: rgba(245, 242, 234, 0.68);
  font-size: 16px;
}

.install-options {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.install-option {
  background: rgba(245, 242, 234, 0.05);
  border: 1px solid rgba(245, 242, 234, 0.14);
  border-radius: var(--radius-md);
  padding: 26px;
}

.install-option h3 {
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
}

.install-option p {
  margin-top: 8px;
  margin-bottom: 20px;
  color: rgba(245, 242, 234, 0.62);
  font-size: 14.5px;
}

.install-option .btn-secondary {
  background: transparent;
  border-color: rgba(245, 242, 234, 0.3);
  color: var(--paper);
}

.install-option .btn-secondary:hover {
  border-color: var(--paper);
}

.github-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 242, 234, 0.14);
}

.github-section h3 {
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
}

.github-section p {
  margin: 8px 0 20px;
  color: rgba(245, 242, 234, 0.62);
  font-size: 14.5px;
}

.github-section .btn-outline {
  border-color: rgba(245, 242, 234, 0.5);
  color: var(--paper);
}

.github-section .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ===================================================== */
/* Footer                                                 */
/* ===================================================== */

footer {
  background: var(--ink);
  color: rgba(245, 242, 234, 0.6);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--paper);
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-left > p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 14px;
  color: rgba(245, 242, 234, 0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.4);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14.5px;
  color: rgba(245, 242, 234, 0.7);
  padding: 6px 0;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 242, 234, 0.1);
  padding: 22px 0;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(245, 242, 234, 0.4);
  text-align: center;
}

/* ===================================================== */
/* Responsive                                             */
/* ===================================================== */

@media (max-width: 980px) {
  .hero-content,
  .showcase-grid,
  .showcase-grid.reverse {
    grid-template-columns: 1fr;
  }

  .showcase-grid.reverse .showcase-image,
  .showcase-grid.reverse .showcase-text {
    order: initial;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    width: 150px;
    height: 150px;
  }

  .feature-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  nav {
    gap: 18px;
  }

  nav a:not([href^="http"]) {
    display: none;
  }

  .cta-container {
    gap: 26px;
  }

  .feature-grid,
  .timeline,
  .install-options {
    grid-template-columns: 1fr;
  }

  .install-card {
    padding: 48px 26px;
  }

  .notification-image {
    width: 64%;
  }
}

/* ===================================================== */
/* Reduced motion                                         */
/* ===================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-badge::before,
  .section-tag::before {
    animation: none;
  }

  .btn,
  .feature-card,
  .notification-image {
    transition: none;
  }
}