/* ============================================================
   BigSky Cloud ERP — Design System
   Polished enterprise SaaS · blue gradients · white space ·
   restrained orange accents · Outfit/Inter typography
   ============================================================ */

:root {
  --blue-50: #f0f9ff;
  --blue-100: #e0f2fe;
  --blue-200: #bae6fd;
  --blue-500: #0ea5e9;
  --blue-600: #0284c7;
  --blue-700: #0369a1;
  --blue-900: #0c4a6e;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --white: #ffffff;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(2, 132, 199, 0.10);
  --shadow-lg: 0 20px 48px rgba(2, 132, 199, 0.16);
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-600); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink); line-height: 1.15; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 16px;
}
.h-display { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300; letter-spacing: -0.02em; }
.h-display strong { font-weight: 600; }
.h-2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.015em; }
.h-3 { font-size: 1.3rem; font-weight: 600; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  border-radius: 999px;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; }
.btn-secondary {
  background: var(--white);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
}
.btn-secondary:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.btn-accent {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.25);
}
.btn-accent:hover { background: var(--orange-600); transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 0.92rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 34px; }
.brand-text {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.brand-text span { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-600); }
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  transition: width 0.25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { width: 100%; }
.main-nav a[aria-current="page"] { color: var(--blue-600); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 4px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--surface);
}
.mobile-nav a[aria-current="page"] { color: var(--blue-600); }
.mobile-nav .btn { margin-top: 16px; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 170px 0 110px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(14, 165, 233, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(249, 115, 22, 0.07), transparent 55%),
    linear-gradient(180deg, var(--blue-50) 0%, var(--white) 78%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }

.fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.fact-pill svg { color: var(--orange-500); flex: none; }

.hero-visual { position: relative; }
.mock-frame {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar i:nth-child(1) { background: #fca5a5; }
.mock-bar i:nth-child(2) { background: #fcd34d; }
.mock-bar i:nth-child(3) { background: #86efac; }
.mock-bar span { margin-left: 8px; font-size: 0.75rem; color: var(--faint); }
.mock-frame img { width: 100%; height: 340px; object-fit: cover; }

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
}
.float-chip .chip-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  flex: none;
}
.float-chip .chip-icon.orange { background: linear-gradient(135deg, var(--orange-500), #fb923c); }
.float-chip b { display: block; font-size: 0.9rem; font-family: var(--font-heading); }
.float-chip small { color: var(--faint); font-size: 0.75rem; }
.chip-tl { top: -22px; left: -28px; }
.chip-br { bottom: -22px; right: -20px; animation-delay: 2.5s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 700px; margin-bottom: 64px; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.feature-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.feature-card:hover .card-icon { background: var(--blue-600); color: #fff; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }
.card-link { margin-top: auto; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.card-link .arrow { transition: transform 0.2s ease; }
.card-link:hover .arrow { transform: translateX(4px); }

/* ---------- Interactive module demo ---------- */
.module-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.module-tab {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.module-tab:hover { border-color: var(--blue-500); color: var(--blue-600); }
.module-tab.active {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-500));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.module-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.module-panel.hidden { display: none; }
.module-panel ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.module-panel li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.module-panel li svg { flex: none; margin-top: 3px; color: var(--orange-500); }

.screenshot-placeholder {
  border: 2px dashed var(--blue-200);
  background: repeating-linear-gradient(135deg, var(--blue-50), var(--blue-50) 12px, #fff 12px, #fff 24px);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  color: var(--faint);
}
.screenshot-placeholder .ph-inner b { display: block; font-family: var(--font-heading); color: var(--blue-600); font-size: 1.05rem; margin-bottom: 6px; }
.screenshot-placeholder .ph-inner small { font-size: 0.85rem; }

/* ---------- Showcase (home) ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Split rows (solutions / cloud erp) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split + .split { margin-top: 110px; }
.split .media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split .media img { width: 100%; height: 400px; object-fit: cover; transition: transform 0.5s ease; }
.split .media:hover img { transform: scale(1.03); }
.check-list { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.check-list li svg { flex: none; margin-top: 3px; color: var(--blue-600); }

/* ---------- Platform facts band ---------- */
.facts-band {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 55%, var(--blue-600));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
}
.facts-band .h-2 { color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.fact-item { border-top: 2px solid rgba(255, 255, 255, 0.25); padding-top: 18px; }
.fact-item b { display: block; font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 4px; }
.fact-item span { font-size: 0.88rem; color: var(--blue-100); }
.fact-item:nth-child(odd) { border-top-color: var(--orange-500); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .quote-mark { color: var(--blue-200); }
.testimonial-card blockquote { font-size: 1.05rem; color: var(--muted); font-style: italic; }
.testimonial-card footer { margin-top: auto; }
.testimonial-card footer b { display: block; font-family: var(--font-heading); }
.testimonial-card footer span { font-size: 0.85rem; color: var(--faint); }
.placeholder-note {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-600);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700) 55%, var(--blue-600));
  border-radius: var(--radius-lg);
  padding: 80px 64px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.35), transparent 70%);
}
.cta-band .h-2 { color: #fff; }
.cta-band p { color: var(--blue-100); max-width: 560px; margin-top: 14px; }
.cta-band .btn { margin-top: 30px; position: relative; z-index: 1; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 170px 0 80px;
  background:
    radial-gradient(700px 380px at 90% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(180deg, var(--blue-50), var(--white));
}
.page-hero .lead { margin-top: 18px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; font-family: var(--font-heading); }
.form-field label em { color: var(--orange-600); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-error { font-size: 0.8rem; color: #dc2626; display: none; }
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea { border-color: #dc2626; }
.form-field.invalid .form-error { display: block; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-note { font-size: 0.82rem; color: var(--faint); margin-top: 6px; }
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.form-success.show { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.contact-item .card-icon { width: 46px; height: 46px; }
.contact-item b { display: block; font-family: var(--font-heading); margin-bottom: 2px; }
.contact-item span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: var(--blue-100); margin-top: 110px; }
.footer-cta {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-500));
  border-radius: var(--radius-lg);
  padding: 56px;
  transform: translateY(-56px);
  margin-bottom: -56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.footer-cta .h-3 { color: #fff; font-size: 1.5rem; }
.footer-cta p { color: var(--blue-100); margin-top: 6px; }
.footer-main { padding: 120px 0 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-main h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-main ul { list-style: none; display: grid; gap: 10px; }
.footer-main a { color: var(--blue-100); font-size: 0.92rem; }
.footer-main a:hover { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Thank you ---------- */
.thank-you { padding: 220px 0 140px; text-align: center; }
.thank-you .check-badge {
  width: 84px; height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3, .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split, .module-panel, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 90px; }
  .chip-tl { left: 0; }
  .chip-br { right: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
  .grid-3, .grid-2, .showcase-grid, .form-grid { grid-template-columns: 1fr; }
  .facts-band, .cta-band { padding: 40px 28px; }
  .cta-band { padding: 48px 28px; }
  .footer-cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .form-card { padding: 32px 24px; }
  .mock-frame img { height: 240px; }
  .split .media img { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* Original BigSky logo and responsive header */
.nav-wrap {height:110px; max-width:1380px; gap:22px;}
.brand {flex-shrink:0;}
.brand-mark {width:190px;height:100px;object-fit:contain;}
.footer-brand .brand-mark {width:180px;height:auto;background:#fff;border-radius:10px;padding:6px;}
.main-nav {gap:clamp(12px,1.7vw,26px);}
.main-nav a,.nav-actions .btn {white-space:nowrap;}
.mobile-nav {max-height:calc(100dvh - 110px);overflow:auto;}
.mobile-nav .btn {color:white;}
.reveal {opacity:1;transform:none;}
@media(max-width:1150px){.main-nav,.nav-actions .btn{display:none}.nav-toggle{display:flex}}
@media(max-width:768px){.nav-wrap{height:94px}.brand-mark{width:160px;height:86px}.hero,.page-hero{padding-top:135px}.mobile-nav{max-height:calc(100dvh - 94px)}}
@media(max-width:480px){.footer-main{grid-template-columns:1fr;gap:28px}.form-field input,.form-field select,.form-field textarea{min-width:0;width:100%}}
.form-status {margin-top:16px;color:var(--muted);}

@media(max-width:1320px){.main-nav,.nav-actions .btn{display:none}.nav-toggle{display:flex}}
