/* =========================================================
   COPLAS Technologies — coplas.sk
   Single stylesheet, native CSS custom properties.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Core palette */
  --bg:           #FAF8F5;          /* warm off-white */
  --bg-elev:     #FFFFFF;
  --bg-soft:     #F2EEE8;          /* warm tint for sections */
  --ink:         #0E1116;          /* near-black */
  --ink-2:       #2A2F37;
  --muted:       #5B6370;
  --line:        #E5E0D8;          /* warm hairline */
  --line-strong: #D6D0C5;

  /* Accents — derived from the logo: deep brand blue + cyan */
  --accent:    #0071B4;
  --accent-2:  #01B0F0;
  --accent-3:  #3AC6F3;
  --accent-ink:#FFFFFF;
  --accent-soft: rgba(1, 176, 240, 0.10);

  /* Type */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Scale */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-sm:  8px;

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 1px 1px rgba(14, 17, 22, 0.03);
  --shadow-md: 0 4px 14px rgba(14, 17, 22, 0.06), 0 1px 2px rgba(14, 17, 22, 0.04);
  --shadow-lg: 0 18px 50px -20px rgba(14, 17, 22, 0.18), 0 2px 6px rgba(14, 17, 22, 0.06);

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.section-lead {
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
  text-wrap: pretty;
}

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-lead { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.brand-wordmark-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.brand-wordmark-tag {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav {
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 6px;
  background: var(--bg-elev);
}
.lang-switch a {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-switch a.is-active { background: var(--ink); color: #fff; }
.lang-switch a:not(.is-active):hover { color: var(--ink); }
.lang-switch span { color: var(--line-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  min-width: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-arrow {
  width: 16px; height: 16px;
  transition: transform 0.2s var(--ease);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--bg-elev); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 96px) 0 0; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 620px; }
.hero-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.hero-accent {
  display: inline-block;
  background: linear-gradient(110deg, var(--accent) 20%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 600;
  /* italic + background-clip:text klipuje pravý okraj — extra padding to kompenzuje */
  padding-inline-end: 0.12em;
  margin-inline-end: -0.04em;
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  color: var(--ink);
}
.hero-svg { width: 100%; height: 100%; }
.orbit { transform-origin: 240px 240px; }
.orbit-1 { animation: spin 60s linear infinite; }
.orbit-2 { animation: spin 38s linear infinite reverse; }
.orbit-3 { animation: pulse 6s ease-in-out infinite; transform-origin: 240px 240px; }
.float-dots circle { animation: floaty 4s ease-in-out infinite; }
.float-dots circle:nth-child(2) { animation-delay: 1s; }
.float-dots circle:nth-child(3) { animation-delay: 2s; }
.float-dots circle:nth-child(4) { animation-delay: 3s; }

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50%      { transform: scale(1.04); opacity: 1; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-1, .orbit-2, .orbit-3, .float-dots circle { animation: none; }
  html { scroll-behavior: auto; }
}

/* Trust strip */
.trust-strip {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.trust-item span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.trust-divider {
  width: 1px; height: 28px; background: var(--line-strong);
}

/* ---------- Services ---------- */
.services { padding: clamp(96px, 14vw, 160px) 0 clamp(64px, 9vw, 112px); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 280px; height: 280px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.card:hover::after { opacity: 1; }
.card:hover .card-icon {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card-icon svg { width: 28px; height: 28px; }

.card-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.card-desc {
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.card-num {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--line-strong);
  font-weight: 500;
}

/* ---------- About ---------- */
.about {
  padding: clamp(64px, 10vw, 128px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-side .section-title { margin-bottom: 32px; }
.about-meta {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.about-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-meta span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-meta strong {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.about-body p {
  font-size: 1.075rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--ink); font-weight: 600; }

.about-body-centered {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}
.about-body-centered p { text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact { padding: clamp(96px, 14vw, 160px) 0 clamp(80px, 10vw, 128px); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin-inline: auto;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  min-height: 200px;
}
.contact-card:hover:not(.contact-card-static) {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.contact-card:hover:not(.contact-card-static) .contact-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  margin-bottom: 16px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #B8BDC6;
  padding: 56px 0 36px;
}
.footer-inner {
  display: grid;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.footer-brand .brand-mark { width: 26px; height: 26px; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid #232831;
  border-bottom: 1px solid #232831;
}
.footer-legal > div { display: flex; flex-direction: column; gap: 4px; }
.footer-legal dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6E7682;
}
.footer-legal dd {
  margin: 0;
  font-size: 14px;
  color: #E5E7EB;
  font-variant-numeric: tabular-nums;
}
.footer-or { flex-basis: 100%; }
@media (min-width: 720px) {
  .footer-or { flex-basis: auto; min-width: 320px; }
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6E7682;
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; order: -1; margin-bottom: 8px; }
  .about-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card-static { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .header-inner { height: 60px; gap: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-static { grid-column: auto; }
  .trust-strip { gap: 18px 28px; justify-content: flex-start; }
  .trust-divider { display: none; }
  .hero-visual { max-width: 320px; }
  .card { padding: 28px 24px; }
  .footer-legal { gap: 20px 28px; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .lang-switch { padding: 3px 4px; }
  .lang-switch a { min-width: 26px; height: 26px; font-size: 11px; }
}
