/* ============================================================
   ZARINOVA.TECH — SHARED STYLESHEET
   ============================================================ */
:root {
  --bg: #0a0e17;
  --bg-alt: #0d1220;
  --surface: #121826;
  --surface-2: #171f30;
  --border: #232c40;
  --text: #e7ebf3;
  --text-muted: #93a0b8;
  --text-dim: #5c6889;
  --accent-1: #4f7cff;
  --accent-2: #8b5cf6;
  --accent-cyan: #22d3ee;
  --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --max-w: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-cyan); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease; white-space: nowrap; }
.btn:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.btn-primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 0 0 rgba(79,124,255,0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,124,255,0.35); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-1); background: rgba(79,124,255,0.08); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.navbar { position: sticky; top: 0; z-index: 100; background: rgba(10,14,23,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1; letter-spacing: -0.02em; }
.logo-name { display: block; color: var(--text); }
.logo-name > span { color: var(--accent-1); }
.logo-tagline { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

@media (max-width: 900px) {
  .navbar .wrap { height: 68px; padding: 0 20px; }
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px); background: rgba(10, 14, 23, 0.98); backdrop-filter: blur(16px); display: flex; flex-direction: column; align-items: stretch; padding: 28px 20px; gap: 8px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; border-top: 1px solid var(--border); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { display: block; width: 100%; padding: 14px 16px; font-size: 16px; color: var(--text-muted); border-radius: var(--radius-sm); }
  .nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(79, 124, 255, 0.10); }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 21px; cursor: pointer; }
  .nav-cta .btn-ghost { display: none; }
  body.menu-open { overflow: hidden; }
}

.hero { position: relative; overflow: hidden; padding: 120px 0 100px; border-bottom: 1px solid var(--border); }
#circuit-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,124,255,0.18), transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 62px); margin-bottom: 20px; }
.hero h1 .grad { background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--text-muted); max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 17px; }

section { padding: 96px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 16px; }
.section-alt { background: var(--bg-alt); }

.trust-bar { padding: 40px 0; border-bottom: 1px solid var(--border); }
.trust-bar .label { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; text-align: center; }
.trust-logos { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; opacity: 0.7; }
.trust-logos span { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text-dim); }

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 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; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-1); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 18px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.card a.link { font-size: 13px; font-weight: 600; color: var(--accent-cyan); }

.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 700px) { .why-list { grid-template-columns: 1fr; } }
.why-item { display: flex; gap: 18px; }
.why-num { font-family: var(--font-mono); color: var(--accent-1); font-size: 14px; padding-top: 4px; }
.why-item h4 { font-size: 16px; margin-bottom: 6px; }
.why-item p { color: var(--text-muted); font-size: 14px; }

.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.case-media { height: 180px; background: linear-gradient(135deg, rgba(79,124,255,0.25), rgba(139,92,246,0.25)); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); color: var(--text-dim); font-size: 13px; }
.case-body { padding: 24px; }
.case-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent-cyan); text-transform: uppercase; letter-spacing: 0.08em; }
.case-body h3 { margin: 10px 0 8px; font-size: 18px; }
.case-body p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.case-stats { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.case-stats div strong { display: block; font-family: var(--font-mono); font-size: 20px; color: var(--accent-1); }
.case-stats div span { font-size: 12px; color: var(--text-dim); }

.process-row { display: flex; gap: 0; overflow-x: auto; padding-bottom: 8px; }
.process-step { flex: 1; min-width: 190px; padding: 24px; border-left: 1px solid var(--border); position: relative; }
.process-step:first-child { border-left: none; }
.process-step .step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-1); margin-bottom: 12px; }
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { color: var(--text-muted); font-size: 13px; }

.testi-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.testi-card { scroll-snap-align: start; min-width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.testi-card p.quote { font-size: 15px; color: var(--text); margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-gradient); }
.testi-author strong { display: block; font-size: 14px; }
.testi-author span { font-size: 12px; color: var(--text-dim); }

.cta-banner { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(79,124,255,0.2), transparent 70%); }
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; position: relative; }
.cta-banner p { color: var(--text-muted); margin-bottom: 30px; position: relative; }
.cta-banner .hero-ctas { justify-content: center; position: relative; }

footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 14px 0 20px; max-width: 280px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a:hover { color: var(--accent-cyan); }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter-form input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text); font-size: 13px; }
.newsletter-form input:focus { outline: none; border-color: var(--accent-1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text-dim); font-size: 13px; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--text-dim); font-size: 13px; }
.social-links a:hover { color: var(--accent-cyan); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.field input, .field select, .field textarea { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text); font-family: var(--font-body); font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-1); }
.form-status { margin-top: 16px; font-size: 14px; color: var(--accent-cyan); display: none; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; transition: all 0.15s; }
.chip.active, .chip:hover { border-color: var(--accent-1); color: var(--text); background: rgba(79,124,255,0.1); }

.team-card { text-align: center; }
.team-card h4 { font-size: 15px; margin-bottom: 4px; }
.team-card span { font-size: 13px; color: var(--text-dim); }
.timeline { border-left: 2px solid var(--border); padding-left: 32px; display: flex; flex-direction: column; gap: 40px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -38px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 0 4px rgba(79,124,255,0.2); }
.timeline-item .year { font-family: var(--font-mono); color: var(--accent-cyan); font-size: 13px; margin-bottom: 6px; }

.blog-card { display: flex; flex-direction: column; }
.blog-media { height: 160px; border-radius: var(--radius-sm); background: linear-gradient(135deg, rgba(79,124,255,0.2), rgba(34,211,238,0.15)); margin-bottom: 18px; }
.blog-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; }
.blog-card p { color: var(--text-muted); font-size: 14px; }

.job-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.job-row h4 { font-size: 16px; margin-bottom: 6px; }
.job-meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-dim); }
.job-meta span { display: flex; align-items: center; gap: 6px; }

.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-avatar { width: 168px; height: 168px; border-radius: 50%; border: 3px solid var(--accent-1); overflow: hidden; margin: 0 auto 18px; background: var(--surface-2); box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.15), 0 8px 20px rgba(0, 0, 0, 0.35); flex-shrink: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.team-card:hover .team-avatar { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(79, 124, 255, 0.25), 0 10px 26px rgba(0, 0, 0, 0.4); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 640px) { .team-avatar { width: 140px; height: 140px; } }

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 640px) { .logo { font-size: 18px; } .logo-subtitle { font-size: 8px; letter-spacing: 0.14em; } }

body { overflow-x: hidden; overflow-x: clip; }
img, video, iframe { max-width: 100%; height: auto; }
h1, h2 { text-wrap: balance; }

@media (min-width: 1440px) { :root { --max-w: 1280px; } }
@media (max-width: 1024px) { .wrap { padding: 0 24px; } section { padding: 80px 0; } .hero { padding: 96px 0 80px; } .page-hero { padding: 60px 0 48px; } .cta-banner { padding: 52px 32px; } }

.team-card .team-avatar { width: 190px !important; height: 190px !important; border-radius: 50% !important; overflow: hidden !important; border: 4px solid var(--accent-1, #4f7cff) !important; margin: 0 auto 20px !important; background: var(--surface-2, #171f30); box-shadow: 0 0 0 6px rgba(79,124,255,0.15), 0 12px 28px rgba(0,0,0,0.4); flex-shrink: 0 !important; }
.team-card .team-avatar img { width: 100% !important; height: 100% !important; max-width: 100% !important; object-fit: cover !important; object-position: center !important; border-radius: 50% !important; display: block !important; }

@media (max-width: 900px) { .nav-links.open { box-shadow: 0 24px 48px rgba(0,0,0,0.5); } }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; } section { padding: 64px 0; } .hero { padding: 72px 0 56px; } .page-hero { padding: 48px 0 40px; }
  .hero p.lead, .page-hero p { font-size: 16px; } .hero p.lead { margin-bottom: 28px; } .section-head { margin-bottom: 36px; }
  .trust-logos { gap: 20px 32px; } .trust-logos span { font-size: 15px; } .card { padding: 22px; } .case-body { padding: 20px; }
  .cta-banner { padding: 40px 20px; border-radius: 16px; } .testi-card { min-width: min(320px, 85vw); }
  .process-row { scroll-snap-type: x proximity; } .process-step { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; } .footer-bottom { flex-direction: column; text-align: center; }
  .field input, .field select, .field textarea, .newsletter-form input { font-size: 16px; }
  .logo { font-size: 18px; } .logo-tagline { font-size: 8px; }
  .team-card .team-avatar { width: 150px !important; height: 150px !important; }
}

@media (max-width: 480px) {
  .hero-ctas .btn, .job-row .btn, .newsletter-form .btn { width: 100%; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .testi-card { min-width: 84vw; } .process-step { min-width: 78vw; }
}

@media (hover: none) { .card:hover, .btn:hover { transform: none; } .team-card:hover .team-avatar { transform: none; } }

/* ============================================================
   LIGHT THEME & THEME TOGGLE
   ============================================================ */
.light-theme {
  --bg: #F5F5F0;
  --bg-alt: #E6D8C3;
  --surface: #FFFFFF;
  --surface-2: #E6D8C3;
  --border: #C2A68C;
  --text: #000000;
  --text-muted: #333333;
  --text-dim: #666666;
  --accent-cyan: #0891b2; 
}

.light-theme body { background: var(--bg); color: var(--text); }
.light-theme .navbar { background: rgba(245, 245, 240, 0.85); backdrop-filter: blur(12px); }
.light-theme .nav-links { background: rgba(245, 245, 240, 0.98); }
.light-theme .nav-links a:hover, .light-theme .nav-links a.active { background: rgba(194, 166, 140, 0.15); }
.light-theme .hero::after { background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(79,124,255,0.12), transparent 70%); }
.light-theme #circuit-canvas { opacity: 0.35; }

.theme-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover { border-color: var(--accent-1); background: rgba(79, 124, 255, 0.08); }

html:not(.light-theme) .light-icon { display: none; }
.light-theme .dark-icon { display: none; }

@media (max-width: 900px) { .theme-toggle-btn { margin-right: 8px; } }