/* 
  Aviant Core - Main Stylesheet
  Consolidated CSS for EN/UK landing pages
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Світла тема (Light) */
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-dark: #0F172A;
  --text: #0F172A;
  --text-muted: #4B5563;
  --accent: #3B5BDB;
  --accent-hover: #2F4AC7;
  --border: #E2E8F0;
  --card-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

/* Темна тема (Dark) */
html.dark {
  --bg: #0B1120;
  --bg-alt: #162032; 
  --bg-dark: #020617;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --accent: #60A5FA; 
  --accent-hover: #3B82F6;
  --border: #1E293B;
  --card-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Honeypot — приховане поле для ботів */
.ohnohoney {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  overflow: hidden;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
html.dark header {
  background: rgba(11, 17, 32, 0.85);
}
.header-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.logo-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s ease;
}
.logo-light { display: block; }
.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.logo-text span { color: var(--accent); }

/* Header Actions & Language Switch */
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
}
.lang-switch a { text-decoration: none; color: var(--text-muted); transition: color 0.2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { color: var(--text); pointer-events: none; }
.lang-switch .separator { color: var(--border); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--accent);
}

.btn-icon {
  background: transparent; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.btn-icon:hover { background: var(--bg-alt); color: var(--accent); border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none; outline: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
html.dark .btn-primary { color: #0F172A; font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 14px rgba(59,91,219,.2); }
html.dark .btn-primary:hover { box-shadow: 0 4px 14px rgba(96,165,250,.2); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-alt); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
html.dark .btn-ghost { background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.1); }
html.dark .btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }

/* ── HERO ── */
.hero { padding: 80px 24px 60px; text-align: center; }
.hero-inner { max-width: 760px; margin: 0 auto; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-alt); color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px;
  font-size: 13px; font-weight: 500; margin-bottom: 28px;
}
.badge-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); }

.hero h1 {
  font-size: clamp(36px, 6vw, 60px); font-weight: 700;
  line-height: 1.12; letter-spacing: -1.5px;
  color: var(--text); margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-muted);
  max-width: 600px; margin: 0 auto 36px; font-weight: 400;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn-outline { background: var(--bg); }

.hero-stats {
  margin-top: 72px; display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── SECTIONS ── */
section { padding: 80px 24px; transition: background-color 0.3s; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); }

.section-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1px;
  color: var(--text); margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 520px; line-height: 1.7; }

/* ── APPROACH CARDS ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 48px; }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, background-color 0.3s, border-color 0.3s;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
html.dark .card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.4); border-color: var(--accent); }
.card-icon {
  width: 44px; height: 44px;
  background: var(--bg-alt); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; border: 1px solid var(--border);
}
.card-icon svg { width:22px; height:22px; stroke:var(--accent); fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ── SERVICES ── */
.services-list { margin-top: 56px; display: flex; flex-direction: column; gap: 0; }
.service-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--border);
  max-width: 680px;
}
.service-item:last-child { border-bottom: 1px solid var(--border); }
.service-num {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); margin-bottom: 14px;
}
.service-item h3 { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 12px; color: var(--text); }
.service-item p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.tag {
  display: inline-block; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 10px; margin: 3px;
  font-size: 12px; font-weight: 500; color: var(--text-muted);
}

/* ── PRODUCT ── */
.product-section {
  background: var(--bg-dark); color: #F8FAFC;
  padding: 80px 24px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
html.dark .product-section { background: #000000; border-color: rgba(255,255,255,0.05); } 

.product-inner {
  max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.product-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.05); color: #A5B4FC;
  border: 1px solid rgba(165,180,252,.2); border-radius: 100px; padding: 5px 14px;
  font-size: 13px; font-weight: 500; margin-bottom: 24px;
}
.product-section h2 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -1px;
  line-height: 1.2; margin-bottom: 20px; color: #fff;
}
.product-section h2 span { color: #818CF8; }
.product-section p { font-size: 16px; color: #94A3B8; line-height: 1.75; margin-bottom: 32px; }

.product-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.product-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #CBD5E1; }
.product-features li::before {
  content: ''; display: block; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818CF8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.product-mockup {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}
.product-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── FOOTER / CONTACT ── */
footer { background: var(--bg-alt); padding: 80px 24px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1120px; margin: 0 auto; }
.footer-cta { text-align: center; margin-bottom: 72px; }
.footer-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1px; margin-bottom: 14px; color: var(--text); }
.footer-cta p { font-size: 17px; color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; }

.contact-form {
  max-width: 520px; margin: 0 auto; text-align: left;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--card-shadow); transition: background-color 0.3s;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea {
  font-family: var(--font); font-size: 14px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  outline: none; transition: border-color .2s, box-shadow .2s, background-color 0.3s; width: 100%;
}
html.dark .form-group input, html.dark .form-group textarea {
  background: var(--bg-alt); border-color: var(--border);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,91,219,.1);
}
html.dark .form-group input:focus, html.dark .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(96,165,250,.15); background: var(--bg);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-submit { width: 100%; margin-top: 4px; font-size: 15px; justify-content: center; }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; will-change: opacity, transform; }
.delay-1 { animation-delay:.1s; }
.delay-2 { animation-delay:.2s; }
.delay-3 { animation-delay:.3s; }
.delay-4 { animation-delay:.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-actions { gap: 12px; }
  .header-nav { display: none; }
  #header-cta { display: none; }
  .service-item { grid-template-columns: 1fr; gap: 32px; }
  .product-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
}
