/* Roali Technology Consultants — redesign layout on the existing brand
   (purple / paper / graphite palette, Manrope + Inter, original hexagon mark). */

:root {
  --paper:        #f7f6f4;
  --paper-alt:    #f0eef5;
  --panel:        #ffffff;
  --ink:          #2c2733;
  --muted:        #5a6169;
  --line:         #e7e3ee;
  --accent:       #7c4fc9;
  --accent-deep:  #4d2f85;
  --accent-light: #b79ee8;
  --accent-tint:  #efe9f7;
  --muted-accent: #cfc1e8;
  --radius:       18px;
  --maxw:         1120px;
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  transition: box-shadow .2s ease;
}
.nav--scrolled { box-shadow: 0 6px 24px -12px rgba(44, 39, 51, 0.3); }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__brand svg { flex: none; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; list-style: none; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink); }
.nav__links .btn { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.nav__links .btn--primary,
.nav__links .btn--primary:hover { color: #fff; }

/* ---------- Layout ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
}
.section__head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; margin-top: 0.7rem; }
.section__intro { color: var(--muted); font-size: 1.08rem; margin-top: 0.9rem; }
.section__note { max-width: 44rem; margin-top: 2rem; color: var(--muted); font-size: 0.96rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(78% 60% at 88% -10%, rgba(124, 79, 201, 0.10), transparent 62%),
    var(--paper);
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero__title {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  font-weight: 800;
  margin: 1rem 0 0;
  max-width: 20ch;
}
.hero__lede {
  color: var(--muted);
  font-size: 1.16rem;
  margin-top: 1.2rem;
  max-width: 34rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}
.hero__trust {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero__trust strong { color: var(--ink); font-weight: 600; }

@media (min-width: 640px) {
  .hero__anim { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__anim:nth-child(2) { animation-delay: .06s; }
  .hero__anim:nth-child(3) { animation-delay: .12s; }
  .hero__anim:nth-child(4) { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__anim { animation: none; }
}

/* ---------- Cards (services) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}
.card h3 { font-size: 1.2rem; font-weight: 800; color: var(--accent-deep); margin-bottom: 0.6rem; }
.card p { color: var(--muted); }

/* ---------- Chips (tools) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; }
.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ---------- Results band (the bold moment) ---------- */
.band { background: var(--accent-deep); color: #fff; }
.band__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.1rem, 4vw, 2.5rem);
}
.band .eyebrow { color: var(--accent-light); }
.band__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.7rem 0 0;
}
.band__intro { color: var(--muted-accent); margin-top: 0.9rem; max-width: 42rem; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.75rem 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}
.stat { border-top: 2px solid rgba(255, 255, 255, 0.28); padding-top: 1rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent-light);
}
.stat p { margin-top: 0.6rem; color: var(--muted-accent); font-size: 0.95rem; }

/* ---------- Smart Home tiles ---------- */
.smart { background: var(--paper-alt); }
.smart .section { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
}
.tile {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 1.9rem);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -22px rgba(124, 79, 201, 0.3);
}
.tile h3 { font-size: 1.1rem; font-weight: 800; color: var(--accent-deep); margin-bottom: 0.5rem; }
.tile p { color: var(--muted); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* ---------- Contact ---------- */
.contact-wrap { background: var(--accent-tint); }
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__lede { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; }
.contact__sub { color: var(--muted); margin-top: 1rem; }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.contact__list li b {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}
.contact__list a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.contact__list a:hover { color: var(--accent-deep); }
.contact__list span { color: var(--ink); font-size: 1.02rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #b7afc4;
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav__brand { font-size: 0.98rem; }
  .hero__lede { font-size: 1.06rem; }
}
