/* =========================================================================
   Teknology homepage
   Recreated from the Claude Design handoff (hero variant B — violet).
   ========================================================================= */

:root {
  --bg:      #FFFCF7;
  --ink:     #221B33;
  --muted:   #6b6478;
  --violet:  #5D4EDB;
  --violet2: #7A6CF0;
  --yellow:  #FFC44D;
  --orange:  #FF6B4A;
  --teal:    #1FC9A0;
  --maxw:    1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Nunito', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; }

.page { position: relative; width: 100%; overflow: hidden; }

/* -------------------------------------------------------------------------
   Animations
   ------------------------------------------------------------------------- */
@keyframes drift  { 0%{transform:translate(0,0) rotate(0deg);} 50%{transform:translate(24px,-30px) rotate(8deg);} 100%{transform:translate(0,0) rotate(0deg);} }
@keyframes bob    { 0%{transform:translateY(0);} 50%{transform:translateY(-16px);} 100%{transform:translateY(0);} }
@keyframes bobS   { 0%{transform:translateY(0);} 50%{transform:translateY(-9px);} 100%{transform:translateY(0);} }
@keyframes morph  { 0%{border-radius:42% 58% 63% 37% / 42% 45% 55% 58%;} 50%{border-radius:58% 42% 33% 67% / 63% 58% 42% 37%;} 100%{border-radius:42% 58% 63% 37% / 42% 45% 55% 58%;} }
@keyframes morphB { 0%{border-radius:63% 37% 47% 53% / 55% 48% 52% 45%;} 50%{border-radius:37% 63% 58% 42% / 45% 55% 45% 55%;} 100%{border-radius:63% 37% 47% 53% / 55% 48% 52% 45%;} }
@keyframes marquee{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* Decorative floating blobs (shared) */
.blob { position: absolute; display: block; pointer-events: none; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn--light {
  color: var(--violet);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.2);
}
.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.btn--ghost {
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); }

/* -------------------------------------------------------------------------
   Eyebrow labels & section headings
   ------------------------------------------------------------------------- */
.eyebrow {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .4px;
}
.eyebrow--orange { color: #E1502F; }
.eyebrow--violet { color: #5B4BD6; }
.eyebrow--teal   { color: #12987A; }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,9vw,110px) clamp(20px,5vw,40px) 0; }
.pillars.section { padding-top: clamp(40px,7vw,84px); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-head__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem,4.6vw,3.4rem);
  line-height: 1.06;
  letter-spacing: -1px;
  margin: 10px 0 0;
  text-wrap: balance;
}
.section-head__text {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 600;
  margin-top: 14px;
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid--gap-brands { margin-top: 44px; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: radial-gradient(120% 120% at 85% 5%, #9C8CFF 0%, var(--violet2) 48%, var(--violet) 100%);
  padding: clamp(16px,3vw,26px) clamp(20px,5vw,64px) clamp(110px,14vw,180px);
}
.blob--hero-a {
  top: -50px; left: -50px; width: 320px; height: 320px;
  background: rgba(255,196,77,.4); filter: blur(6px);
  animation: morph 13s ease-in-out infinite, drift 17s ease-in-out infinite;
}
.blob--hero-b {
  bottom: 0; left: 38%; width: 220px; height: 220px;
  background: rgba(31,201,160,.34); filter: blur(6px);
  animation: morphB 11s ease-in-out infinite, bob 8s ease-in-out infinite;
}

/* Nav */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.nav__logo {
  width: 34px; height: 34px; display: inline-block;
  border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  animation: morph 9s ease-in-out infinite;
}
.nav__name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.5rem; letter-spacing: -.5px; }

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-weight: 700; font-size: 1rem; color: #fff; text-decoration: none;
  padding: 9px 15px; border-radius: 999px; transition: background .25s;
}
.nav__link:hover { background: rgba(255,255,255,.16); }
.nav__cta {
  margin-left: 8px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1rem;
  color: var(--violet); text-decoration: none;
  padding: 11px 22px; border-radius: 999px; background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
  transition: transform .25s, box-shadow .25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,0,0,.26); }

/* Hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: rgba(255,255,255,.16);
  border: none; border-radius: 12px;
  cursor: pointer;
}
.nav__toggle span { display: block; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: clamp(48px,9vw,110px) auto 0;
  text-align: center;
  color: #fff;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.2);
  font-weight: 800; font-size: .9rem;
}
.hero__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem,5.6vw,4.9rem);
  line-height: 1.03;
  letter-spacing: -1.5px;
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero__lede {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: clamp(1.05rem,1.6vw,1.28rem);
  line-height: 1.55;
  font-weight: 600;
  color: rgba(255,255,255,.94);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; margin-top: 32px;
}
.hero__wave {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 140px; display: block;
}

/* -------------------------------------------------------------------------
   Pillars
   ------------------------------------------------------------------------- */
.pillar {
  background: #fff;
  border-radius: 28px;
  padding: 32px 30px;
  box-shadow: 0 16px 40px rgba(34,27,51,.06);
  border: 1px solid rgba(34,27,51,.05);
}
.pillar__icon {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; font-size: 1.7rem;
  border-radius: 38% 62% 55% 45% / 55% 42% 58% 45%;
  animation: morph 10s ease-in-out infinite;
}
.pillar__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600; font-size: 1.5rem;
  margin: 20px 0 8px; letter-spacing: -.4px;
}
.pillar__body { font-size: 1.02rem; line-height: 1.55; color: var(--muted); font-weight: 600; }

/* -------------------------------------------------------------------------
   Brands
   ------------------------------------------------------------------------- */
.brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(34,27,51,.06);
  border: 1px solid rgba(34,27,51,.05);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.brand:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(34,27,51,.14);
}
.brand__blob {
  position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px;
  opacity: .16;
  border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%;
  animation: morph 11s ease-in-out infinite;
}
.brand__logo-wrap { position: relative; z-index: 2; display: flex; align-items: center; height: 50px; }
.brand__logo { max-height: 40px; max-width: 200px; width: auto; object-fit: contain; }
.brand__kind {
  position: relative; z-index: 2; align-self: flex-start;
  font-weight: 800; font-size: .82rem;
  padding: 5px 12px; border-radius: 999px; margin-top: 20px;
}
.brand__desc {
  position: relative; z-index: 2;
  font-size: 1.04rem; line-height: 1.55; color: var(--muted);
  font-weight: 600; margin-top: 12px;
}
.brand__link {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 20px;
  font-family: 'Fredoka', sans-serif; font-weight: 600;
}

/* -------------------------------------------------------------------------
   Clients marquee
   ------------------------------------------------------------------------- */
.clients {
  margin-top: clamp(56px,9vw,110px);
  padding: clamp(48px,7vw,88px) 0;
  background: #fff;
  border-top: 1px solid rgba(34,27,51,.05);
  border-bottom: 1px solid rgba(34,27,51,.05);
}
.clients .section-head { padding: 0 clamp(20px,5vw,40px); }
.clients__marquee {
  margin-top: 44px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients__track {
  display: flex;
  width: max-content;
  gap: 56px;
  align-items: center;
  padding-left: 56px;
  animation: marquee 34s linear infinite;
}
.clients__logo {
  height: clamp(48px,5vw,66px); width: auto; object-fit: contain;
  opacity: .55; filter: grayscale(1);
  transition: opacity .25s, filter .25s;
}
.clients__logo:hover { opacity: 1; filter: grayscale(0); }

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px,5vw,64px);
  align-items: center;
}
.about__title { text-align: left; }
.about__text {
  font-size: 1.12rem; line-height: 1.6; color: var(--muted);
  font-weight: 600; margin-top: 16px;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.stat__num {
  font-family: 'Fredoka', sans-serif; font-weight: 700;
  font-size: clamp(2rem,3.4vw,2.8rem); letter-spacing: -1px;
}
.stat__label { font-weight: 700; font-size: .98rem; color: var(--muted); }

.about__art { position: relative; height: clamp(320px,38vw,460px); }
.about__blob { position: absolute; display: block; }
.about__blob--1 {
  inset: 0; margin: auto; width: 80%; height: 80%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  animation: morph 12s ease-in-out infinite;
  box-shadow: 0 30px 60px rgba(255,107,74,.28);
}
.about__blob--2 {
  left: 2%; top: 8%; width: 44%; height: 44%;
  background: linear-gradient(135deg, var(--violet2), #57C5F7);
  border-radius: 58% 42% 40% 60% / 45% 55% 45% 55%;
  animation: morphB 10s ease-in-out infinite, bob 7s ease-in-out infinite;
  box-shadow: 0 20px 44px rgba(122,108,240,.3);
}
.about__blob--3 {
  right: 4%; bottom: 6%; width: 38%; height: 38%;
  background: linear-gradient(135deg, var(--teal), #4EE3BC);
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  animation: morph 9s ease-in-out infinite, bobS 6s ease-in-out infinite;
  box-shadow: 0 20px 44px rgba(31,201,160,.3);
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact { margin-top: clamp(56px,9vw,110px); padding: clamp(20px,5vw,40px); }
.contact__card {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
  border-radius: 40px;
  background: radial-gradient(120% 140% at 80% 0%, var(--violet2) 0%, var(--violet) 55%, #4A3CC4 100%);
  color: #fff;
  padding: clamp(40px,7vw,80px);
}
.blob--contact-a {
  left: -60px; bottom: -60px; width: 280px; height: 280px;
  background: rgba(255,196,77,.34); filter: blur(4px);
  animation: morph 12s ease-in-out infinite, drift 16s ease-in-out infinite;
}
.blob--contact-b {
  right: 8%; top: -40px; width: 180px; height: 180px;
  background: rgba(31,201,160,.34); filter: blur(4px);
  animation: morphB 10s ease-in-out infinite, bob 8s ease-in-out infinite;
}
.contact__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 40px; align-items: end;
}
.contact__title {
  font-family: 'Fredoka', sans-serif; font-weight: 600;
  font-size: clamp(2.2rem,4.8vw,3.6rem);
  line-height: 1.04; letter-spacing: -1px; text-wrap: balance;
}
.contact__text {
  font-size: 1.14rem; line-height: 1.55; font-weight: 600;
  color: rgba(255,255,255,.9); margin-top: 16px; max-width: 460px;
}
.contact__lead .btn { margin-top: 28px; }
.contact__details { display: flex; flex-direction: column; gap: 18px; }
.contact__label { font-weight: 800; font-size: .8rem; letter-spacing: .6px; opacity: .7; }
.contact__value {
  font-family: 'Fredoka', sans-serif; font-weight: 500;
  font-size: 1.2rem; margin-top: 4px;
}
.contact__value--link { color: #fff; text-decoration: none; display: inline-block; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  max-width: var(--maxw);
  margin: 36px auto 0;
  display: flex; flex-wrap: wrap;
  gap: 16px; align-items: center; justify-content: space-between;
  padding: 0 4px 40px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__logo {
  width: 28px; height: 28px; display: inline-block;
  border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%;
  background: linear-gradient(135deg, var(--orange), var(--violet2));
  animation: morph 9s ease-in-out infinite;
}
.footer__name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.2rem; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { color: #a49dad; font-weight: 700; font-size: .92rem; }

/* -------------------------------------------------------------------------
   Reveal-on-scroll (JS adds .is-visible)
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   Contact modal (native <dialog>)
   ------------------------------------------------------------------------- */
.modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 32px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 90px rgba(34,27,51,.35);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(34,27,51,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__panel {
  position: relative;
  padding: clamp(28px,5vw,44px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: 32px;
}
.modal__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; line-height: 1;
  color: var(--muted);
  background: rgba(34,27,51,.06);
  border: none; border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.modal__close:hover { background: rgba(34,27,51,.12); color: var(--ink); transform: rotate(90deg); }
.modal__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.7rem,3.4vw,2.3rem);
  line-height: 1.08;
  letter-spacing: -.6px;
  margin: 8px 0 0;
  text-wrap: balance;
}
.modal__text {
  font-size: 1.02rem; line-height: 1.55;
  color: var(--muted); font-weight: 600;
  margin-top: 12px;
}
.modal__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.modal__info-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(34,27,51,.06);
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
a.modal__info-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(34,27,51,.1);
}
.modal__info-item:last-child { grid-column: 1 / -1; }
.modal__info-label { font-weight: 800; font-size: .72rem; letter-spacing: .6px; color: var(--muted); }
.modal__info-value { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 1.05rem; }
.modal__form {
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(34,27,51,.08);
}

/* Open/close animation (progressive — falls back to instant if unsupported) */
.modal, .modal::backdrop {
  transition: opacity .25s ease, transform .25s ease, overlay .25s allow-discrete, display .25s allow-discrete;
}
.modal { opacity: 0; transform: translateY(14px) scale(.98); }
.modal[open] { opacity: 1; transform: none; }
.modal::backdrop { opacity: 0; }
.modal[open]::backdrop { opacity: 1; }
@starting-style {
  .modal[open] { opacity: 0; transform: translateY(14px) scale(.98); }
  .modal[open]::backdrop { opacity: 0; }
}
body.is-modal-open { overflow: hidden; }

@media (max-width: 460px) {
  .modal__info { grid-template-columns: 1fr; }
  .modal__info-item:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .modal, .modal::backdrop { transition: none; }
  .modal { transform: none; }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .grid, .about, .contact__inner { grid-template-columns: 1fr; }
  .about__art { order: -1; }
  .contact__inner { align-items: start; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 20px 50px rgba(34,27,51,.22);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { color: var(--ink); text-align: center; }
  .nav__link:hover { background: rgba(93,78,219,.1); }
  .nav__cta { margin-left: 0; text-align: center; box-shadow: none; background: var(--violet); color: #fff; }
  .nav__cta:hover { transform: none; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn, .contact__lead .btn { width: 100%; justify-content: center; }
}
