/* ============================================================
   DCVisuals Design System — main.css
   Dark precision instrument aesthetic
   Inspired by DaVinci Resolve UI
   ============================================================ */

:root {
  --void:#080a0c; --base:#0e1114; --panel:#141820; --raised:#1a2028; --hover:#212a34;
  --border0:rgba(255,255,255,0.04); --border1:rgba(255,255,255,0.09); --border2:rgba(255,255,255,0.18);
  --amber:#c8912a; --amber-b:#e8a83a; --amber-d:rgba(200,145,42,0.12); --amber-g:rgba(200,145,42,0.06);
  --blue:#3a78b0; --blue-b:#4d8fc4; --blue-d:rgba(58,120,176,0.12);
  --green:#2a8c52; --green-b:#3aaa64; --green-d:rgba(42,140,82,0.12);
  --red:#a83030; --red-b:#c84040; --red-d:rgba(168,48,48,0.12);
  --t1:#ddd9d2; --t2:#80807a; --t3:#484844;
  --ff-d:'Syne',sans-serif; --ff-b:'DM Sans',sans-serif; --ff-m:'DM Mono',monospace;
  --r:6px; --r-sm:4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--void); color: var(--t1);
  font-family: var(--ff-b); font-size: 15px; line-height: 1.7;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: linear-gradient(var(--border0) 1px, transparent 1px),
    linear-gradient(90deg, var(--border0) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none; z-index: 0;
}

/* Layout */
.w { max-width: 1060px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
section { padding: 72px 0; position: relative; }
.sep { height: 1px; background: linear-gradient(90deg,transparent,var(--border1),transparent); }

/* Typography */
h1,h2,h3,h4 { font-family: var(--ff-d); line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem,5vw,3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem,3.5vw,2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: .9rem; font-weight: 600; }
p { color: var(--t2); font-size: .88rem; line-height: 1.7; }
.mono { font-family: var(--ff-m); font-size: .68rem; color: var(--t3); }
.label {
  font-family: var(--ff-m); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.label::before { content: ''; width: 14px; height: 1px; background: var(--amber); }
p.sub { color: var(--t2); font-size: .9rem; line-height: 1.7; max-width: 520px; }

/* Cards */
.card {
  background: var(--raised); border: 1px solid var(--border0); border-radius: var(--r);
  padding: 22px; transition: .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border1); transform: translateY(-2px); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,var(--border1),transparent);
}
.card-a { border-top: 1px solid var(--amber) !important; }
.card-a::before { background: var(--amber); opacity: .6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px;
  border-radius: var(--r-sm); font-family: var(--ff-m); font-size: .68rem;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  border: none; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-p { background: var(--amber); color: #000; font-weight: 500; }
.btn-p:hover { background: var(--amber-b); transform: translateY(-1px); }
.btn-s { background: transparent; color: var(--t1); border: 1px solid var(--border2); }
.btn-s:hover { border-color: var(--amber); color: var(--amber); }
.btn-g { background: transparent; color: var(--t2); padding: 10px 0; }
.btn-g:hover { color: var(--amber); }
.btn-g::after { content: ' →'; }

/* Tags & pills */
.tag { font-family: var(--ff-m); font-size: .52rem; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; }
.ta { background: var(--amber-d); color: var(--amber); }
.tb { background: var(--blue-d); color: var(--blue-b); }
.tg { background: var(--green-d); color: var(--green-b); }
.tx { background: rgba(255,255,255,.04); color: var(--t3); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-family: var(--ff-m); font-size: .55rem; letter-spacing: .07em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.pill-a { background: var(--amber-d); color: var(--amber); border: 1px solid rgba(200,145,42,.3); }
.pill-b { background: var(--blue-d); color: var(--blue-b); border: 1px solid rgba(58,120,176,.3); }
.pill-g { background: var(--green-d); color: var(--green-b); border: 1px solid rgba(42,140,82,.3); }
.pill-x { background: rgba(255,255,255,.04); color: var(--t3); border: 1px solid var(--border0); }
.pill-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(8,10,12,.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border0);
}
.nav-i {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: 1060px; margin: 0 auto; padding: 0 20px;
}
.logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: var(--ff-d); font-size: .95rem; font-weight: 800; color: var(--t1);
}
.logo-mark {
  width: 24px; height: 24px; background: var(--amber); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-m); font-size: .55rem; color: #000; font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: 1px; list-style: none; }
.nav-links a {
  font-family: var(--ff-m); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--t2); text-decoration: none; padding: 5px 10px; border-radius: var(--r-sm); transition: .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--t1); background: var(--hover); }
.nav-links a.active { color: var(--amber); background: var(--amber-d); }
.lang-sw { display: flex; gap: 3px; }
.lang-sw a {
  font-family: var(--ff-m); font-size: .58rem; color: var(--t3); text-decoration: none;
  padding: 3px 6px; border: 1px solid var(--border0); border-radius: 3px; transition: .15s;
}
.lang-sw a:hover, .lang-sw a.on { color: var(--amber); border-color: var(--amber); }
.btn-nav {
  font-family: var(--ff-m); font-size: .62rem; letter-spacing: .07em; text-transform: uppercase;
  background: var(--amber); color: #000; padding: 6px 13px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500; transition: .15s;
}
.btn-nav:hover { background: var(--amber-b); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.breadcrumb a, .breadcrumb span { font-family: var(--ff-m); font-size: .6rem; color: var(--t3); text-decoration: none; letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { width: auto; height: auto; background: none; opacity: .4; }

/* Footer */
footer { background: var(--raised); border-top: 1px solid var(--border0); padding: 48px 0 24px; }
.footer-g { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-col h4 { font-family: var(--ff-m); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: .82rem; color: var(--t2); text-decoration: none; transition: .15s; }
.footer-links a:hover { color: var(--amber); }
.footer-bot { padding-top: 20px; border-top: 1px solid var(--border0); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bot p { font-family: var(--ff-m); font-size: .58rem; color: var(--t3); }

/* Forms */
.form-g { margin-bottom: 16px; }
label { display: block; font-family: var(--ff-m); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--border1);
  border-radius: var(--r-sm); padding: 10px 13px; color: var(--t1);
  font-family: var(--ff-b); font-size: .875rem; outline: none; transition: .2s; appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--amber); background: var(--hover); }
input::placeholder, textarea::placeholder { color: var(--t3); }
textarea { resize: vertical; min-height: 100px; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23484844' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; cursor: pointer;
}
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gdpr-row { display: flex; gap: 10px; align-items: flex-start; }
.gdpr-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.gdpr-row label { text-transform: none; letter-spacing: 0; font-size: .72rem; cursor: pointer; }

/* Code blocks */
.code-block {
  background: var(--void); border: 1px solid var(--border1); border-radius: var(--r);
  padding: 16px; font-family: var(--ff-m); font-size: .65rem; color: #8ab8d8;
  line-height: 1.8; overflow-x: auto; margin: 16px 0; position: relative;
}
.code-lang { position: absolute; top: 8px; right: 12px; font-size: .55rem; color: var(--t3); text-transform: uppercase; letter-spacing: .1em; }

/* Info boxes */
.info-box { background: var(--amber-g); border: 1px solid rgba(200,145,42,.2); border-left: 3px solid var(--amber); border-radius: 0 4px 4px 0; padding: 16px; margin: 16px 0; }
.info-box-title { font-family: var(--ff-m); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 5px; }
.warn-box { background: rgba(168,48,48,.06); border: 1px solid rgba(168,48,48,.2); border-left: 3px solid var(--red); border-radius: 0 4px 4px 0; padding: 16px; margin: 16px 0; }
.warn-box-title { font-family: var(--ff-m); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-b); margin-bottom: 5px; }

/* Coming soon overlay */
.coming-soon-bar {
  background: var(--amber-d); border: 1px solid rgba(200,145,42,.3); border-radius: var(--r);
  padding: 14px 20px; text-align: center; font-family: var(--ff-m); font-size: .68rem;
  color: var(--amber); letter-spacing: .08em; margin-bottom: 32px;
}

/* Scroll dots */
.scroll-dots { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 7px; z-index: 100; }
.scroll-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border2); cursor: pointer; transition: .2s; }
.scroll-dot:hover, .scroll-dot.on { background: var(--amber); transform: scale(1.3); }

/* Animations */
@keyframes fade-up { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.a1 { animation: fade-up .6s ease-out .1s both; }
.a2 { animation: fade-up .6s ease-out .25s both; }
.a3 { animation: fade-up .6s ease-out .4s both; }
.a4 { animation: fade-up .6s ease-out .55s both; }
.a5 { animation: fade-up .6s ease-out .7s both; }

/* Responsive */
@media (max-width: 860px) {
  .footer-g { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .form-2 { grid-template-columns: 1fr; }
  .footer-g { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .scroll-dots { display: none; }
}
