/* =================================================================
   corelite.eu — Design system (matches Corelite project styling)
   Dark · orange accents · Inter + JetBrains Mono · grain background
   ================================================================= */
:root {
  --bg:        #0a0c10;
  --bg-2:      #11151b;
  --bg-3:      #181d26;
  --bg-4:      #1f2532;
  --border:    #232c39;
  --border-2:  #2c3849;
  --fg:        #e8ecf3;
  --fg-2:      #aab4c2;
  --fg-3:      #6b7689;
  --orange:    #ff8a00;
  --amber:     #ffd24a;
  --green:     #2eea71;
  --red:       #ff4d6d;
  --blue:      #50a7ff;
  --mono:      ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px; line-height: 1.55;
  min-height: 100vh;
  background-image:
    radial-gradient(at top left, rgba(255,138,0,0.06), transparent 40%),
    radial-gradient(at bottom right, rgba(80,167,255,0.04), transparent 50%);
}
::selection { background: var(--orange); color: #000; }

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--fg-3); }

/* ───── TOPBAR ───── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(10,12,16,0.7);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.brand { display:inline-flex; align-items:baseline; gap:8px; text-decoration:none; color:var(--fg); font-weight:700; letter-spacing:0.5px; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { color: var(--orange); font-size: 22px; line-height: 1; }
.brand .logo-text { font-size: 16px; }
.brand .logo-text .accent { color: var(--orange); }

.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a {
  color: var(--fg-2); padding: 6px 12px;
  border-radius: 6px; font-size: 13px; font-weight: 500;
  transition: 0.15s; text-decoration: none;
}
.topnav a:hover { background: var(--bg-3); color: var(--fg); }

.lang-switcher { margin-left: auto; position: relative; }
.lang-btn {
  background: var(--bg-3); border: 1px solid var(--border-2);
  padding: 6px 12px; border-radius: 6px; color: var(--fg);
  font: inherit; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--orange); }
.lang-btn .lang-code { font-weight: 700; letter-spacing: 0.5px; }
.lang-btn .caret { color: var(--fg-3); font-size: 10px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 4px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 8px; min-width: 160px;
  display: none; z-index: 100;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.lang-switcher.open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 5px;
  color: var(--fg); font-size: 13px; text-decoration: none;
}
.lang-menu a:hover { background: var(--bg-3); }
.lang-menu a.active { background: var(--bg-4); color: var(--orange); }

/* ───── SECTIONS ───── */
section { padding: 88px 0; position: relative; }
.section-head { margin-bottom: 36px; }
.section-head .kicker {
  display: inline-block; color: var(--orange);
  font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 {
  font-size: 36px; line-height: 1.15; margin: 0;
  font-weight: 700; letter-spacing: -0.02em;
}
.section-head h2 b, .section-head h2 .accent { color: var(--orange); }

/* ───── HERO ───── */
.hero { padding: 60px 0 80px; overflow: hidden; }
.hero-bg-grain {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, transparent 40%, rgba(255,138,0,0.05) 50%, transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(255,138,0,0.1), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
  position: relative;
}
.hero h1 {
  font-size: 52px; line-height: 1.05;
  margin: 0 0 18px; font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #aab4c2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede { font-size: 17px; color: var(--fg-2); margin: 0 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 36px;
  border-top: 1px solid var(--border); padding-top: 24px; flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { color: var(--orange); font-family: var(--mono); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero-stats span { color: var(--fg-2); font-family: var(--mono); font-size: 14px; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 36px; }
}

/* ───── SCREEN FRAME (browser-like) ───── */
.screen-frame {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,138,0,0.06);
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transition: transform 0.5s;
}
.screen-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.screen-frame .dots {
  display: flex; gap: 6px;
  padding: 10px 14px; background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.screen-frame .dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-2); display: inline-block;
}
.screen-frame .dots i:nth-child(1) { background: var(--red); }
.screen-frame .dots i:nth-child(2) { background: var(--amber); }
.screen-frame .dots i:nth-child(3) { background: var(--green); }
.screen-frame img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; background: var(--bg-3); }
.screen-frame img.missing {
  background:
    repeating-linear-gradient(45deg, var(--bg-3) 0 16px, var(--bg-4) 16px 32px);
  min-height: 280px;
}
.feature.reverse .screen-frame { transform: perspective(1400px) rotateY(3deg) rotateX(2deg); }
.feature.reverse .screen-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

/* ───── WHAT IS ───── */
.what { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.what-body { max-width: 800px; font-size: 17px; color: var(--fg-2); line-height: 1.7; white-space: pre-line; }

/* ───── FEATURES ───── */
.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px;
  align-items: center; margin-bottom: 80px;
}
.feature.reverse { grid-template-columns: 1.1fr 1fr; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-shot { order: 1; }
.feature-text h3 { font-size: 26px; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.feature-text p { color: var(--fg-2); font-size: 15px; line-height: 1.6; margin: 0; white-space: pre-line; }
@media (max-width: 880px) { .feature, .feature.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature.reverse .feature-text, .feature.reverse .feature-shot { order: initial; }
}

/* ───── CONFIG ───── */
.config-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 760px) { .config-grid { grid-template-columns: 1fr; } }
.config-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  position: relative;
}
.config-card.opt {
  border-color: var(--orange);
  box-shadow: 0 0 40px rgba(255,138,0,0.06);
}
.config-card h3 { margin: 0 0 18px; }
.config-card dl {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 12px 16px; margin: 0;
}
.config-card dt { color: var(--fg-3); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.config-card dd { margin: 0; color: var(--fg); font-weight: 500; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-min { background: rgba(80,167,255,0.12); color: var(--blue); }
.badge-opt { background: rgba(255,138,0,0.12); color: var(--orange); }

/* ───── INSTALL ───── */
.install { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.install-text { white-space: pre-line; color: var(--fg-2); }
.install-cmd { background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; position: relative; }
.cmd-head { padding: 10px 14px; background: var(--bg-3); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.cmd-head .dots { display: flex; gap: 6px; }
.cmd-head .dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cmd-head .dots i:nth-child(1) { background: var(--red); }
.cmd-head .dots i:nth-child(2) { background: var(--amber); }
.cmd-head .dots i:nth-child(3) { background: var(--green); }
.cmd-head .cmd-title { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.cmd-body { margin: 0; padding: 22px 18px; font-family: var(--mono); font-size: 14px; color: var(--fg); white-space: pre-wrap; word-break: break-all; }
.cmd-body .prompt { color: var(--orange); margin-right: 8px; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 4px 10px; font-size: 11px; }
@media (max-width: 880px) { .install-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ───── PRICING ───── */
.license-body { max-width: 800px; color: var(--fg-2); margin: 0 0 36px; white-space: pre-line; line-height: 1.7; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plan { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: 0.2s; }
.plan:hover { border-color: var(--orange); transform: translateY(-2px); }
.plan-trial { border-color: var(--green); box-shadow: 0 0 30px rgba(46,234,113,0.05); }
.plan-head { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-tag { background: var(--green); color: #000; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.plan-price .amount { font-size: 30px; font-weight: 800; }
.plan-price .period { color: var(--fg-3); font-size: 14px; }
.plan-feats { list-style: none; padding: 0; margin: 0; flex: 1; }
.plan-feats li { color: var(--fg-2); font-size: 13px; padding: 4px 0; }
.plan .btn { justify-content: center; }

/* ───── FAQ ───── */
.faq-list details {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0; margin-bottom: 10px;
  transition: 0.15s;
}
.faq-list details[open] { border-color: var(--orange); }
.faq-list summary {
  padding: 18px 22px; cursor: pointer; font-weight: 600;
  font-size: 15px; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 22px; color: var(--orange); font-weight: 400; font-size: 22px; line-height: 1; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details > div { padding: 0 22px 18px; color: var(--fg-2); line-height: 1.6; }

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; font-size: 14px; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--border-2);
  background: var(--bg-3); color: var(--fg);
  text-decoration: none; cursor: pointer; transition: 0.15s;
  line-height: 1;
}
.btn:hover { border-color: var(--orange); background: var(--bg-4); text-decoration: none; }
.btn.primary { background: var(--orange); color: #000; border-color: var(--orange); }
.btn.primary:hover { background: var(--amber); border-color: var(--amber); }
.btn.ghost { background: transparent; border-color: var(--border-2); }
.btn.ghost:hover { background: var(--bg-3); }

/* ───── FOOTER ───── */
.ftr { padding: 36px 0 28px; border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 60px; }
.ftr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ftr h4 { margin: 0 0 6px; font-size: 13px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 1px; }

/* ───── ADMIN: minimal helper styles (reused) ───── */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 220px; background: var(--bg-2); border-right: 1px solid var(--border); padding: 18px 0; }
.admin-side .brand { padding: 0 18px 18px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.admin-side nav a { display: flex; align-items: center; gap: 8px; padding: 10px 18px; color: var(--fg-2); text-decoration: none; font-size: 13px; }
.admin-side nav a:hover { background: var(--bg-3); color: var(--fg); }
.admin-side nav a.active { color: var(--orange); border-left: 3px solid var(--orange); padding-left: 15px; background: var(--bg-3); }
.admin-main { flex: 1; padding: 28px 32px; max-width: 100%; overflow-x: auto; }
.admin-main h2 { margin: 0 0 18px; }

.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid var(--border-2); }
.flash-ok { border-color: var(--green); color: var(--green); background: rgba(46,234,113,0.05); }
.flash-err { border-color: var(--red); color: var(--red); background: rgba(255,77,109,0.05); }

.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; }
.tbl thead th { background: var(--bg-3); padding: 10px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--fg-3); border-bottom: 1px solid var(--border-2); }
.tbl tbody td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: rgba(255,138,0,0.03); }

.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 24px; }
.stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.stat .num { font-size: 24px; font-weight: 800; font-family: var(--mono); }
.stat .lbl { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.5px; }

.form { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--fg-2); }
.form input, .form textarea, .form select { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 6px; padding: 9px 12px; color: var(--fg); font-family: inherit; font-size: 13px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,0.15); }
.form textarea { min-height: 110px; font-family: var(--mono); }
.mono { font-family: var(--mono); }

/* ───────── CONTACT FORM (v2) ───────── */
.contact { padding: 80px 0; }
.contact .section-head { text-align: center; margin-bottom: 32px; }
.contact .section-head .muted { max-width: 580px; margin: 12px auto 0; color: var(--fg-3); font-size: 14px; }
.contact-form { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.contact-form .contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 580px){ .contact-form .contact-row { grid-template-columns: 1fr; } }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; font-family: var(--mono); }
.contact-form label > span { color: var(--fg-3); }
.contact-form input,
.contact-form textarea { background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 7px; padding: 11px 13px; color: var(--fg); font-family: inherit; font-size: 14px; text-transform: none; letter-spacing: normal; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,138,0,.18); }
.contact-form textarea { min-height: 140px; resize: vertical; font-family: inherit; }
.contact-form .btn { align-self: flex-start; padding: 12px 32px; font-size: 14px; }
.contact-msg { max-width: 640px; margin: 0 auto 20px; padding: 12px 16px; border-radius: 7px; font-size: 14px; border: 1px solid; text-align: center; }
.contact-msg.ok  { background: rgba(46,194,126,.08); color: #2ec27e; border-color: rgba(46,194,126,.3); }
.contact-msg.err { background: rgba(239,68,68,.08); color: #ef4444; border-color: rgba(239,68,68,.3); }
