/* ═══════════════════════════════════════════
   WINK Messenger - website stylesheet
   Palette mirrors the app's WinkColors
   (black Luna-style chrome, blue/green accents)
   ═══════════════════════════════════════════ */

:root {
  --chrome-top: #2b2b2e;
  --chrome-bottom: #0c0c0d;
  --chrome-border: #000000;
  --background: #17171a;
  --panel: #1f1f23;
  --panel-alt: #26262b;
  --divider: #34343a;
  --text-primary: #f2f2f5;
  --text-secondary: #a0a0aa;
  --accent-blue: #4da3ff;
  --accent-green: #3ddc84;
  --online: #3ddc84;
  --away: #ffc24d;
  --busy: #ff5c5c;
  --offline: #6b6b75;
  --name-rose: #e85d75;
  --name-violet: #b48dff;
  --name-teal: #5dd8d8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Tahoma, Verdana, 'Segoe UI', Geneva, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
}

/* ─────────── Top bar: classic toolbar look ─────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--chrome-top);
  border-bottom: 1px solid var(--chrome-border);
  /* light top edge + dark seam, like an old raised toolbar */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.5);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
/* logo art is a horizontal band centered in a square transparent PNG -
   a 2:1 cover crop isolates the eye + wink mark */
.logo-eye {
  width: 58px;
  height: 28px;
  object-fit: cover;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
/* menu items: flat until hovered, then a raised bevel appears
   (Office 97 toolbar style); pressed-in while clicked */
.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: 0;
}
.nav-links a:hover {
  background: #33333a;
  border-color: #55555e #101012 #101012 #55555e;
}
.nav-links a:active {
  background: #141417;
  border-color: #101012 #55555e #55555e #101012;
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  background: var(--background);
  padding: 80px 20px 100px;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-logo {
  width: 190px;
  height: auto;
  margin-bottom: 26px;
}
.hero-text h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.blink { animation: blink 1s steps(1) infinite; color: var(--accent-green); }
@keyframes blink { 50% { opacity: 0; } }
.tagline {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 460px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

/* Buttons - flat */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.6);
  cursor: pointer;
  color: #fff;
  transition: filter .15s ease;
}
.btn:active { box-shadow: inset 1px 1px 3px rgba(0,0,0,.4); }
.btn-primary {
  background: var(--accent-green);
  color: #06281a;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--panel-alt);
  color: var(--text-primary);
  border-color: var(--divider);
}
.btn-secondary:hover { filter: brightness(1.15); }
.btn-small { padding: 7px 18px; font-size: 12px;
  background: var(--accent-blue);
  color: #04182e;
}
.btn-icon { font-size: 15px; }


/* status dots */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.35);
  vertical-align: middle;
}
.status-dot.online { background: var(--online); }
.status-dot.away { background: var(--away); }
.status-dot.busy { background: var(--busy); }
.status-dot.invisible { background: var(--offline); }

/* ─────────── Messenger window ─────────── */
.messenger-wrap { position: relative; }
.messenger-window {
  position: relative;
  z-index: 2;
  background: #1a1a1d;
  border-radius: 12px;
  border: 1px solid var(--chrome-border);
  box-shadow: 0 16px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  overflow: hidden;
  font-size: 13px;
}
/* macOS-style window chrome, matching the real WINK app */
.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: #202023;
  border-bottom: 1px solid #000;
}
.traffic { display: flex; gap: 7px; }
.traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5f5f64;
}
.mac-title { font-weight: bold; font-size: 13px; color: var(--text-primary); }
.messenger-window.nudging { animation: nudge .45s linear; }
@keyframes nudge {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-7px,3px); }
  20% { transform: translate(6px,-4px); }
  30% { transform: translate(-6px,-3px); }
  40% { transform: translate(7px,4px); }
  50% { transform: translate(-5px,2px); }
  60% { transform: translate(5px,-3px); }
  70% { transform: translate(-6px,4px); }
  80% { transform: translate(4px,-2px); }
  90% { transform: translate(-3px,1px); }
}
.titlebar-icon {
  width: 32px;
  height: 15px;
  object-fit: cover;
  flex: none;
}
.tb-btn {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 18px;
  font-size: 10px;
  font-weight: bold;
  color: var(--text-primary);
  background: #2c2c32;
  border: 1px solid #000;
  border-radius: 3px;
  cursor: default;
}
.tb-close { background: #c62f2f; color: #fff; }
.chat-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-secondary);
  background: #2a2a2f;
  border: 1px solid var(--divider);
  border-radius: 6px;
}
.chat-avatar.small { width: 34px; height: 34px; font-size: 12px; }
.chat-body {
  height: 230px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.msg-row { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 4px; }
.msg-row.me { align-items: flex-end; }
.bubble {
  background: #28282c;
  color: var(--text-primary);
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 13px;
  line-height: 1.45;
}
.msg-row.me .bubble { background: #1e3a5c; }
.msg-time { font-size: 10.5px; color: #8a8a92; margin: 4px 4px 8px; }
.chat-msg.system {
  text-align: center;
  color: var(--text-secondary);
  font-size: 11px;
  font-style: italic;
  margin: 4px 0 8px;
}
.chat-typing i { font-size: 11px; color: var(--text-secondary); }
.chat-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-top: 1px solid #2c2c30;
}
.chat-inputbar input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  background: none;
  border: none;
  outline: none;
}
.chat-inputbar input::placeholder { color: var(--offline); }
.icon-btn {
  background: none;
  border: none;
  color: #9a9aa2;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.icon-btn:hover { color: var(--text-primary); }
.icon-btn.send { color: var(--accent-blue); font-size: 18px; }
.icon-btn svg { display: block; }
.window-shadow {
  position: absolute;
  inset: 14px -10px -14px 10px;
  background: rgba(0,0,0,.5);
  border-radius: 10px;
  filter: blur(14px);
  z-index: 1;
}

/* ─────────── Marquee ─────────── */
.marquee-strip {
  background: var(--chrome-top);
  color: var(--accent-green);
  overflow: hidden;
  padding: 11px 0;
  border-top: 1px solid var(--chrome-border);
  border-bottom: 1px solid var(--chrome-border);
}
.marquee-track {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─────────── Features ─────────── */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 20px;
  text-align: center;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px);
  color: var(--text-primary);
  margin-bottom: 50px;
  line-height: 1.2;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
/* each feature is a little window, same chrome as the messenger mockup */
.feature-window {
  background: var(--panel);
  border: 1px solid var(--chrome-border);
  border-radius: 6px 6px 3px 3px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  font-size: 13px;
}
.feature-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chrome-top);
  border-bottom: 1px solid var(--chrome-border);
  padding: 6px 8px 6px 10px;
  font-weight: bold;
  font-size: 12px;
  color: var(--text-primary);
}
.feature-glyph {
  color: var(--accent-blue);
  font-size: 11px;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}
.feature-tb-btns { display: flex; gap: 3px; margin-left: auto; }
.feature-body {
  padding: 13px 12px 15px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--panel);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.04);
}

/* ─────────── Nostalgia section ─────────── */
.nostalgia {
  background: var(--panel);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 90px 20px;
}
.nostalgia-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.section-title-left {
  font-size: clamp(24px, 3.6vw, 34px);
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}
.nostalgia-text p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 22px; max-width: 460px; }
.nostalgia-text p b { color: var(--text-primary); }
.status-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
/* classic raised/sunken bevel buttons, Win9x style */
.status-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-primary);
  padding: 6px 14px;
  background: var(--panel-alt);
  border: 1px solid;
  border-color: #55555e #101012 #101012 #55555e;
  border-radius: 0;
  cursor: pointer;
}
.status-option:hover { background: #2c2c32; }
.status-option:active,
.status-option.selected {
  border-color: #101012 #55555e #55555e #101012;
  background: #141417;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,.6);
}
.status-caption { font-size: 13px; color: var(--text-secondary); }
.status-caption b { color: var(--accent-blue); }

.buddy-list-window {
  background: #1a1a1d;
  border: 1px solid var(--chrome-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  font-size: 13px;
  max-width: 380px;
  justify-self: center;
  width: 100%;
}
.buddy-me {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--divider);
}
.buddy-me-name { font-weight: bold; color: var(--text-primary); }
.buddy-me-status { font-size: 11px; color: var(--text-secondary); font-style: italic; }
.buddy-group {
  padding: 8px 12px 5px;
  font-size: 11px;
  font-weight: bold;
  color: var(--accent-green);
  background: var(--panel);
}
.buddy {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--background);
  font-size: 12.5px;
  cursor: default;
  min-width: 0;
}
.buddy:hover { background: var(--panel-alt); }
.buddy-name { font-weight: bold; flex: none; }
.c-blue { color: var(--accent-blue); }
.c-violet { color: var(--name-violet); }
.c-teal { color: var(--name-teal); }
.c-rose { color: var(--name-rose); }
.buddy i { color: var(--offline); font-size: 11px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─────────── Download page ─────────── */
.download-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 100px;
  text-align: center;
}
.download-page-logo { width: 150px; height: auto; margin-bottom: 30px; }
.download-page h1 { font-size: clamp(28px, 4vw, 40px); color: var(--text-primary); margin-bottom: 10px; }
.download-page-sub { font-size: 15px; color: var(--text-secondary); margin-bottom: 44px; }
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}
.platform-window {
  background: var(--panel);
  border: 1px solid var(--chrome-border);
  border-radius: 6px 6px 3px 3px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
  text-align: left;
}
.platform-body { padding: 20px 16px 18px; text-align: center; box-shadow: inset 1px 1px 0 rgba(255,255,255,.04); }
.platform-req { font-size: 12px; color: var(--text-secondary); margin-bottom: 18px; }
.platform-file { font-size: 11.5px; color: var(--offline); margin-top: 12px; font-family: 'Courier New', monospace; }
.download-page-note { font-size: 13px; color: var(--text-secondary); }
.download-page-note a { color: var(--accent-blue); }

/* ─────────── Footer ─────────── */
.footer {
  background: #101013;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
  padding: 60px 20px 34px;
}
.footer-inner { max-width: 1080px; margin: 0 auto; text-align: center; }
.footer-logo-img { width: 130px; height: auto; margin-bottom: 16px; opacity: .95; }
.footer-tagline { font-size: 13px; line-height: 1.65; margin-bottom: 28px; }
.footer-copy { font-size: 12px; color: var(--offline); }

/* ─────────── Responsive ─────────── */
@media (max-width: 860px) {
  .hero-inner, .nostalgia-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 20px 70px; }
  .nav-links a { margin-left: 14px; font-size: 12px; }
  .buddy-list-window { justify-self: stretch; max-width: none; }
}
