/* =========================================================
   GT-R Solutions - One page (PL + EN ready)
   ---------------------------------------------------------
   Tip: If you own a licensed webfont for Futura, host it locally
   and add @font-face for "Futura" to get a perfect match.
   ========================================================= */

:root{
  /* Extracted from GT-R-background.webp (dominant colors) */
  --bg0: #06072a;
  --bg1: #02244b;
  --bg2: #00335e;
  --cyan: #085082;
  --accent: #e7832e;
  --accent2: #be562e;
  --purple: #270d2b;
  --wine: #4b182c;

  --text: rgba(244,247,255,0.92);
  --muted: rgba(244,247,255,0.72);
  --muted2: rgba(244,247,255,0.58);

  --stroke: rgba(255,255,255,0.12);
  --stroke2: rgba(255,255,255,0.18);
  --glass: rgba(6,7,42,0.56);

  --radius: 18px;
  --shadow: 0 18px 55px rgba(0,0,0,0.42);

  --container: 1120px;

  --h-font: "Futura", "Futura PT", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --p-font: "Futura", "Futura PT", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Updated dynamically in JS based on sticky header height */
  --header-h: 72px;
  --header-offset: 86px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

section[id]{
  scroll-margin-top: var(--header-offset);
}
body{
  margin: 0;
  color: var(--text);
  font-family: var(--p-font);
  font-weight: 400;
  background:
    radial-gradient(900px 600px at 10% 5%, rgba(8,80,130,0.55), transparent 60%),
    radial-gradient(700px 500px at 90% 20%, rgba(231,131,46,0.32), transparent 55%),
    radial-gradient(900px 700px at 70% 110%, rgba(39,13,43,0.85), transparent 60%),
    linear-gradient(180deg, var(--bg0), #04041e 40%, #030316 100%);
  min-height: 100dvh;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{
  width: min(var(--container), calc(100% - 2*20px));
  margin-inline: auto;
}

.skip{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--stroke);
  z-index: 9999;
}
.skip:focus{ left: 12px; }

/* =========================================================
   Header
   ========================================================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(3,3,22,0.35);
  backdrop-filter: blur(10px);
}
.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(6,7,42,0.35);
  border: 1px solid rgba(255,255,255,0.10);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar{ display: none; }

.nav__link{
  font-family: var(--h-font);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(244,247,255,0.84);
  padding: 10px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.nav__link:hover{
  background: rgba(255,255,255,0.06);
  color: rgba(244,247,255,0.95);
  transform: translateY(-1px);
}
.nav__link.is-active{
  background: rgba(8,80,130,0.22);
  border: 1px solid rgba(8,80,130,0.35);
}

.nav__link--cta{
  background: linear-gradient(135deg, rgba(231,131,46,0.18), rgba(190,86,46,0.18));
  border: 1px solid rgba(231,131,46,0.25);
}
.nav__link--cta:hover{
  background: linear-gradient(135deg, rgba(231,131,46,0.26), rgba(190,86,46,0.22));
}

.lang{
  display: flex;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(6,7,42,0.35);
  padding: 6px;
  border-radius: 999px;
}
.lang__btn{
  border: 0;
  cursor: pointer;
  font-family: var(--h-font);
  font-weight: 750;
  letter-spacing: 0.04em;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(244,247,255,0.78);
  background: transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.lang__btn:hover{ transform: translateY(-1px); }
.lang__btn.is-active{
  color: rgba(244,247,255,0.95);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}

/* =========================================================
   Hero
   ========================================================= */
.hero{
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vh, 90px) 0;
}
.hero__bg{
  position: absolute;
  inset: 0;
  background-image: url("assets/GT-R-background.svg");
  background-size: cover;
  background-position: 22% 55%;
  filter: saturate(1.05);
  opacity: 1;
  transform: scale(1.02);
}
.hero__bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(2,36,75,0.14), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgba(231,131,46,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00) 40%, rgba(0,0,0,0.06));
}
.hero__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 10%, rgba(255,255,255,0.12) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,0.10) 50%, transparent 50%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.08) 50%, transparent 50%);
  background-size: 220px 220px;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
}

/* Prevent grid tracks from expanding due to large intrinsic media sizes */
.hero__inner > *{
  min-width: 0;
}

.hero__brand{
  display: grid;
  justify-items: center;
  min-width: 0;
  overflow: visible;
}
.hero__logo{
  width: min(620px, 100%);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 45px rgba(0,0,0,0.55));
  transform-origin: center center;
}
.hero__logo--mobile{ display: none; }

.hero__copy{
  padding: 18px 0;
  min-width: 0;
}
.hero__title{
  font-family: var(--h-font);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  font-size: clamp(34px, 4.3vw, 54px);
  margin: 0 0 14px 0;
  text-wrap: balance;
  text-shadow: 0 14px 34px rgba(0,0,0,0.55);
}
.hero__lead{
  margin: 0 0 20px 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
  text-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px 0;
}


.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 28px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(6,7,42,0.25);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.scroll-indicator__dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(244,247,255,0.8);
  animation: scrollDot 1.4s infinite ease-in-out;
}
@keyframes scrollDot{
  0%{ transform: translateY(-14px); opacity: 0.1; }
  40%{ opacity: 0.95; }
  100%{ transform: translateY(14px); opacity: 0.2; }
}

/* =========================================================
   Sections
   ========================================================= */
.section{
  padding: clamp(54px, 7.5vh, 96px) 0;
  position: relative;
}
.section__header{
  margin-bottom: 26px;
  max-width: 860px;
}
.section__title{
  font-family: var(--h-font);
  font-weight: 850;
  letter-spacing: 0.01em;
  font-size: clamp(26px, 3.1vw, 40px);
  margin: 0 0 8px 0;
}
.section__subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.section--services::before,
.section--approach::before,
.section--contact::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("assets/GT-R-background.svg");
  background-size: cover;
  background-position: 22% 55%;
  filter: blur(28px) saturate(1.05);
  mask-image: radial-gradient(closest-side, rgba(0,0,0,0.9), transparent 70%);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--h-font);
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease, box-shadow 160ms ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  border-color: rgba(231,131,46,0.30);
  background: linear-gradient(135deg, rgba(231,131,46,0.92), rgba(190,86,46,0.92));
  color: #0b0b18;
  box-shadow: 0 18px 40px rgba(231,131,46,0.16);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(231,131,46,0.22);
}

.btn--ghost{
  background: rgba(6,7,42,0.28);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(244,247,255,0.90);
}
.btn--ghost:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.06);
}

/* =========================================================
   Services grid
   ========================================================= */
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,7,42,0.52);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 20px 20px 18px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card::after{
  content: "";
  position: absolute;
  inset: -22%;
  background-image: url("assets/GT-R-background.svg");
  background-size: cover;
  background-position: 22% 55%;
  transform: rotate(10deg);
  filter: blur(18px) saturate(1.05);
  opacity: 0.12;
  z-index: 0;
}
.card::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(8,80,130,0.9), rgba(231,131,46,0.8), rgba(190,86,46,0.8));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 1;
}

.card:hover::before{ opacity: 1; }
.card > *{ position: relative; z-index: 2; }

.card__top{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.card__icon{
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,0.35));
}
.card__title{
  font-family: var(--h-font);
  font-weight: 850;
  letter-spacing: 0.01em;
  margin: 0;
  font-size: 18px;
}
.card__kicker{
  margin: 4px 0 0 0;
  color: var(--muted2);
  font-size: 12px;
}
.card__desc{
  margin: 0 0 14px 0;
  color: var(--muted);
  line-height: 1.65;
}
.card__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(244,247,255,0.84);
  line-height: 1.65;
}
.card__list li{ margin: 6px 0; }

/* subtle 3D tilt on hover (desktop only) */
@media (hover: hover) and (pointer: fine){
  .card{
    transition: transform 200ms ease, border-color 200ms ease;
  }
  .card:hover{
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.16);
  }
}

/* =========================================================
   Approach
   ========================================================= */
.steps{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.step{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,7,42,0.50);
  backdrop-filter: blur(10px);
  padding: 18px 18px 16px;
  overflow: hidden;
}
.step::after{
  content: "";
  position: absolute;
  inset: -30%;
  background-image: url("assets/GT-R-background.svg");
  background-size: cover;
  background-position: 22% 55%;
  filter: blur(20px) saturate(1.05);
  opacity: 0.10;
  transform: rotate(-8deg);
}
.step > *{ position: relative; z-index: 2; }

.step__no{
  font-family: var(--h-font);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: rgba(231,131,46,0.95);
  margin-bottom: 10px;
}
.step__title{
  font-family: var(--h-font);
  font-weight: 850;
  margin: 0 0 8px 0;
}
.step__desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.approach__note{
  margin-top: 16px;
}
.note{
  border-radius: 999px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,7,42,0.42);
  backdrop-filter: blur(10px);
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.note strong{
  font-family: var(--h-font);
}

/* =========================================================
   Contact
   ========================================================= */
.section__header--contact{ max-width: 720px; }

.contact-card{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(6,7,42,0.55);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.contact-card::after{
  content: "";
  position: absolute;
  inset: -22%;
  background-image: url("assets/GT-R-background.svg");
  background-size: cover;
  background-position: 22% 55%;
  filter: blur(18px) saturate(1.05);
  opacity: 0.13;
  transform: rotate(12deg);
}
.contact-card > *{ position: relative; z-index: 2; }

.contact-card__label{
  margin: 0 0 6px 0;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-card__value{ margin: 0; }
.contact-card__email{
  font-family: var(--h-font);
  font-weight: 850;
  font-size: 18px;
  color: rgba(244,247,255,0.94);
  text-decoration: underline;
  text-decoration-color: rgba(231,131,46,0.35);
  text-underline-offset: 3px;
}
.contact-card__hint{
  margin: 10px 0 0 0;
  color: rgba(244,247,255,0.62);
  font-size: 13px;
  line-height: 1.5;
  max-width: 70ch;
}
.contact-card__right{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  justify-self: end;
  align-self: center;
}
.contact-card__btn{
  width: 240px;
  min-width: 240px;
  max-width: 240px;
}
.contact-card__copyrow{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.contact-card__copied{
  min-height: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(231,131,46,0.92);
  max-width: 260px;
  text-align: right;
}
.contact-card__copied:empty{
  display: none;
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  margin-top: 34px;
  padding-bottom: 24px;
}
.footer__line{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  margin-bottom: 14px;
}
.footer__text{
  margin: 0;
  color: rgba(244,247,255,0.62);
  font-size: 13px;
}

/* =========================================================
   Reveal-on-scroll (IntersectionObserver)
   ========================================================= */
[data-animate]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.is-visible{
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* =========================================================
   Responsiveness
   ========================================================= */
@media (max-width: 940px){
  .hero__inner{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hero__brand{ justify-items: center; }
  .hero__copy{ text-align: center; }
  .hero__lead{ margin-inline: auto; }
  .hero__actions{ justify-content: center; }

  .grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }

  .contact-card{ grid-template-columns: 1fr; }
  .contact-card__right{
    justify-self: stretch;
    align-items: stretch;
  }
  .contact-card__copyrow{
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 700px){
  .contact-card__btn{
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .contact-card__copyrow{
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }
  .contact-card__copied{
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px){
  .hero__logo--desktop{ display: none; }
  .hero__logo--mobile{ display: block; width: min(360px, 92%); margin-inline: auto; }

  .nav{ max-width: 70vw; }

  .hero__actions{ flex-direction: column; align-items: stretch; }
  .hero__actions .btn{ width: 100%; }
}

@media (max-width: 900px){
  [data-animate]{
    transform: translateY(4px);
    transition: opacity 180ms ease-out, transform 180ms ease-out;
    will-change: auto;
  }
}

@media (max-width: 900px) and (orientation: portrait){
  .header__inner{
    justify-content: space-between;
    gap: 10px;
  }
  .nav{
    display: inline-flex;
    flex: 0 0 auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100% - 86px);
    gap: 6px;
    padding: 6px;
  }
  .nav__link{
    padding: 9px 10px;
    font-size: 13px;
  }
  .nav__link[data-nav="contact"]{ display: none; }

  .approach__note{
    display: flex;
    justify-content: center;
  }
  .note{
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 560px) and (orientation: portrait){
  .nav__link{
    padding: 8px 10px;
    font-size: 12px;
  }
  .lang{ padding: 5px; }
  .lang__btn{
    padding: 7px 9px;
    font-size: 11px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  [data-animate]{ opacity: 1; transform: none; transition: none; }
  .scroll-indicator__dot{ animation: none; }
  .btn, .nav__link, .lang__btn, .card{ transition: none; }
}
