/* BlueLineStats Website */

:root {
  --primary: #0033A0;
  --primary-light: #0055DD;
  --accent: #C8102E;
  --bg-dark: #08080d;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

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

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: transparent;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.nav-logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 2rem; }

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  display: flex;
  align-items: center;
  padding: 5rem 1.5rem 2rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 51, 160, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(200, 16, 46, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 500px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Hero Waitlist Form */
.hero-waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 400px;
  margin-bottom: 0.5rem;
}

.hero-waitlist-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.hero-waitlist-form input::placeholder {
  color: var(--text-tertiary);
}

.hero-waitlist-form input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.12);
}

.hero-waitlist-form button {
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-waitlist-form button:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 51, 160, 0.3);
}

.hero-waitlist-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.hero-waitlist-form .spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content .waitlist-message {
  font-size: 0.9rem;
  min-height: 1.4em;
  margin: 0;
}

.waitlist-message.success {
  color: #22c55e;
}

.waitlist-message.error {
  color: var(--accent);
}

/* App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  color: #000;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  transition: all 0.2s;
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.12);
}

.app-store-btn svg { width: 24px; height: 24px; }
.app-store-btn .text { text-align: left; }
.app-store-btn .text small { display: block; font-size: 0.65rem; opacity: 0.7; }
.app-store-btn .text span { display: block; font-size: 1.1rem; font-weight: 600; }

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-mockup-img {
  max-height: 650px;
  width: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.4));
}

/* Features */
.features {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header { margin-bottom: 1.25rem; }

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.feature-card {
  background: var(--bg-card);
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Partnership */
.partnership {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.partnership-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.partnership-text {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.partnership-logos img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.partnership-logos img:hover { opacity: 1; }

/* Footer */
.footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img { height: 32px; }
.footer-brand span { font-weight: 600; font-size: 1rem; }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p { color: var(--text-tertiary); font-size: 0.8rem; }
.footer-disclaimer { margin-top: 0.5rem; font-size: 0.75rem !important; opacity: 0.7; }

.footer-legal { display: flex; gap: 1rem; }

.footer-legal a {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--text-secondary); }

/* Legal Pages */
.legal-page {
  padding: 5rem 1.5rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.legal-page p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.legal-page ul, .legal-page ol {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.legal-page li { margin-bottom: 0.3rem; line-height: 1.5; }
.legal-page a { color: var(--primary-light); }
.legal-page a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1000px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-waitlist-form { margin-left: auto; margin-right: auto; }
  .hero-content .waitlist-message { text-align: center; }
  .hero-visual { display: none; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: 2rem; }
  .hero-waitlist-form { flex-direction: column; max-width: 100%; }
  .hero-waitlist-form button { width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .legal-page { padding: 4rem 1rem 2rem; }
}
