/* =========================================================
   HiES Tech s.r.o. — landing page styles
   Dark, modern, engineering aesthetic
   ========================================================= */

:root {
  --bg:        #070a12;
  --bg-2:      #0a0e1a;
  --surface:   #10162a;
  --surface-2: #141c33;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  --text:      #e7ecf5;
  --muted:     #97a4bd;
  --faint:     #64748b;

  --accent:    #38bdf8;
  --accent-2:  #7c5cff;
  --accent-3:  #2dd4bf;
  --grad:      linear-gradient(135deg, #38bdf8 0%, #7c5cff 100%);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.65);
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Space Grotesk', var(--font-body);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-sub { color: var(--muted); font-size: 1.06rem; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #06121f;
  box-shadow: 0 12px 30px -10px rgba(56, 189, 248, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 92, 255, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-accent { color: var(--accent); }
.brand-logo { height: 36px; width: auto; }
.footer-logo { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--border-2);
  margin-left: 6px;
}
.nav .nav-cta:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.glow-1 { width: 560px; height: 560px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 70%); }
.glow-2 { width: 520px; height: 520px; bottom: -200px; left: -140px; background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%); }
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin: 6px 0 22px; }
.hero-lead { color: var(--muted); font-size: 1.15rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 500;
}
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--grad);
}

.hero-visual { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 460px; height: auto; }
.float-a { animation: floaty 7s ease-in-out infinite; }
.float-b { animation: floaty 8s ease-in-out infinite 0.6s; }
.float-c { animation: floaty 6.5s ease-in-out infinite 0.3s; }
.float-d { animation: floaty 7.5s ease-in-out infinite 0.9s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px; height: 42px;
  border: 2px solid var(--border-2);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 0; transform: translateY(-4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 24px;
}
.strip-item { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.strip-item strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip-item span { color: var(--faint); font-size: 0.88rem; }

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 16px; }

/* =========================================================
   SERVICES
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(16, 22, 42, 0.6) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }

.card-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.card-icon[data-tone="cyan"]   { color: var(--accent);   background: rgba(56, 189, 248, 0.1); }
.card-icon[data-tone="violet"] { color: var(--accent-2); background: rgba(124, 92, 255, 0.1); }
.card-icon[data-tone="teal"]   { color: var(--accent-3); background: rgba(45, 212, 191, 0.1); }

.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.card-list { display: flex; flex-direction: column; gap: 9px; }
.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text);
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 8px; height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

/* =========================================================
   WORK / APPLIED AI SHOWCASE
   ========================================================= */
.inline-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.inline-link:hover { color: var(--accent-2); border-color: var(--accent-2); }

.showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.show-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.show-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); }

.show-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  background: radial-gradient(120% 120% at 50% 0%, #16223d 0%, #0a0e1a 72%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.show-visual img,
.show-visual svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.show-card:hover .show-visual img { transform: scale(1.05); }
.show-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
}
.show-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.show-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 30px;
  flex: 1;
}
.show-body h3 { font-size: 1.35rem; }
.show-body > p { color: var(--muted); font-size: 0.98rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row li {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.link-arrow {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { color: var(--accent-2); gap: 13px; }

.showcase .show-card:nth-child(2) { transition-delay: 0.08s; }
.showcase .show-card:nth-child(3) { transition-delay: 0.12s; }
.showcase .show-card:nth-child(4) { transition-delay: 0.16s; }

/* =========================================================
   APPROACH
   ========================================================= */
.approach-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.approach-copy { position: sticky; top: 110px; }
.approach-copy .section-sub { margin-bottom: 30px; }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.feature:hover { border-color: var(--border-2); transform: translateX(4px); }
.feature-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
  width: 34px;
}
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* =========================================================
   TECHNOLOGIES
   ========================================================= */
.tech-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tech-badge {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.tech-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  background: rgba(56, 189, 248, 0.06);
}

/* =========================================================
   PROCESS
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.2rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  opacity: 0.55;
  margin-bottom: 14px;
  line-height: 1;
}
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* =========================================================
   CONTACT / CTA
   ========================================================= */
.cta-section { overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.glow-3 {
  width: 700px; height: 500px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), transparent 68%);
  filter: blur(80px);
  opacity: 0.9;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
}
.cta-inner h2 { margin-bottom: 16px; }
.cta-inner .section-sub { margin: 0 auto 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .brand-text { font-size: 1.3rem; }
.footer-tagline { color: var(--faint); font-size: 0.92rem; margin-top: 12px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  color: var(--faint);
  font-size: 0.86rem;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger children within a grid */
.cards .card:nth-child(2) { transition-delay: 0.08s; }
.cards .card:nth-child(3) { transition-delay: 0.16s; }
.steps .step:nth-child(2) { transition-delay: 0.06s; }
.steps .step:nth-child(3) { transition-delay: 0.12s; }
.steps .step:nth-child(4) { transition-delay: 0.18s; }
.feature-list .feature:nth-child(2) { transition-delay: 0.06s; }
.feature-list .feature:nth-child(3) { transition-delay: 0.12s; }
.feature-list .feature:nth-child(4) { transition-delay: 0.18s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .approach-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-copy { position: static; }
  .cards { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 16px; font-size: 1.02rem; }
  .nav .nav-cta { margin-left: 0; text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }

  .section { padding: 72px 0; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .strip-inner { grid-template-columns: 1fr; }
}

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