/* ==========================================================================
   Appex s.r.o. — corporate website
   ========================================================================== */

:root {
  --bg: #0b0b12;
  --bg-2: #10101a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ecedf3;
  --muted: #9ea0b2;
  --muted-2: #7b7d90;
  --brand-1: #818cf8;
  --brand-2: #8b5cf6;
  --brand-3: #22d3ee;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(48rem 32rem at 100% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(52rem 40rem at 50% 120%, rgba(139, 92, 246, 0.14), transparent 60%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

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

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-1);
  margin-bottom: 14px;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 18px; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

.gradient-text {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2) 45%, var(--brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* -------------------------------------------------------------------------- */
/*  Brand / logo                                                              */
/* -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { width: 34px; height: 34px; display: block; flex: none; }
.brand-word {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.16em;
  color: var(--text);
}

/* -------------------------------------------------------------------------- */
/*  Nav                                                                       */
/* -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  color: #0b0b12;
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(139, 92, 246, 0.75); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* -------------------------------------------------------------------------- */
/*  Hero                                                                      */
/* -------------------------------------------------------------------------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .logo-mark { width: 76px; height: 76px; margin: 0 auto 26px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 20px;
}
.hero .lead { margin: 0 auto 34px; font-size: 1.18rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Real app screenshot inside product blocks */
.product-shot {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 500px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 70px rgba(139, 92, 246, 0.42));
}

.badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.badge {
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------- */
/*  Cards / grids                                                             */
/* -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card p { color: var(--muted); margin: 0; }

.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(129,140,248,0.22), rgba(34,211,238,0.18));
  border: 1px solid var(--border-strong);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

/* -------------------------------------------------------------------------- */
/*  Product (LuvYa) block                                                     */
/* -------------------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(139,92,246,0.10), rgba(34,211,238,0.06));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 44px;
}
.product h2 { margin-top: 6px; }
.product-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.product-visual {
  display: grid;
  place-items: center;
}
.phone {
  width: 210px;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  background: linear-gradient(160deg, #171727, #0e0e18);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.55);
  position: relative;
  overflow: hidden;
  padding: 18px 14px;
}
.phone::before {
  content: "";
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 66px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.18);
}
.phone-chip {
  margin-top: 26px;
  height: 14px; border-radius: 8px;
  background: rgba(255,255,255,0.10);
}
.phone-chip.w70 { width: 70%; }
.phone-chip.w45 { width: 45%; }
.phone-card {
  margin-top: 14px; height: 64px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(129,140,248,0.30), rgba(34,211,238,0.18));
  border: 1px solid var(--border);
}
.phone-card.alt { background: linear-gradient(120deg, rgba(139,92,246,0.26), rgba(129,140,248,0.14)); }

/* -------------------------------------------------------------------------- */
/*  Contact                                                                   */
/* -------------------------------------------------------------------------- */
.contact-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-item .card-icon { margin: 0; flex: none; }
.contact-item .label { font-size: 0.8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .value { font-weight: 600; font-size: 1.02rem; }
.contact-item a.value:hover { color: var(--brand-1); }

/* -------------------------------------------------------------------------- */
/*  Legal / content pages                                                     */
/* -------------------------------------------------------------------------- */
.doc { max-width: 820px; margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 10px; }
.doc .updated { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--brand-1); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--brand-1); text-decoration: underline; text-underline-offset: 3px; }
.doc .callout {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand-2);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}
.doc .callout p { color: var(--text); margin: 0; }

.breadcrumb { margin-bottom: 28px; font-size: 0.9rem; color: var(--muted-2); }
.breadcrumb a:hover { color: var(--brand-1); }

/* -------------------------------------------------------------------------- */
/*  FAQ                                                                       */
/* -------------------------------------------------------------------------- */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand-1); font-size: 1.4rem; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* -------------------------------------------------------------------------- */
/*  Footer                                                                    */
/* -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 56px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer p { color: var(--muted); font-size: 0.92rem; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin: 0 0 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.reg-list { list-style: none; padding: 0; margin: 0; }
.reg-list li { color: var(--muted); font-size: 0.9rem; margin-bottom: 6px; }
.reg-list span { color: var(--muted-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.86rem;
}

/* -------------------------------------------------------------------------- */
/*  Responsive                                                                */
/* -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 32px; text-align: center; }
  .product-visual { order: -1; }
  .product-links { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }

  .hero-split { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-split .logo-mark { margin: 0 auto 22px; }
  .hero-split .lead { margin-left: auto; margin-right: auto; }
  .hero-split .hero-actions,
  .hero-split .badge-row { justify-content: center; }
  .hero-shot { order: -1; }
  .hero-shot img { max-height: 520px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 48px; }
}
