/* ===========================================================
   ZephyTech Software Ltd — styles
   Plain CSS, no dependencies. Mobile-first, dark theme.
   =========================================================== */

:root {
  --bg: #0b1020;
  --bg-alt: #0e1530;
  --surface: #121a30;
  --surface-2: #16203a;
  --border: #233052;
  --text: #e8edf7;
  --muted: #9aa7c2;
  --accent: #5eead4;        /* teal — the "zephyr" breeze */
  --accent-2: #7c9cff;      /* soft indigo */
  --accent-strong: #2dd4bf;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility helpers */
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #04211c; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-accent { color: var(--accent); }

.nav { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bar::before { transform: translate(-50%, -8px); }
.nav-toggle-bar::after  { transform: translate(-50%, 6px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent-2));
  color: #04211c;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(45, 212, 191, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 9vw, 110px);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at center,
              rgba(94, 234, 212, 0.18),
              rgba(124, 156, 255, 0.10) 45%,
              transparent 70%);
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-intro {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.08rem;
  margin: 0 0 40px;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.card-icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.18rem; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-grid p { color: var(--muted); }
.about-grid strong { color: var(--text); }
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
}
.pill-list li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}
.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-panel h3 { margin: 0 0 18px; font-size: 1.15rem; }
.stats { margin: 0; display: grid; gap: 18px; }
.stats dt { font-weight: 700; color: var(--accent); font-size: 0.9rem; margin-bottom: 2px; }
.stats dd { margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.contact-inner .eyebrow,
.contact-inner .section-intro { margin-left: auto; margin-right: auto; }
.contact-email { color: var(--muted); margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.footer-brand { font-weight: 700; margin: 0; }
.footer-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Responsive nav ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0 24px; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-cta {
    display: inline-block;
    margin: 8px 0;
    text-align: center;
  }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { padding: clamp(48px, 8vw, 88px) 0; }
.legal-container { max-width: 800px; }
.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}
.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal h3 {
  font-size: 1.08rem;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal-dates { font-size: 0.92rem; }

.legal-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal-note strong { color: var(--accent); }

/* [REVIEW] markers — visually obvious so they aren't shipped by accident */
.review {
  background: rgba(124, 156, 255, 0.14);
  color: var(--accent-2);
  border: 1px dashed var(--accent-2);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-weight: 600;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th { background: var(--surface); color: var(--text); }
.legal-table td { color: var(--muted); }

.legal-back { margin-top: 48px; font-weight: 600; }
