/* iVizhin company site. One stylesheet, no build step.
   Dark ground, one accent: the purple of the iVizhin mark. */

:root {
  --bg: #090b16;
  --bg-2: #0f1222;
  --panel: #141830;
  --panel-2: #1a1f3a;
  --edge: rgba(145, 132, 217, 0.22);
  --edge-soft: rgba(145, 132, 217, 0.12);
  --text: #eef0ff;
  --muted: #a3a9cc;
  --accent: #9184d9;
  --accent-2: #b8aef5;
  --accent-deep: #5b4fb3;
  --green: #3f8f5c;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(1rem, 5vw, 4rem);
  --measure: 40rem;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(72rem, 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); }
.muted { color: var(--muted); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge-soft);
}
.head-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-word { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.04em; }
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: 0.97rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--text) !important;
  background: var(--accent-deep);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--edge); border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); }

/* Hero */
.hero { position: relative; padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--edge-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--edge-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; }
.glow-a { width: 520px; height: 520px; background: var(--accent-deep); top: -160px; right: -120px; }
.glow-b { width: 420px; height: 420px; background: #2f7bff; bottom: -200px; left: -160px; opacity: 0.25; }
.hero-mark { position: absolute; right: -4%; top: 50%; width: min(46vw, 560px); transform: translateY(-50%); opacity: 0.09; }
.hero-wrap { position: relative; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: var(--measure); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 0; }
.cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta-primary { background: var(--accent); color: #0b0d1a; }
.cta-primary:hover { background: var(--accent-2); }
.cta-ghost { border-color: var(--edge); color: var(--text); background: rgba(255,255,255,0.03); }
.cta-ghost:hover { background: rgba(255,255,255,0.07); }

.hero-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem;
  margin: 2.5rem 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: 0.95rem;
}
.hero-strip li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-strip li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section + section { border-top: 1px solid var(--edge-soft); }
.alt { background: var(--bg-2); }

.cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.prose p { color: var(--muted); }
.prose strong { color: var(--text); }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin-top: 2rem; }
.card {
  background: var(--panel);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  min-width: 0;
}
.card p { margin: 0; color: var(--muted); }
.card h3 { margin: 0; }
.card-mark { width: 56px; height: 56px; }
.card-link { margin-top: auto; font-weight: 600; }
.card .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

/* Product spotlight rows */
.spot { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; margin-top: 2.5rem; }
.spot + .spot { margin-top: 3.5rem; }
.spot figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--edge-soft); background: var(--panel); }
.spot figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.spot figcaption { padding: 0.7rem 1rem; font-size: 0.85rem; color: var(--muted); }
.spot-mark {
  aspect-ratio: 3 / 2; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, var(--panel-2), var(--panel) 70%);
}
.spot figure .spot-mark img, .spot-mark svg { width: 38%; height: auto; aspect-ratio: auto; object-fit: contain; }
.spot .prose h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.facts { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.5rem; color: var(--muted); }
.facts li { padding-left: 1.3rem; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (min-width: 52rem) {
  .spot { grid-template-columns: 1.1fr 1fr; }
  .spot.flip figure { order: 2; }
}

/* Sites list */
/* Domain on top, what it is underneath; every card the same height. (Side by side, the long
   domains squeezed the labels into two- and three-line scraps.) */
.sites { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin-top: 1.5rem; padding: 0; list-style: none; }
.sites li { display: flex; }
.sites li a {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  background: var(--panel); border: 1px solid var(--edge-soft); border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem; color: var(--text); font-weight: 600; overflow-wrap: anywhere;
}
.sites li a:hover { border-color: var(--edge); text-decoration: none; }
.sites li a small { color: var(--muted); font-weight: 400; font-size: 0.875rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.timeline li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: baseline; }
.timeline .when { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; color: var(--muted); }
.timeline strong { color: var(--text); }
@media (max-width: 40rem) { .timeline li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--edge);
  border-radius: var(--radius-sm); padding: 0.8rem 0.95rem; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
button.cta { font-family: inherit; cursor: pointer; justify-self: start; }

/* Footer */
.site-foot { border-top: 1px solid var(--edge-soft); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.9rem; }
.foot-wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-links a { color: var(--muted); }

/* Small screens */
@media (max-width: 47rem) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--edge-soft);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--edge-soft); }
  .site-nav .nav-cta { margin-top: 0.8rem; text-align: center; border-bottom: 0; }
  .hero-mark { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cta { transition: none; } }
