/* ===================================================================
   Stingray — Investor Site
   Clean, institutional aesthetic. Light mode only.
   =================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1 {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #111;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: #111;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #111;
}

p {
  color: #333;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #2C3E5A;
  color: #fff;
  border-color: #2C3E5A;
}

.btn-primary:hover {
  background: #1F2E44;
  border-color: #1F2E44;
}

/* --- Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAFAFA;
  border-bottom: 1px solid #E5E7EB;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
}

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

.nav-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111;
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 450;
  color: #444;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #111;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --- Hero --- */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid #E5E7EB;
}

.hero .container {
  max-width: 780px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 600px;
}

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

/* --- Sections --- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: #F3F4F6;
}

.section-intro {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 640px;
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 28px 24px;
}

.card p {
  font-size: 0.9rem;
  color: #555;
}

/* --- Bullet List --- */
.bullet-list {
  list-style: none;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #333;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8B97A8;
}

/* --- Flow Compare Table --- */
.flow-compare {
  margin-bottom: 48px;
}

.flow-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.flow-table th,
.flow-table td {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.9rem;
}

.flow-table thead th {
  background: #F7F8FA;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  border-bottom: 1px solid #E5E7EB;
}

.flow-table thead th:last-child {
  color: #2C3E5A;
}

.flow-table tbody td {
  color: #444;
  border-bottom: 1px solid #F0F0F0;
}

.flow-table tbody td:last-child {
  color: #2C3E5A;
  font-weight: 500;
}

.flow-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- Positioning --- */
.positioning h3 {
  margin-bottom: 20px;
}

.positioning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.positioning-item {
  padding: 20px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.positioning-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: #111;
}

.positioning-item p {
  font-size: 0.8125rem;
  color: #555;
}

.positioning-item--accent {
  border-color: #2C3E5A;
  background: #F7F8FA;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 32px;
  list-style: none;
  counter-reset: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #D1D5DB;
}

.timeline li {
  position: relative;
  margin-bottom: 28px;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FAFAFA;
  border: 2px solid #2C3E5A;
}

.timeline-content strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.timeline-content p {
  font-size: 0.875rem;
  color: #555;
}

/* --- Memo (collapsible) --- */
.memo-details {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
}

.memo-details summary {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #111;
  user-select: none;
}

.memo-details summary::-webkit-details-marker {
  color: #8B97A8;
}

.memo-details[open] summary {
  border-bottom: 1px solid #E5E7EB;
}

.memo-body {
  padding: 24px;
}

.memo-body p {
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #444;
  max-width: 680px;
}

.memo-body p:last-child {
  margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid #E5E7EB;
  padding: 32px 0;
  background: #FAFAFA;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
  color: #111;
}

.footer-copy {
  font-size: 0.8125rem;
  color: #888;
}

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

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

  .positioning-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 1.625rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    text-align: center;
  }

  .positioning-grid {
    grid-template-columns: 1fr;
  }

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

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #FAFAFA;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 24px;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }
}
