/* ============================================
   VOITT — Virtual Operations, IT & Telecom
   Static site stylesheet — Light corporate theme, mobile-first
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #ffffff;
  --bg-alt:     #f8f9fb;
  --bg-card:    #ffffff;
  --bg-card-h:  #f3f4f6;
  --accent:     #0891b2;
  --accent-light:#e0f7fa;
  --accent2:    #6d5cff;
  --text:       #374151;
  --text-dim:   #6b7280;
  --text-bright:#1a1f36;
  --border:     #e5e7eb;
  --border-h:   #d1d5db;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.1);
  --sale-bg:    #f0fdf4;
  --sale-border:#86efac;
  --radius:     12px;
  --radius-sm:  8px;
  --max-w:      1140px;
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text-bright); }

img { max-width: 100%; display: block; }

/* --- Utility --- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: .5rem; }
.nav-logo svg { height: 32px; width: auto; }
.nav-logo span {
  font-size: .7rem; font-weight: 500; letter-spacing: .08em;
  color: var(--text-dim); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-bright); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-dim); cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch:hover { background: var(--bg-card-h); color: var(--text-bright); }
.lang-switch svg { width: 14px; height: 14px; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: .5rem; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 600px; }
  .nav-links li { width: 100%; }
  .nav-links a, .nav-links .lang-switch {
    display: block; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    width: 100%;
  }
}

/* --- Hero --- */
.hero {
  padding: 9rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 20%, rgba(8,145,178,.06), transparent),
    radial-gradient(ellipse 400px 300px at 70% 60%, rgba(109,92,255,.04), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: .4rem 1rem; margin-bottom: 1.5rem;
  border-radius: 50px;
  background: rgba(0,212,255,.08);
  border: 1px solid rgba(0,212,255,.2);
  font-size: .75rem; font-weight: 600;
  color: var(--accent); letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 600px; margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 8px;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: all .25s; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover {
  background: #0e7490; color: #fff;
  box-shadow: 0 4px 16px rgba(8,145,178,.25);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
.btn-sale {
  background: linear-gradient(135deg, #00c853, #00e676);
  color: #0b0e14; font-weight: 700;
}
.btn-sale:hover {
  box-shadow: 0 0 28px rgba(0,200,83,.35);
  transform: translateY(-1px);
  color: #0b0e14;
}
.btn svg { width: 18px; height: 18px; }

/* --- Sale Banner --- */
.sale-banner {
  background: var(--sale-bg);
  border: 1px solid var(--sale-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 700px;
  position: relative;
}
.sale-banner::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34,197,94,.08), transparent 60%);
  pointer-events: none; z-index: 0;
}
.sale-banner > * { position: relative; z-index: 1; }
.sale-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,200,83,.15); margin-bottom: 1rem;
}
.sale-icon svg { width: 24px; height: 24px; color: #16a34a; }
.sale-banner h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text-bright);
  margin-bottom: .5rem;
}
.sale-banner p {
  font-size: .9rem; color: var(--text-dim);
  margin-bottom: 1.25rem;
}

/* --- Section shared --- */
.section { padding: 5rem 0; }
.section-label {
  display: inline-block;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700; color: var(--text-bright);
  margin-bottom: 1rem; letter-spacing: -.01em;
}
.section-desc {
  font-size: 1rem; color: var(--text-dim);
  max-width: 640px; margin-bottom: 3rem;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

/* --- Articles Grid --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.article-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.article-tag {
  display: inline-block; font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: .75rem;
}
.article-card h3 {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-bright); margin-bottom: .5rem;
  line-height: 1.4;
}
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--accent); }
.article-card p {
  font-size: .875rem; color: var(--text-dim);
  flex: 1; margin-bottom: 1rem; line-height: 1.65;
}
.article-meta {
  font-size: .75rem; color: var(--text-dim);
  display: flex; align-items: center; gap: .35rem;
}

/* --- About / Features --- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .25s;
}
.feature-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: rgba(0,212,255,.08);
}
.feature-icon svg { width: 22px; height: 22px; color: var(--accent); }
.feature-icon.purple { background: rgba(123,97,255,.1); }
.feature-icon.purple svg { color: var(--accent2); }
.feature-icon.green { background: rgba(0,200,83,.1); }
.feature-icon.green svg { color: #00e676; }
.feature-card h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--text-bright); margin-bottom: .5rem;
}
.feature-card p { font-size: .875rem; color: var(--text-dim); }

/* --- Article Page --- */
.article-page { padding: 8rem 0 4rem; }
.article-page .container { max-width: 780px; }
.article-header { margin-bottom: 2.5rem; }
.article-header .article-tag { margin-bottom: 1rem; }
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; color: var(--text-bright);
  line-height: 1.25; margin-bottom: 1rem;
}
.article-header .article-meta { font-size: .85rem; }
.article-body { font-size: 1.05rem; line-height: 1.8; }
.article-body h2 {
  font-size: 1.4rem; font-weight: 600;
  color: var(--text-bright); margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 600;
  color: var(--text-bright); margin: 2rem 0 .75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  margin-bottom: 1.25rem; padding-left: 1.5rem;
}
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim); font-style: italic;
}
.article-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem; margin-top: 3rem;
}

/* --- About Page --- */
.about-page { padding: 8rem 0 4rem; }
.about-page .container { max-width: 780px; }
.about-intro { margin-bottom: 3rem; }
.about-intro h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800; color: var(--text-bright);
  margin-bottom: 1rem;
}
.about-intro p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 1rem; }
.about-section { margin-bottom: 2.5rem; }
.about-section h2 {
  font-size: 1.35rem; font-weight: 600;
  color: var(--text-bright); margin-bottom: .75rem;
}
.about-section p { font-size: 1rem; line-height: 1.8; margin-bottom: .75rem; }

/* --- Contact --- */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem; text-align: center;
}
.contact-box h3 {
  font-size: 1.15rem; font-weight: 600;
  color: var(--text-bright); margin-bottom: .5rem;
}
.contact-box p { font-size: .9rem; color: var(--text-dim); margin-bottom: 1.25rem; }
.contact-email {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 600; color: var(--accent);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .5rem; }
.footer-brand svg { height: 24px; width: auto; opacity: .6; }
.footer-copy { font-size: .8rem; color: var(--text-dim); }
.footer-links { display: flex; gap: 1.25rem; list-style: none; }
.footer-links a { font-size: .8rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text-bright); }
.disclaimer {
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .72rem; color: var(--text-dim);
  text-align: center; line-height: 1.6;
  opacity: .7;
}

/* --- Glossary --- */
.glossary { margin: 0; padding: 0; }
.glossary dt {
  font-weight: 700; color: var(--text-bright);
  font-size: 1rem; margin-top: 1.25rem;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.glossary dt:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.glossary dd {
  margin: .35rem 0 0 0; padding: 0;
  font-size: .95rem; color: var(--text-body);
  line-height: 1.7;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0; animation: fadeUp .6s ease forwards;
}
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }
.fade-up:nth-child(5) { animation-delay: .4s; }

/* --- Dropdown Nav --- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-item > a .chevron {
  width: 12px; height: 12px;
  transition: transform .2s;
}
.nav-item.open > a .chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + .75rem); left: 50%; transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: .5rem 0;
  z-index: 200;
}
.nav-item.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem;
  font-size: .85rem; color: var(--text);
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--bg-alt); color: var(--text-bright); }
.nav-dropdown .dd-icon {
  width: 32px; height: 32px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); flex-shrink: 0;
}
.nav-dropdown .dd-icon svg { width: 16px; height: 16px; color: var(--accent); }
.nav-dropdown .dd-text { display: flex; flex-direction: column; }
.nav-dropdown .dd-label { font-weight: 500; color: var(--text-bright); font-size: .85rem; }
.nav-dropdown .dd-desc { font-size: .72rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .nav-dropdown {
    position: static; transform: none;
    border: none; box-shadow: none;
    padding: 0; background: transparent;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown a {
    padding: .75rem 1.25rem .75rem 2.5rem;
    border-bottom: 1px solid var(--border);
  }
}

/* --- Tools & Reference Grid --- */
.tools-grid, .ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.tool-card, .ref-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.tool-card:hover, .ref-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.tool-card .card-icon, .ref-card .card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light);
}
.tool-card .card-icon svg, .ref-card .card-icon svg { width: 24px; height: 24px; color: var(--accent); }
.ref-card .card-icon { background: rgba(109,92,255,.08); }
.ref-card .card-icon svg { color: var(--accent2); }
.tool-card h3, .ref-card h3 {
  font-size: .9rem; font-weight: 600; color: var(--text-bright);
  line-height: 1.3;
}
.tool-card p, .ref-card p {
  font-size: .78rem; color: var(--text-dim); line-height: 1.5;
}

/* --- Section with alt bg --- */
.section-alt { background: var(--bg-alt); }

/* --- Ad Space --- */
.ad-space {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  overflow: hidden;
}
.ad-leaderboard { width: 100%; max-width: 728px; min-height: 90px; }
.ad-rectangle { width: 300px; max-width: 100%; min-height: 250px; }

/* --- Tool Page Layout --- */
.tool-page { padding: 7rem 0 4rem; }
.tool-header { margin-bottom: 2rem; }
.tool-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700; color: var(--text-bright);
  margin-bottom: .5rem;
}
.tool-header p { font-size: 1rem; color: var(--text-dim); }
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.tool-main { min-width: 0; }
.tool-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.tool-input-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.tool-input-group label {
  display: block; font-size: .85rem; font-weight: 500;
  color: var(--text-bright); margin-bottom: .4rem;
}
.tool-input-group input, .tool-input-group select {
  width: 100%; padding: .6rem .75rem;
  font-family: var(--font); font-size: .9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text-bright);
  transition: border-color .2s;
}
.tool-input-group input:focus, .tool-input-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8,145,178,.1);
}
.tool-output {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem; margin-top: 1.5rem;
}
.tool-output h3 {
  font-size: .9rem; font-weight: 600;
  color: var(--text-bright); margin-bottom: 1rem;
}
.tool-output-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.tool-output-row:last-child { border-bottom: none; }
.tool-output-label { color: var(--text-dim); }
.tool-output-value { font-weight: 600; color: var(--text-bright); font-family: var(--font-mono); }
.tool-related {
  padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.tool-related h3 {
  font-size: .85rem; font-weight: 600;
  color: var(--text-bright); margin-bottom: .75rem;
}
.tool-related a {
  display: block; padding: .4rem 0;
  font-size: .85rem; color: var(--accent);
}

@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { order: 2; }
}

/* --- Reference Page Layout --- */
.ref-page { padding: 7rem 0 4rem; }
.ref-search {
  position: relative; margin-bottom: 1.5rem;
}
.ref-search input {
  width: 100%; padding: .7rem 1rem .7rem 2.5rem;
  font-family: var(--font); font-size: .9rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text-bright);
}
.ref-search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8,145,178,.1);
}
.ref-search svg {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-dim);
}
.ref-table {
  width: 100%; border-collapse: collapse;
  font-size: .875rem;
}
.ref-table th {
  text-align: left; padding: .75rem 1rem;
  font-weight: 600; font-size: .75rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em;
  background: var(--bg-alt); border-bottom: 2px solid var(--border);
}
.ref-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.ref-table tr:hover td { background: var(--bg-alt); }
.ref-table code {
  font-family: var(--font-mono); font-size: .825rem;
  background: var(--bg-alt); padding: .15rem .4rem;
  border-radius: 4px; color: var(--accent);
}

/* --- Domain Sale (footer style) --- */
.domain-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.domain-banner p {
  font-size: .875rem; color: var(--text-dim); flex: 1;
}
.domain-banner strong { color: var(--text-bright); }

/* --- 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(--border-h); }
