/* ============================================================================
   B2B Agadir — company homepage.
   "Family resemblance, own layout": shares the Enable design language (Clash
   Display + Switzer, near-black canvas, drifting aurora, lime signature accent,
   pill buttons) but a distinct, umbrella-brand structure built around the three
   divisions (Soft / Hard / Services), each with its own hue accent.
   ============================================================================ */

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

:root {
  --bg: #08080C;
  --bg-2: #0E0E16;
  --ink: #ECECF3;
  --muted: #9A9AB2;
  --faint: #6B6B82;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);
  --lime: #C4F82A;
  --lime-hover: #D4FF4A;
  --lime-ink: #0A0A0F;
  /* Per-division hues — lime for the live software pole, cool tones for the two
     coming-soon poles, so the three read as distinct members of one family. */
  --soft: #C4F82A;
  --hard: #5BA8FF;
  --serv: #A78BFA;
  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ===== AURORA (shared family element) ===== */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora-blob.a1 { width: 620px; height: 620px; background: #7C1D6F; top: -160px; left: -120px; animation: drift-1 24s ease-in-out infinite alternate; }
.aurora-blob.a2 { width: 680px; height: 680px; background: #14306B; top: 26%; left: 44%; animation: drift-2 30s ease-in-out infinite alternate; }
.aurora-blob.a3 { width: 560px; height: 560px; background: #26406B; bottom: 8%; right: -80px; opacity: 0.4; animation: drift-3 27s ease-in-out infinite alternate; }
.aurora-blob.a4 { width: 440px; height: 440px; background: #3C5A0F; bottom: 30%; left: -60px; opacity: 0.32; animation: drift-1 33s ease-in-out infinite alternate; }
.aurora-grain { position: absolute; inset: 0; opacity: 0.55;
  background: radial-gradient(circle at 50% 0%, transparent 58%, rgba(8, 8, 12, 0.6) 100%),
              linear-gradient(180deg, rgba(8, 8, 12, 0.2), rgba(8, 8, 12, 0.78)); }
@keyframes drift-1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift-2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-140px, 70px) scale(0.9); } }
@keyframes drift-3 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-90px, -110px) scale(1.2); } }

/* ===== small caps labels ===== */
.section-label,
.eyebrow,
.status,
.product-role,
.rail-t,
.footer h4 {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 9999px; border: 1px solid transparent;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-hover); transform: translateY(-1px); box-shadow: 0 10px 30px rgba(196, 248, 42, 0.24); }
.btn-lg { padding: 15px 34px; font-size: 15.5px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink); }
.link-arrow .arrow { display: inline-block; transition: transform 0.2s; }
.link-arrow:hover { color: var(--lime); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: background-color 0.25s, padding 0.25s, border-color 0.25s; }
.navbar.scrolled { background: rgba(8, 8, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; background: #fff; padding: 5px 10px; border-radius: 10px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--muted); position: relative; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; right: 0; height: 1.5px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right .btn { padding: 10px 22px; font-size: 13.5px; }
.hamburger { display: none; background: none; border: none; color: var(--ink); cursor: pointer; padding: 8px; }
.hamburger svg { width: 24px; height: 24px; }

.mobile-menu { display: none; position: fixed; inset: 0; background: rgba(8, 8, 12, 0.97); backdrop-filter: blur(18px); z-index: 1001; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; transition: opacity 0.25s; }
.mobile-menu.open { display: flex; opacity: 1; }
.mobile-menu a { font-family: var(--font-display); font-weight: 600; font-size: 28px; color: var(--ink); }
.mobile-menu a.btn { font-size: 15px; }
.mobile-menu a:hover { color: var(--lime); }
.mobile-menu .close-btn { position: absolute; top: 24px; right: 28px; background: none; border: none; color: var(--ink); cursor: pointer; }

/* ===== HERO ===== */
.hero { padding: 200px 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 30px; border: 1px solid var(--line); border-radius: 9999px; padding: 7px 16px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
/* Centered hero column (the rail below keeps its own left-aligned cards). */
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -0.03em; max-width: 22ch; margin: 0 auto 28px; text-align: center; }
.hero-title .hl { position: relative; color: var(--lime); white-space: nowrap; }
.hero-title .hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.09em; background: var(--lime); opacity: 0.35; border-radius: 2px; }
.hero-sub { font-size: 18.5px; color: var(--muted); max-width: 640px; line-height: 1.7; margin: 0 auto 40px; text-align: center; }
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* hero division rail */
.hero-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.rail-item { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.25s, transform 0.25s, background 0.25s; position: relative; overflow: hidden; }
.rail-item::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: var(--hue, var(--lime)); opacity: 0.45; box-shadow: 0 0 18px 1px var(--hue, var(--lime)); }
.rail-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--hue, var(--lime)) 40%, var(--line)); background: rgba(255, 255, 255, 0.035); }
.rail-k { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--hue, var(--lime)); }
.rail-t { color: var(--muted); }
.rail-s { position: absolute; top: 20px; right: 20px; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; padding: 4px 10px; border-radius: 9999px; }
.rail-s.live { color: var(--lime-ink); background: var(--lime); }
.rail-s.soon { color: var(--faint); border: 1px solid var(--line); }

/* ===== SECTIONS ===== */
.section { padding: 120px 0 40px; position: relative; z-index: 2; }
.section-head { max-width: 720px; }
.section-label { color: var(--lime); margin-bottom: 18px; display: inline-flex; align-items: center; }
.section-label::before { content: ''; display: inline-block; width: 26px; height: 1.5px; background: var(--lime); margin-right: 12px; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 22px; }
.section-desc { font-size: 17px; color: var(--muted); line-height: 1.7; }

/* ===== DIVISIONS ===== */
.division { padding: 70px 0; position: relative; z-index: 2; border-top: 1px solid var(--line-2); }
.division-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: start; }
.division-id { position: relative; }
.division-mark {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(52px, 7vw, 96px); line-height: 1; letter-spacing: -0.02em; text-transform: lowercase;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--hue) 42%, transparent);
  text-stroke: 1px color-mix(in srgb, var(--hue) 42%, transparent);
  margin-bottom: 22px; user-select: none;
}
@supports not ((-webkit-text-stroke: 1px) or (text-stroke: 1px)) {
  .division-mark { color: color-mix(in srgb, var(--hue) 24%, transparent); }
}
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 9999px; margin-bottom: 18px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: var(--lime); background: rgba(196, 248, 42, 0.10); border: 1px solid rgba(196, 248, 42, 0.28); }
.status-soon { color: var(--faint); border: 1px solid var(--line); }
.division-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 10px; }
.division-name span { color: var(--hue); }
.division-tag { color: var(--muted); font-weight: 500; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }
.division-desc { color: var(--muted); font-size: 15.5px; line-height: 1.7; max-width: 42ch; }

/* Soft — product cards */
.division-body { display: grid; gap: 20px; }
.product-card { display: block; position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.028); border: 1px solid var(--line); border-radius: 20px; padding: 30px 30px 26px; transition: transform 0.3s, border-color 0.3s; }
.product-card::before { content: ''; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--hue), transparent); box-shadow: 0 0 22px 1px var(--hue); opacity: 0.7; }
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--hue) 42%, var(--line)); }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; }
.product-badge { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--lime-ink); background: var(--lime); padding: 4px 12px; border-radius: 9999px; }
.product-role { color: var(--hue); margin-bottom: 12px; }
.product-desc { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-bottom: 20px; }
.product-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.product-link .arrow { transition: transform 0.2s; }
.product-card:hover .product-link { color: var(--hue); }
.product-card:hover .product-link .arrow { transform: translateX(4px); }

/* Hard / Services — category grids, coming soon */
.division-soon .division-body { gap: 24px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat-card { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 22px; transition: border-color 0.25s, transform 0.25s; }
.cat-card:hover { border-color: color-mix(in srgb, var(--hue) 30%, var(--line)); transform: translateY(-2px); }
.cat-name { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.cat-name::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--hue); flex-shrink: 0; box-shadow: 0 0 12px var(--hue); }
.cat-desc { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.soon-cta { color: var(--hue); }
.soon-cta:hover { color: var(--hue); filter: brightness(1.15); }

/* ===== CONTACT ===== */
.contact-band { padding: 130px 0; position: relative; overflow: hidden; z-index: 2; border-top: 1px solid var(--line); text-align: center; }
.contact-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 100% at 50% 120%, rgba(196, 248, 42, 0.13), transparent 70%); pointer-events: none; }
.contact-band .section-label { justify-content: center; }
.contact-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5vw, 66px); letter-spacing: -0.025em; margin-bottom: 18px; position: relative; }
.contact-sub { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; position: relative; }
.contact-actions { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer { padding: 84px 0 36px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand .nav-logo { width: fit-content; }
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 18px; line-height: 1.7; max-width: 320px; }
.footer h4 { color: var(--faint); margin-bottom: 20px; }
.footer ul li { margin-bottom: 12px; }
.footer ul a, .footer ul span { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--lime); }
.footer-bottom { padding-top: 26px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--ink); }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.07s; }
.reveal-2 { transition-delay: 0.14s; }
.reveal-3 { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .aurora-blob { animation: none !important; }
  .eyebrow-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .division-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-rail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: block; }
  .container { padding: 0 20px; }
  .hero { padding-top: 150px; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { gap: 16px; }
}
