/* ============================================
   trackTS Info Page - Modern Minimal CSS
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #4d8ef7;
  --color-primary-dark: #1274ed;
  --color-teal: #39d8c8;
  --color-teal-light: #7ce8dd;
  --color-pink: #ff6d8b;
  --color-purple: #838dea;

  --color-text: #3b3f4a;
  --color-text-light: #6b7280;
  --color-heading: #1e2330;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb;

  /* Typography */
  --font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Roboto", var(--font-body);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Layout */
  --max-width: 1080px;
  --max-width-sm: 640px;
  --border-radius: 8px;

  /* Animation */
  --ease-out: cubic-bezier(0.5, -0.01, 0, 1.005);
  --duration: 0.6s;
}

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 500;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-sm {
  width: 100%;
  max-width: var(--max-width-sm);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.text-center {
  text-align: center;
}

/* --- Header --- */
.site-header {
  padding: var(--spacing-md) 0;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-brand h1 {
  margin: 0;
  line-height: 1;
}

.header-brand img {
  width: 48px;
  height: 48px;
}

/* --- Hero Section --- */
.hero {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
}

.hero-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: var(--spacing-sm);
}

.hero-paragraph {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.button {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(77, 142, 247, 0.4);
}

.button-primary:hover {
  box-shadow: 0 6px 20px rgba(77, 142, 247, 0.5);
}

/* --- Hero Browser Mockup --- */
.hero-browser {
  position: relative;
  margin-top: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-browser-inner {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-browser-inner img {
  width: 100%;
}

/* --- Decorative Blobs (CSS replacement for SVG bubbles) --- */
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

.blob-1 {
  width: 320px;
  height: 220px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #75abf3 100%);
  top: -50px;
  right: -80px;
  border-radius: 60% 40% 50% 50%;
  opacity: 0.85;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--color-teal-light) 0%, var(--color-teal) 100%);
  bottom: -40px;
  left: -60px;
  border-radius: 40% 60% 50% 50%;
  opacity: 0.85;
}

.blob-3 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-pink) 0%, #ff4f73 100%);
  top: 20px;
  left: 40px;
  opacity: 0.9;
}

/* --- Features Section --- */
.features {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-alt);
}

.features-inner {
  padding: var(--spacing-lg) 0;
}

.features-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.features-wrap:last-child {
  margin-bottom: 0;
}

.feature {
  background: var(--color-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  margin-bottom: var(--spacing-sm);
}

.feature-icon svg {
  width: 64px;
  height: 64px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
}

.feature p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- Newsletter / Open Source Section --- */
.newsletter {
  padding: var(--spacing-xl) 0;
}

.newsletter-inner {
  padding: var(--spacing-lg) 0;
}

.newsletter-header {
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--spacing-sm);
}

.section-paragraph {
  color: var(--color-text-light);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for sequential reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .hero {
    padding: var(--spacing-lg) 0;
  }

  .hero-paragraph {
    font-size: 1rem;
  }

  .features-wrap {
    grid-template-columns: 1fr;
  }

  .blob-1 {
    width: 200px;
    height: 140px;
    right: -40px;
  }

  .blob-2 {
    width: 120px;
    height: 120px;
    left: -20px;
  }

  .blob-3 {
    width: 40px;
    height: 40px;
    left: 20px;
  }
}
