/* ============================================
   pTreks Marketing Website - Main Styles
   Light, Modern, Airy Design
   ============================================ */

/* CSS Reset and Base Styles */
:root {
  /* Color Palette - Light & Airy */
  --color-background: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-muted: #eef1f7;
  --color-border: rgba(15, 23, 42, 0.08);

  /* Primary Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #60a5fa;

  /* Text Colors */
  --color-heading: #0f172a;
  --color-text: #1f2937;
  --color-text-muted: #4b5563;

  /* Accent Colors */
  --color-accent: #f97316;
  --color-accent-dark: #ea580c;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Footer */
  --color-footer: #0b1220;

  /* Shadows */
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  /* Spacing */
  --container-max: 1100px;
  --mobile-nav-width: min(360px, 82vw);

  /* Typography */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

/* HTML & Body */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: inherit;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
}

h4 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-primary-dark);
}

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

/* Lists */
ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

/* Container */
.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin: 0 auto;
}

/* Sections */
section {
  padding: 5rem 0;
}

section+section {
  margin-top: 0;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -4rem;
  left: 16px;
  padding: 0.75rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Header & Navigation
   ============================================ */

/* Top Bar */
.top-bar {
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 0.9375rem;
}

.top-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.top-bar__link:hover,
.top-bar__link:focus {
  color: #fff;
}

/* Site Header */
.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1.5rem;
  position: relative;
}

/* Brand */
.brand {
  display: flex;
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.85;
}

.brand__logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.brand__logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

.brand__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* Navigation Toggle */
.nav-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-heading);
  padding: 0.5rem;
  opacity: 1;
  z-index: 10000;
  position: relative;
}

.nav-toggle:hover {
  color: var(--color-primary);
}

.nav-toggle:active {
  transform: scale(0.95);
}

/* Primary Navigation */
.primary-nav__wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav>li {
  position: relative;
}

.primary-nav>li>a {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--color-heading);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.primary-nav>li>a:hover,
.primary-nav>li>a:focus {
  color: var(--color-primary);
}

.primary-nav>li>a.active {
  color: var(--color-primary);
}

/* Auth Buttons in Nav */
.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.25), transparent 55%),
    linear-gradient(135deg, #1d4ed8 0%, #1e293b 100%);
  color: #f8fafc;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.55) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: rgba(248, 250, 252, 0.75);
}

.hero__title {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(241, 245, 249, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================
   Section Headings
   ============================================ */

.section-heading {
  margin-bottom: 3rem;
  text-align: center;
}

.section-heading__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8125rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-heading__title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: var(--color-heading);
}

.section-heading__subtitle {
  margin: 0 auto;
  max-width: 700px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

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

.site-footer {
  background: var(--color-footer);
  color: #e5e7eb;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer__inner {
  display: grid;
  gap: 2rem;
}

.footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__links a:hover,
.footer__links a:focus {
  color: #ffffff;
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}