/* ═══════════════════════════════════════════════════════════
   PeakSoftware — Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #080d1a;
  --bg-alt:      #0d1424;
  --surface:     #111827;
  --surface-2:   #1a2540;
  --border:      rgba(255,255,255,0.07);
  --accent:      #0ea5e9;
  --accent-dim:  rgba(14,165,233,0.15);
  --accent-glow: rgba(14,165,233,0.25);
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-faint:  #4b5a72;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --transition:  0.2s ease;
  --max-width:   1100px;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }

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

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 3rem;
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.logo:hover { opacity: 0.9; }

.logo-icon {
  width: 32px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mountain-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #38bdf8;
  box-shadow: 0 0 30px var(--accent-glow);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}

/* ── Services ────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(14,165,233,0.08);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
}

.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── About ───────────────────────────────────────────────────── */
.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text p:last-child { margin-bottom: 0; }

.about-visual {
  width: 180px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── Support ─────────────────────────────────────────────────── */
.support-inner { max-width: 680px; }

.support-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 0.5rem;
}

.support-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.support-icon svg { width: 24px; height: 24px; }

.support-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }

.support-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Policies ────────────────────────────────────────────────── */
.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.policy-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.policy-block h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.policy-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.policy-block p:last-child { margin-bottom: 0; }

.policy-block a { font-size: 0.875rem; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-inner { text-align: center; }

.contact-inner .section-title,
.contact-inner .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0.9rem 1.75rem;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  transition: background var(--transition), border-color var(--transition);
  margin-bottom: 1.25rem;
}

.contact-email:hover {
  background: rgba(14,165,233,0.22);
  border-color: rgba(14,165,233,0.4);
  opacity: 1;
}

.contact-email svg { width: 20px; height: 20px; }

.contact-note {
  font-size: 0.875rem;
  color: var(--text-faint);
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-brand {
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  color: var(--text-faint);
}

.footer-version {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ── Update Banner ───────────────────────────────────────────── */
.update-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface-2);
  border: 1px solid rgba(14,165,233,0.4);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  z-index: 200;
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}

.update-banner[hidden] { display: none; }

.update-banner button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.update-banner button:hover { background: #38bdf8; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; flex-direction: column; }

  .site-nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1rem;
    gap: 0.25rem;
    z-index: 99;
  }

  .site-nav.open a { padding: 0.6rem 0.75rem; }

  .nav-toggle { display: flex; }

  .hero { padding: 4.5rem 0 4rem; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-visual { display: none; }

  .footer-inner { justify-content: center; text-align: center; }

  .update-banner { right: 1rem; left: 1rem; bottom: 1rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
