/* =========================================================
   HORIZON STAR — Design Tokens
   Deep Navy + Tech Cyan, glassmorphism, Sora/Inter/Plex Mono
   ========================================================= */
:root {
  --navy-950: #061024;
  --navy-900: #0A1F44;
  --navy-800: #102a5c;
  --navy-700: #163872;
  --cyan-400: #1FD1E0;
  --cyan-300: #6FE8EF;
  --cyan-glow: rgba(31, 209, 224, 0.35);
  --white: #FFFFFF;
  --gray-50: #F4F6F9;
  --gray-100: #E7ECF3;
  --gray-400: #8B95A7;
  --gray-600: #4B5568;
  --ink: #0D1526;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 60px -20px rgba(10, 31, 68, 0.25);
  --shadow-glow: 0 0 40px var(--cyan-glow);
  --container: 1220px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-400);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--cyan-400);
  display: inline-block;
}

/* ---------- Signature element: the Horizon Line ---------- */
.horizon-line {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--navy-900), var(--cyan-400) var(--line-progress, 0%), transparent var(--line-progress, 0%));
  z-index: 1000;
  transition: background 0.05s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(10,31,68,0.08);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 32px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; gap: 8px; }
.main-nav a {
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 15px; font-weight: 500;
  color: var(--gray-600);
  transition: all 0.2s ease;
}
.main-nav a:hover { color: var(--navy-900); background: var(--gray-50); }
.main-nav a.active { color: var(--navy-900); background: var(--gray-100); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600; font-size: 15px;
  border: none;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-cyan { background: var(--cyan-400); color: var(--navy-950); }
.btn-cyan:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-glass {
  background: rgba(10,31,68,0.06);
  color: var(--navy-900);
  border: 1px solid rgba(10,31,68,0.12);
}
.btn-glass:hover { background: rgba(10,31,68,0.1); transform: translateY(-2px); }
.btn-outline-light { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(8px); }
.btn-outline-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-whatsapp-sm { background: #21c063; color: #fff; padding: 10px 18px; font-size: 14px; }
.btn-whatsapp-sm:hover { transform: translateY(-2px); }

/* ---------- Hero / Gallery ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  background: radial-gradient(1100px 700px at 15% -10%, rgba(31,209,224,0.18), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-800));
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  opacity: 0.7;
}
.hero-slides { position: relative; z-index: 2; width: 100%; }
.hero-slide {
  display: none;
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  color: var(--white);
}
.hero-slide.is-active { display: block; animation: fadeUp 0.9s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.hero-slide h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700; letter-spacing: -0.02em;
  max-width: 820px;
  margin-top: 22px;
}
.hero-slide h1 .accent { color: var(--cyan-400); }
.hero-slide p {
  margin-top: 20px; font-size: 19px; color: rgba(255,255,255,0.72);
  max-width: 560px; line-height: 1.6;
}
.hero-cta-row { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-dots { display: flex; gap: 8px; margin-top: 56px; }
.hero-dots button {
  width: 34px; height: 4px; border-radius: 4px; border: none;
  background: rgba(255,255,255,0.25); transition: all 0.3s ease;
}
.hero-dots button.is-active { background: var(--cyan-400); width: 50px; }

.hero-glass-panel {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: 300px; padding: 26px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  z-index: 3;
}
.hero-glass-panel .stat-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hero-glass-panel .stat-row:last-child { border-bottom: none; }
.hero-glass-panel .stat-num { font-family: var(--font-mono); font-size: 22px; color: var(--cyan-300); font-weight: 500; }
.hero-glass-panel .stat-label { font-size: 13px; color: rgba(255,255,255,0.65); text-align: right; max-width: 150px; }

/* ---------- Section shells ---------- */
section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 16px; letter-spacing: -0.02em; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--gray-600); line-height: 1.65; }
.section-light { background: var(--gray-50); }
.section-navy { background: linear-gradient(160deg, var(--navy-950), var(--navy-900)); color: var(--white); }
.section-navy .section-head p { color: rgba(255,255,255,0.65); }

/* ---------- Brief / About ---------- */
.brief-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.brief-badge-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.brief-badge {
  font-family: var(--font-mono); font-size: 13px; padding: 8px 14px;
  border-radius: 100px; background: var(--gray-100); color: var(--navy-800);
}
.brief-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3.2;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
}
.brief-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(500px 300px at 80% 20%, var(--cyan-glow), transparent 60%);
}
.brief-visual-grid {
  position: absolute; inset: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 10px;
}
.brief-visual-grid div { background: rgba(255,255,255,0.06); border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.brief-visual-grid div:nth-child(6), .brief-visual-grid div:nth-child(11) { background: rgba(31,209,224,0.35); }

/* ---------- Why Us grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  padding: 32px 26px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gray-100);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: var(--cyan-300);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 18px; margin-bottom: 10px; }
.why-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }

/* ---------- Key Projects (Trust signals) ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  background-color: var(--navy-800);
}
.project-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,16,36,0.92) 10%, rgba(6,16,36,0.35) 60%, rgba(6,16,36,0.1));
}
.project-card-body { position: relative; z-index: 2; padding: 32px; color: var(--white); }
.project-tag {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cyan-300); background: rgba(31,209,224,0.15);
  padding: 6px 12px; border-radius: 100px; display: inline-block; margin-bottom: 14px;
}
.project-card-body h3 { font-size: 24px; margin-bottom: 10px; }
.project-card-body p { font-size: 14.5px; color: rgba(255,255,255,0.75); max-width: 460px; line-height: 1.6; }

/* ---------- Trusted-by grid ---------- */
.trusted-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--gray-100); border: 1px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden;
}
.trusted-cell {
  background: var(--white); padding: 28px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  filter: grayscale(1); opacity: 0.65; transition: all 0.3s ease;
}
.trusted-cell:hover { filter: grayscale(0); opacity: 1; }
.trusted-cell img { height: 34px; width: auto; object-fit: contain; }
.trusted-cell span { font-size: 12px; color: var(--gray-400); font-family: var(--font-mono); }

/* ---------- What We Do — page header ---------- */
.page-header-banner {
  position: relative; height: 46vh; min-height: 340px;
  background-size: cover; background-position: center;
  background-color: var(--navy-900);
  display: flex; align-items: flex-end;
}
.page-header-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--navy-950) 5%, rgba(6,16,36,0.55) 60%, rgba(6,16,36,0.25));
}
.page-header-content { position: relative; z-index: 2; padding: 56px 0; color: var(--white); width: 100%; }
.page-header-content h1 { font-size: clamp(34px, 5vw, 52px); margin-top: 14px; }
.page-header-content p { color: rgba(255,255,255,0.7); margin-top: 12px; max-width: 560px; }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  padding: 30px 24px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gray-100);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card:hover { border-color: transparent; box-shadow: var(--shadow-soft); transform: translateY(-6px); }
.service-num { font-family: var(--font-mono); font-size: 13px; color: var(--gray-400); }
.service-card h3 { font-size: 18px; margin: 14px 0 10px; }
.service-card p { font-size: 14.5px; color: var(--gray-600); line-height: 1.6; }

/* ---------- Expertise grid ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expertise-card {
  display: flex; gap: 18px; padding: 26px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.expertise-card:hover { background: rgba(31,209,224,0.08); border-color: rgba(31,209,224,0.3); }
.expertise-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(31,209,224,0.14); color: var(--cyan-300);
  display: flex; align-items: center; justify-content: center;
}
.expertise-card h3 { font-size: 16.5px; color: var(--white); margin-bottom: 8px; }
.expertise-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.55; }

/* ---------- Growth path (ANSOFF scroll storytelling) ---------- */
.growth-path { position: relative; }
.growth-path-line {
  position: absolute; left: 0; right: 0; top: 90px; height: 2px;
  background: linear-gradient(90deg, var(--gray-100), var(--cyan-400));
}
.growth-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.growth-stage {
  padding-top: 40px; position: relative;
  opacity: 0.35; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.growth-stage.in-view { opacity: 1; transform: translateY(0); }
.growth-stage::before {
  content: ''; position: absolute; top: 84px; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gray-100);
  transition: all 0.4s ease;
}
.growth-stage.in-view::before { border-color: var(--cyan-400); box-shadow: 0 0 0 6px var(--cyan-glow); }
.growth-stage-label {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cyan-400); font-weight: 500;
}
.growth-stage h3 { font-size: 19px; margin: 12px 0 10px; }
.growth-stage p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  border-radius: var(--radius-md); overflow: hidden; background: var(--white);
  border: 1px solid var(--gray-100); transition: all 0.3s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.case-card-img { aspect-ratio: 16/11; background-size: cover; background-position: center; background-color: var(--gray-100); }
.case-card-body { padding: 24px; }
.case-card-body h3 { font-size: 17.5px; margin-bottom: 10px; }
.case-card-body p { font-size: 14px; color: var(--gray-600); line-height: 1.6; }

.industries-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.industry-card {
  text-align: center; padding: 28px 14px; border-radius: var(--radius-md);
  background: var(--white); border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}
.industry-card:hover { border-color: var(--cyan-400); box-shadow: var(--shadow-soft); }
.industry-icon {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 12px;
  background: var(--gray-50); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
}
.industry-card h4 { font-size: 14.5px; margin-bottom: 6px; }
.industry-card p { font-size: 12.5px; color: var(--gray-400); line-height: 1.5; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info-card {
  padding: 36px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: var(--white);
}
.contact-info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact-info-row:last-of-type { border-bottom: none; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(31,209,224,0.15); color: var(--cyan-300);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-row h4 { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 4px; font-weight: 500; }
.contact-info-row a, .contact-info-row p { font-size: 15.5px; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--navy-900); }
.contact-form .field { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  border: 1.5px solid var(--gray-100); font-family: var(--font-body); font-size: 15px;
  transition: border-color 0.2s ease; background: var(--gray-50);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan-400); background: var(--white); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.form-success {
  padding: 18px 22px; border-radius: 12px; background: rgba(31,209,224,0.1);
  border: 1px solid var(--cyan-400); color: var(--navy-900); font-weight: 500; margin-bottom: 20px;
}
.form-error {
  padding: 16px 20px; border-radius: 12px; background: #fdecec; border: 1px solid #f3b9b9; color: #a12a2a; margin-bottom: 20px;
}
.honeypot { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.65); padding: 80px 0 0; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 34px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-tagline { font-size: 14px; line-height: 1.6; max-width: 260px; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; transition: all 0.25s ease;
}
.social-icon:hover { background: var(--cyan-400); color: var(--navy-950); }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; }
.footer-col a, .footer-col p { display: block; font-size: 14.5px; margin-bottom: 12px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan-400); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding: 24px 32px; font-size: 13px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .growth-stages { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .trusted-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .brief-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .hero-glass-panel { display: none; }
}

@media (max-width: 720px) {
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .why-grid, .services-grid, .expertise-grid, .growth-stages, .case-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .trusted-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .growth-path-line { display: none; }
}
