/* =========================================================
   Nazmi — Digital Solutions Consultant
   Design tokens
   ========================================================= */
:root{
  --navy-deep:#0F1E3D;
  --navy:#1B3A73;
  --red:#E5384D;
  --paper:#EEF2F8;
  --paper-alt:#E4EAF4;
  --ink:#16213E;
  --ink-soft:#4C5872;
  --white:#FFFFFF;
  --green:#25D366;
  --line:#C9D3E3;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --max-w: 1200px;
  --pad: 24px;
  --header-h: 68px;
}

@media (min-width: 640px){
  :root{ --pad: 40px; }
}

@media (min-width: 640px){
  :root{ --header-h: 76px; }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.section__wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =========================================================
   Sticky WhatsApp button
   ========================================================= */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15);
  animation: wa-pulse 3.2s ease-in-out infinite;
}
.wa-float__icon{ width: 30px; height: 30px; fill: white; }
@keyframes wa-pulse{
  0%, 76%, 100%{ transform: scale(1); box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.15); }
  82%{ transform: scale(1.12); box-shadow: 0 8px 30px rgba(37,211,102,0.65), 0 2px 8px rgba(0,0,0,0.15); }
  88%{ transform: scale(1); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  padding: calc(56px + var(--header-h)) 0 40px;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(27,58,115,0.10), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero__wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero__eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.hero__title{
  font-family: var(--font-display);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero__title-line{
  display:block;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
}
.hero__title-line--ink{ color: var(--navy-deep); }
.hero__title-line--accent{ color: var(--navy); margin-top: 4px; }
.hero__dot{ color: var(--red); }

.hero__lede{
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero__cta{
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* Entrance animation is opt-in via a JS-added class so content is never
   stuck invisible if JS or animation support is unavailable. */
.hero__eyebrow.reveal,
.hero__title-line.reveal,
.hero__lede.reveal,
.hero__cta.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero__eyebrow.reveal.is-visible,
.hero__title-line.reveal.is-visible,
.hero__lede.reveal.is-visible,
.hero__cta.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(229,56,77,0.32);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(229,56,77,0.4); }
.btn--ghost{
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover{ border-color: var(--navy); background: var(--white); }

/* ---- Device illustration ---- */
.device{
  position: relative;
  margin: 52px auto 8px;
  max-width: 480px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.device.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.device.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.device__laptop{
  position: relative;
  width: 100%;
  z-index: 2;
}
.device__screen{
  background: var(--navy-deep);
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 14px;
  box-shadow: 0 30px 60px -20px rgba(15,30,61,0.45);
}
.device__browser-bar{
  display:flex;
  gap:6px;
  padding: 2px 4px 10px;
}
.device__browser-bar span{
  width:7px; height:7px; border-radius:50%;
  background: rgba(255,255,255,0.25);
}
.device__content{
  display:flex;
  gap: 8px;
  background: var(--white);
  border-radius: 8px;
  overflow:hidden;
  min-height: 150px;
}
.device__preview{
  flex: 1.3;
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.device__preview-hero{
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--paper-alt), #D8E1F0);
}
.device__preview-row{ display:flex; gap:6px; }
.device__preview-block{
  flex:1;
  height: 22px;
  border-radius: 5px;
  background: var(--paper-alt);
}
.device__preview-block--accent{ background: var(--red); }
.device__preview-line{
  height: 6px;
  border-radius: 3px;
  background: var(--paper-alt);
}
.device__preview-line--short{ width: 60%; }
.device__code{
  flex:1;
  background: #0B1730;
  padding: 12px 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
  color: #E5384D;
  white-space: pre;
  overflow:hidden;
}
.device__code .dim{ color:#5B6C93; }
.device__base{
  height: 12px;
  background: linear-gradient(180deg, #D7DEEA, #B9C4D6);
  border-radius: 0 0 10px 10px;
  margin-top: -2px;
  box-shadow: 0 10px 18px -8px rgba(15,30,61,0.3);
}
.device__accessory{
  position: absolute;
  bottom: 6px;
  opacity: 0.9;
  animation: float 5s ease-in-out infinite;
}
.device__accessory--cup{
  left: -4%;
  width: 15%;
  height: 90px;
  background: linear-gradient(180deg, var(--white), var(--paper-alt));
  border-radius: 8px 8px 14px 14px;
  border: 2px solid var(--navy-deep);
  z-index: 1;
}
.device__accessory--plant{
  right: -2%;
  width: 16%;
  height: 100px;
  z-index: 1;
  background:
    radial-gradient(circle at 30% 20%, #2F6B4F 0 18px, transparent 19px),
    radial-gradient(circle at 60% 10%, #2F6B4F 0 16px, transparent 17px),
    radial-gradient(circle at 45% 30%, #2F6B4F 0 20px, transparent 21px);
  animation-delay: 0.6s;
}
.device__accessory--plant::after{
  content:"";
  position:absolute;
  bottom:0; left: 15%;
  width: 70%;
  height: 40%;
  background: var(--paper-alt);
  border: 2px solid var(--navy-deep);
  border-radius: 4px;
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

/* =========================================================
   Benefits
   ========================================================= */
.benefits{ padding: 44px 0; }
.benefits .section__wrap{
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.benefit{
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 26px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.benefit:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(15,30,61,0.35); }
.benefit__icon{
  width: 48px; height:48px;
  border-radius: 50%;
  border: 1.6px solid var(--navy);
  color: var(--navy);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.benefit__icon svg{ width: 24px; height:24px; }
.benefit__title{
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.benefit__text{ color: var(--ink-soft); line-height: 1.55; font-size: 0.95rem; }

@media (min-width: 860px){
  .benefits .section__wrap{ grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Solutions
   ========================================================= */
.solutions{ padding: 20px 0 56px; }
.section__heading{
  display:flex;
  align-items:center;
  gap: 16px;
  margin-bottom: 34px;
}
.section__rule{
  flex: 1;
  height: 2px;
  background: var(--red);
  max-width: 44px;
}
.section__title{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  color: var(--navy-deep);
  text-align:center;
  letter-spacing: -0.01em;
}

.solutions__grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.solution{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 20px 14px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 12px;
  position: relative;
  overflow:hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.solution::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(120px 90px at 50% 0%, rgba(27,58,115,0.10), transparent 70%);
  opacity:0;
  transition: opacity 0.3s ease;
}
.solution:hover{
  transform: translateY(-3px);
  border-color: var(--navy);
  box-shadow: 0 18px 32px -22px rgba(15,30,61,0.4);
}
.solution:hover::before{ opacity:1; }
.solution__icon{
  width: 46px; height:46px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.solution__icon svg{ width:24px; height:24px; }
.solution__label{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

@media (min-width: 640px){
  .solutions__grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px){
  .solutions__grid{ grid-template-columns: repeat(5, 1fr); }
}

/* =========================================================
   Approach panel
   ========================================================= */
.approach{ padding: 12px 0 56px; }
.approach__card{
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  padding: 34px 28px;
  display:grid;
  gap: 30px;
}
.approach__icon{
  width: 46px; height:46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.approach__icon svg{ width:24px; height:24px; }
.approach__title{
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.approach__text{ color: var(--ink-soft); line-height: 1.65; font-size: 0.98rem; }
.approach__list{ display:grid; gap: 14px; }
.approach__list li{
  display:flex; align-items:center; gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-deep);
}
.approach__list li svg{
  width: 20px; height:20px; flex-shrink:0;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

@media (min-width: 860px){
  .approach__card{ grid-template-columns: 1.3fr 1fr; align-items:center; padding: 44px; }
}

/* =========================================================
   CTA banner
   ========================================================= */
.cta{
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 130%);
  padding: 48px 0;
  position: relative;
  overflow:hidden;
}
.cta::after{
    content: "";
    position: absolute;
    right: -10%;
    top: -40%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(229,56,77,.18), transparent 65%);
    pointer-events: none;
}
.cta__wrap{
  position: relative;
  display:flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
}
.cta__headline{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--white);
  line-height: 1.15;
}
.cta__sub{
  font-family: var(--font-display);
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  color: #FFD54A;
  margin-top: 6px;
}
.cta__tags{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 18px; }
.tag{
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.tag--red{ background: var(--red); color: var(--white); }
.tag--outline{ border: 1.5px solid rgba(255,255,255,0.5); color: var(--white); }

.cta__wa{
  display:flex;
  align-items:center;
  gap: 14px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-m);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
  width: 100%;
}
.cta__wa:hover{ transform: translateY(-2px); }
.cta__wa-icon{ width: 38px; height:38px; fill: var(--green); flex-shrink:0; }
.cta__wa-label{ display:block; font-size: 0.75rem; color: var(--ink-soft); font-weight:600; }
.cta__wa-number{ display:block; font-family: var(--font-mono); font-size: 1.25rem; font-weight:700; color: var(--navy-deep); }

@media (min-width: 720px){
  .cta__wrap{ flex-direction: row; justify-content: space-between; align-items:center; }
  .cta__wa{ width:auto; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer{ background: var(--paper-alt); padding: 40px 0; }
.footer__wrap{
  display:flex;
  flex-direction: column;
  gap: 28px;
}
.footer__person{ display:flex; gap: 18px; align-items:center; }
.footer__photo{
  width: 84px; height: auto;
  border-radius: var(--radius-s);
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 8px 18px -8px rgba(15,30,61,0.3);
}
.footer__name{
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy-deep);
}
.footer__role{ font-weight:700; color: var(--navy); font-size: 0.92rem; margin-top:2px; }
.footer__services{ color: var(--ink-soft); font-size: 0.82rem; margin-top: 4px; }

.footer__mission{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.footer__mission-icon{
  width: 40px; height:40px; flex-shrink:0;
  color: var(--navy);
  display:flex; align-items:center; justify-content:center;
}
.footer__mission-icon svg{ width:26px; height:26px; }
.footer__mission p{ color: var(--ink-soft); font-size: 0.92rem; line-height:1.5; }

@media (min-width: 720px){
  .footer__wrap{ flex-direction: row; justify-content: space-between; align-items:center; }
  .footer__mission{ border-top:none; padding-top:0; border-left: 1px solid var(--line); padding-left: 28px; max-width: 380px; }
}

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

/* =========================================================
   Sticky navigation header
   ========================================================= */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 600;
  height: var(--header-h);
  background: transparent;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-nav__wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-nav.is-scrolled{
  background: rgba(238,242,248,0.82);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: 0 10px 30px -20px rgba(15,30,61,0.35);
}

.site-nav__brand{ display:flex; align-items:center; flex-shrink:0; }
.site-nav__brand-mark{
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
.site-nav__brand-dot{ color: var(--red); }

.site-nav__links{
  display: none;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
}
@media (min-width: 860px){
  .site-nav__links{ display: flex; }
}

.site-nav__link{
  position: relative;
  padding: 8px 2px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}
.site-nav__link::after{
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transition: right 0.25s ease;
}
.site-nav__link:hover{ color: var(--navy-deep); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after{ right: 0; }
.site-nav__link.is-active{ color: var(--navy-deep); }

.site-nav__cta{
  display: none;
  padding: 12px 22px;
  min-height: auto;
  font-size: 0.85rem;
  flex-shrink: 0;
}
@media (min-width: 860px){
  .site-nav__cta{ display: inline-flex; }
}

.site-nav__burger{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 860px){
  .site-nav__burger{ display: none; }
}
.site-nav__burger span{
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-deep);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-nav__burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.site-nav__burger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.site-nav__burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile slide-in menu ---- */
body.no-scroll{ overflow: hidden; }

.mobile-menu{
  position: fixed;
  inset: 0;
  z-index: 700;
  visibility: hidden;
}
.mobile-menu.is-open{ visibility: visible; }

.mobile-menu__backdrop{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: rgba(15,30,61,0.45);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open .mobile-menu__backdrop{ opacity: 1; }

.mobile-menu__panel{
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(82vw, 340px);
  background: var(--white);
  box-shadow: -24px 0 60px -20px rgba(15,30,61,0.45);
  padding: 22px 26px 32px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-menu.is-open .mobile-menu__panel{ transform: translateX(0); }

.mobile-menu__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__close{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--navy-deep);
  cursor: pointer;
}

.mobile-menu__link{
  padding: 15px 4px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-deep);
  border-bottom: 1px solid var(--line);
}
.mobile-menu__link.is-active{ color: var(--red); }

.mobile-menu__cta{
  margin-top: 22px;
  width: 100%;
}
