/* ==========================================================================
   ekaregar — landing page styles
   Self-contained, no framework. Design tokens as CSS variables.
   ========================================================================== */

:root {
  /* Brand */
  --indigo-700: #4338CA;
  --indigo-600: #4F46E5;
  --indigo-500: #6366F1;
  --indigo-50:  #EEF0FF;
  --amber:      #F59E0B;
  --amber-soft: #FBBF24;

  /* Ink / neutrals (warm) */
  --ink-900: #0B1020;
  --ink-800: #141a2e;
  --ink-700: #2b3350;
  --ink-500: #5c6480;
  --ink-400: #8a90a6;
  --ink-200: #E4E6EF;
  --ink-100: #F1F2F7;
  --ink-50:  #F8F9FC;
  --white:   #ffffff;

  /* Semantic */
  --danger: #DC2626;
  --success: #059669;

  /* System */
  --maxw: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11,16,32,.06);
  --shadow-md: 0 10px 30px rgba(11,16,32,.08);
  --shadow-lg: 0 24px 60px rgba(11,16,32,.16);
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.15; color: var(--ink-900); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--indigo-600); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.text-grad {
  background: linear-gradient(100deg, var(--amber-soft), var(--amber) 40%, #fff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--indigo-600); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,.28); }
.btn--primary:hover { background: var(--indigo-700); box-shadow: 0 10px 26px rgba(79,70,229,.36); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--block { width: 100%; }

.eyebrow {
  font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 14px;
}
.eyebrow--dark { color: var(--indigo-600); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--ink-100); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 800; font-size: 20px; color: var(--ink-900); }
.brand__mark { display: inline-flex; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand__name { font-family: var(--font-sans); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand--light { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--ink-700); transition: color .2s var(--ease); }
.nav__links > a:hover { color: var(--indigo-600); }
.nav__cta { color: #fff !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink-900); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink-900); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(99,102,241,.45), transparent 60%),
    radial-gradient(50% 60% at 90% 20%, rgba(67,56,202,.5), transparent 55%),
    radial-gradient(60% 80% at 70% 100%, rgba(245,158,11,.18), transparent 60%),
    linear-gradient(180deg, #0B1020, #0f1530);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 80%);
}
.hero__inner { position: relative; z-index: 1; padding: 84px 24px 96px; max-width: 900px; }
.hero .eyebrow { color: var(--amber-soft); }
.hero__title { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero__lead { margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 640px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__contact { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 30px; align-items: center; }
.hero__phone, .hero__wa { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: #fff; }
.hero__phone svg { color: var(--amber-soft); }
.hero__wa { color: #25D366; }
.hero__phone:hover, .hero__wa:hover { text-decoration: underline; text-underline-offset: 3px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; color: rgba(255,255,255,.7); font-size: 14.5px; font-family: var(--font-sans); font-weight: 500; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { background: var(--ink-800); border-top: 1px solid rgba(255,255,255,.06); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 24px; }
.stat { text-align: center; color: #fff; }
.stat__num { font-family: var(--font-sans); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); color: #fff; }
.stat__plus { font-family: var(--font-sans); font-weight: 800; font-size: 1.4rem; color: var(--amber); }
.stat p { color: rgba(255,255,255,.6); font-size: 14px; margin-top: 4px; }

/* ==========================================================================
   SECTION SHELL
   ========================================================================== */
.section { padding: 88px 0; }
.section--tint { background: var(--ink-50); }
.section--dark { background: var(--ink-900); color: #fff; }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.02em; }
.section__title--light { color: #fff; }
.section__sub { margin-top: 14px; color: var(--ink-500); font-size: 1.05rem; }
.section--dark .section__sub { color: rgba(255,255,255,.7); }

/* ---------- Service cards ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.card {
  flex: 1 1 210px; max-width: 264px;
  background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius);
  padding: 28px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--indigo-500); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.card__icon--web  { background: linear-gradient(135deg, #4F46E5, #6366F1); }
.card__icon--mobile { background: linear-gradient(135deg, #0EA5E9, #38BDF8); }
.card__icon--ai   { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.card__icon--iot  { background: linear-gradient(135deg, #059669, #10B981); }
.card__icon--team { background: linear-gradient(135deg, #D97706, #F59E0B); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card > p { color: var(--ink-500); font-size: .95rem; }
.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--ink-700); }
.card__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ---------- Tech strip ---------- */
.tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 820px; margin-inline: auto; }
.tech li {
  font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--ink-700);
  background: #fff; border: 1px solid var(--ink-200); padding: 11px 20px; border-radius: 999px;
  transition: transform .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tech li:hover { transform: translateY(-3px); color: var(--indigo-600); border-color: var(--indigo-500); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); }
.step__num { font-family: var(--font-sans); font-weight: 800; font-size: 2rem; color: var(--indigo-50); background: var(--indigo-600); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: .92rem; }
.step::after { content: ""; position: absolute; top: 50%; right: -14px; width: 20px; height: 2px; background: var(--ink-200); }
.step:last-child::after { display: none; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.why__lead { color: rgba(255,255,255,.78); font-size: 1.08rem; margin-bottom: 22px; }
.why__lead em { color: var(--amber-soft); font-style: normal; font-weight: 600; }
.why__list { display: grid; gap: 14px; margin-bottom: 30px; }
.why__list li { position: relative; padding-left: 30px; color: rgba(255,255,255,.82); }
.why__list li::before { content: "✔"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.why__list strong { color: #fff; }

.why__panel { position: relative; }
.why__glow { position: absolute; inset: -20px; background: radial-gradient(closest-side, rgba(99,102,241,.5), transparent); filter: blur(30px); z-index: 0; }
.codecard { position: relative; z-index: 1; background: #0d1330; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.codecard__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.codecard__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.codecard__bar span:nth-child(2) { background: #febc2e; }
.codecard__bar span:nth-child(3) { background: #28c840; }
.codecard pre { margin: 0; padding: 22px; overflow-x: auto; }
.codecard code { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace; font-size: 14px; line-height: 1.8; color: #cdd3f0; white-space: pre; }
.c-key { color: #c792ea; } .c-fn { color: #82aaff; } .c-str { color: #c3e88d; }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work__item { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.work__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.work__thumb { height: 170px; display: grid; place-items: center; position: relative; }
.work__thumb span { font-family: var(--font-sans); font-weight: 800; font-size: 2.4rem; color: rgba(255,255,255,.85); letter-spacing: .05em; }
.work__thumb--1 { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.work__thumb--2 { background: linear-gradient(135deg, #7C3AED, #A855F7); }
.work__thumb--3 { background: linear-gradient(135deg, #059669, #0EA5E9); }
.work__body { padding: 24px; }
.work__body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.work__body p { color: var(--ink-500); font-size: .93rem; margin-bottom: 14px; }
.tag { display: inline-block; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--indigo-600); background: var(--indigo-50); padding: 5px 12px; border-radius: 999px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.quote p { color: var(--ink-800); font-size: 1.02rem; font-style: italic; margin-bottom: 20px; }
.quote p::before { content: "\201C"; font-family: var(--font-sans); font-size: 3rem; line-height: 0; color: var(--amber); vertical-align: -.35em; margin-right: 4px; }
.quote footer strong { display: block; font-family: var(--font-sans); color: var(--ink-900); }
.quote footer span { font-size: .88rem; color: var(--ink-400); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.contact__list { display: grid; gap: 20px; margin-top: 28px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--ink-200); color: var(--indigo-600); }
.contact__label { display: block; font-size: 13px; color: var(--ink-400); }
.contact__list a { font-family: var(--font-sans); font-weight: 600; color: var(--ink-900); }
.contact__list a:hover { color: var(--indigo-600); }

.form-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--ink-800); }
.field label span { color: var(--danger); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink-900);
  padding: 12px 14px; border: 1.5px solid var(--ink-200); border-radius: var(--radius-sm);
  background: var(--ink-50); transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--indigo-500); background: #fff; box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fff5f5; }
.field__error { color: var(--danger); font-size: 12.5px; min-height: 0; }
.field.is-invalid .field__error { min-height: 16px; }

.form-note { margin-top: 14px; font-size: 14px; text-align: center; }
.form-note.is-success { color: var(--success); font-weight: 600; }
.form-note.is-error { color: var(--danger); font-weight: 600; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink-900); color: rgba(255,255,255,.7); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 40px; align-items: start; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__brand p { margin-top: 14px; max-width: 340px; font-size: .95rem; }
.footer__nav { display: grid; gap: 12px; }
.footer__nav a { font-family: var(--font-sans); font-weight: 500; color: rgba(255,255,255,.75); }
.footer__nav a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); font-family: var(--font-sans); font-weight: 700; font-size: 13px; color: #fff; transition: background .2s var(--ease); }
.footer__social a:hover { background: var(--indigo-600); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 24px; font-size: 13.5px; }

/* ==========================================================================
   FLOATING ACTIONS
   ========================================================================== */
.fab { position: fixed; right: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 0; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), opacity .25s var(--ease); }
.fab:hover { transform: translateY(-3px); }
.fab--wa { bottom: 22px; background: #25D366; color: #fff; }
.fab--top { bottom: 86px; background: var(--indigo-600); color: #fff; opacity: 0; pointer-events: none; }
.fab--top.is-visible { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .work, .quotes { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--ink-200); box-shadow: var(--shadow-md);
    padding: 8px 24px 20px; transform: translateY(-140%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links > a { padding: 14px 0; border-bottom: 1px solid var(--ink-100); }
  .nav__cta { margin-top: 12px; border-bottom: 0 !important; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 60px 24px 72px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .steps, .work, .quotes { grid-template-columns: 1fr; }
  .card { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; }
  .container { padding-inline: 18px; }
}

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