/* ============================================================
   Sandbyte — modern site styling
   Palette pulled from the original Sandbyte sand/sky logo.
   ============================================================ */

:root {
  --sand-50:  #fff7ed;
  --sand-100: #ffe9cc;
  --sand-300: #f4c073;
  --sand-500: #e8923b;       /* sand-dune orange in original logo */
  --sand-600: #c97324;
  --sand-700: #8f4f17;

  --sky-50:   #eef7fb;
  --sky-200:  #bfe1ee;
  --sky-400:  #79c1da;
  --sky-500:  #5ba8c9;       /* sky blue in original logo */
  --sky-700:  #1f6f8b;

  --ink-900:  #0f1b2d;
  --ink-700:  #243348;
  --ink-500:  #4b5b73;
  --ink-300:  #8c98ab;
  --ink-100:  #e6ebf3;
  --paper:    #ffffff;

  --grad-hero: linear-gradient(135deg, #1f6f8b 0%, #5ba8c9 38%, #f4c073 72%, #e8923b 100%);
  --grad-cta:  linear-gradient(135deg, #e8923b 0%, #c97324 100%);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 27, 45, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.18);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--sand-600); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1em; }

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

/* ---------- navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(15,27,45,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-900);
}
.brand img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.brand-mark { letter-spacing: -.01em; }
.brand-mark span { color: var(--sand-600); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 6px 2px;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--sand-600);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
  border-radius: 2px;
}
.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-cta);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .95rem;
  box-shadow: 0 6px 16px rgba(232,146,59,0.35);
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(232,146,59,0.45);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-700);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(91,168,201,0.20), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(232,146,59,0.20), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--sky-50) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-700);
  background: var(--sky-50);
  border: 1px solid var(--sky-200);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand-500);
  box-shadow: 0 0 0 4px rgba(232,146,59,0.18);
}
.hero h1 .accent {
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.18rem;
  color: var(--ink-500);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232,146,59,0.32);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(232,146,59,0.42);
}
.btn-ghost {
  background: rgba(255,255,255,0.6);
  border-color: var(--ink-100);
  color: var(--ink-700);
}
.btn-ghost:hover { border-color: var(--sky-400); color: var(--sky-700); }

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 42px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink-900);
}
.stat-label {
  font-size: .85rem;
  color: var(--ink-500);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(15,27,45,0.18));
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ---------- generic section ---------- */
.section {
  padding: 96px 0;
}
.section.alt { background: var(--sky-50); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { color: var(--ink-500); font-size: 1.1rem; }

/* ---------- features grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: 0;
  transition: opacity .25s;
  z-index: 0;
}
.feature > * { position: relative; z-index: 1; }
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-50), var(--sand-50));
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--sand-600); }
.feature h3 { color: var(--ink-900); }
.feature p { color: var(--ink-500); margin: 0; }

/* ---------- product showcase ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-art {
  aspect-ratio: 1/1;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--sky-50) 0%, var(--sand-50) 100%);
}
.product-art svg { width: 70%; height: 70%; }
.product-meta { padding: 18px 16px 22px; }
.product-meta h3 { font-size: 1.05rem; margin-bottom: 4px; }
.product-meta p  { font-size: .92rem; color: var(--ink-500); margin: 0; }

/* ---------- how it works (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--ink-100);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 8px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  color: #fff;
  background: var(--grad-hero);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 90% 110%, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(400px 200px at 10% -10%, rgba(255,255,255,0.18), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; margin: 0 0 8px; }
.cta-banner p  { color: rgba(255,255,255,0.92); margin: 0; max-width: 560px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--sand-700);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}
.cta-banner .btn-primary:hover { color: var(--sand-700); }

/* ---------- about: leadership ---------- */
.about-hero {
  padding: 80px 0 40px;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(91,168,201,0.15), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--sky-50) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.about-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.directors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.director {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff 0%, var(--sky-50) 100%);
  transition: transform .25s, box-shadow .25s;
}
.director:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.director .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: var(--grad-hero);
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(31,111,139,0.25);
}
.director h3 { margin: 0; }
.director .role {
  display: inline-block;
  margin-top: 6px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky-700);
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--sky-400), var(--sand-500));
  border-radius: 2px;
}
.timeline li {
  position: relative;
  padding: 8px 0 24px 40px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px; top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--sand-500);
}
.timeline .year {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sky-700);
  margin-right: 8px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.info-list {
  list-style: none;
  padding: 0; margin: 0;
}
.info-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
}
.info-list li:last-child { border-bottom: 0; }
.info-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sky-50), var(--sand-50));
  color: var(--sand-600);
}
.info-icon svg { width: 22px; height: 22px; }
.info-text strong { display:block; color: var(--ink-900); font-weight: 600; }
.info-text span,
.info-text a { color: var(--ink-500); font-size: .95rem; }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.field input,
.field textarea {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
  color: var(--ink-900);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(91,168,201,0.18);
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status {
  min-height: 24px;
  font-size: .92rem;
  color: var(--sky-700);
}
.form-status.success { color: #2a7a3f; }
.form-status.error { color: #b03a3a; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img {
  height: 44px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  margin-bottom: 14px;
}
.footer-brand p { color: rgba(255,255,255,0.62); max-width: 320px; }
.footer h4 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.72); }
.footer ul a:hover { color: var(--sand-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid,
  .products,
  .steps,
  .directors { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 40px 28px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 18px 24px;
    gap: 14px;
    box-shadow: var(--shadow-md);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .feature-grid,
  .products,
  .steps,
  .directors,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 64px 0; }
}
