/* ==========================================================================
   Westmar LLC — design tokens
   `--accent` is the one knob the design exposes.
   Alternates from the design: #4ade80, #fbbf24, #a78bfa
   ========================================================================== */

:root {
  --accent: #7cc4ff;
  --accent-bright: #b3dcff;

  --bg: #0b0d10;
  --surface: #12151a;
  --surface-alt: #0e1116;

  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --text-dim: #6b7280;

  --line: #1f242b;
  --line-strong: #2a2f36;
  --line-hover: #2f3742;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --section-gap: 110px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { text-wrap: balance; }

.msr {
  font-family: 'Material Symbols Rounded';
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24;
}

.muted { color: var(--text-dim); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 0 0 var(--section-gap); }

/* Section divider + top padding, matching the design's border-top blocks. */
.rule {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

@keyframes wm-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}

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

.btn {
  display: inline-block;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

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

.btn-primary:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand:hover { color: var(--text); }

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7cc4ff, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
  flex: none;
}

.brand-mark-sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
}

.brand-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}

.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 560px) {
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 18px; }
}

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

.hero {
  padding: 96px 0 var(--section-gap);
  max-width: 820px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: wm-pulse 2s ease-in-out infinite;
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 40px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 560px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Apps
   ========================================================================== */

#apps h2 {
  margin: 0 0 48px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .15s ease;
}

.app-card:hover { border-color: var(--line-hover); }

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.app-icon .msr {
  font-size: 28px;
  color: var(--bg);
}

.app-status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--status-color);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.app-card-body h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.app-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  align-self: flex-start;
}

.app-link:hover { color: var(--accent-bright); }

.app-link-arrow {
  font-size: 17px;
  transition: transform .15s ease;
}

.app-link:hover .app-link-arrow { transform: translateX(3px); }

/* ==========================================================================
   Why Westmar
   ========================================================================== */

.why-title {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 640px;
}

.why-sub {
  margin: 0 0 56px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  text-wrap: pretty;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.proof {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--surface-alt);
}

.proof-icon {
  font-size: 26px;
  color: var(--accent);
}

.proof h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.proof p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-rule { max-width: 720px; }

#faq h2 {
  margin: 0 0 40px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-alt);
  overflow: hidden;
}

.faq-q {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  min-height: 44px;
}

/* `all: unset` drops the default outline, so restore a visible focus ring. */
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-chevron {
  font-size: 22px;
  color: var(--text-dim);
  transition: transform .2s;
  transform: rotate(0deg);
  flex: none;
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.faq-a[hidden] { display: none; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.cta h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.cta p {
  margin: 0 0 32px;
  font-size: 16px;
  color: var(--text-muted);
}

.cta .btn-primary { padding: 14px 26px; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
}

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

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
