/* ============================================================
   ARCANENODES — site.css
   Design system wspólnej z prototypami H1/H7
   (dark #050b15, primary #2e6fa8, green #3ecf8e, Outfit + DM Sans)
   ============================================================ */
:root{
  --bg:#050b15; --surface:#0d1b2e; --surface2:#10233b;
  --border:rgba(255,255,255,.08); --text:#e8eef7; --muted:#8fa3bf;
  --primary:#2e6fa8; --primary-dark:#1a3a5c; --green:#3ecf8e;
  --orange:#f97316; --radius:12px;
  --maxw:1080px;
}
*{box-sizing:border-box; margin:0; padding:0}
html{scroll-behavior:smooth}
body{background:var(--bg); color:var(--text); font-family:'DM Sans',system-ui,sans-serif; min-height:100vh; display:flex; flex-direction:column; line-height:1.55}
h1,h2,h3,h4{font-family:'Outfit',sans-serif; line-height:1.2}
a{color:inherit; text-decoration:none}
img,svg{display:block}
.container{max-width:var(--maxw); margin:0 auto; padding:0 24px; width:100%}

/* ---------- header ---------- */
.site-header{position:sticky; top:0; z-index:50; border-bottom:1px solid var(--border); background:rgba(5,11,21,.82); backdrop-filter:blur(10px)}
.site-header .container{display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:12px; padding-bottom:12px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:10px; font-family:'Outfit'; font-weight:700; font-size:16px; letter-spacing:.6px}
.brand img{width:28px; height:28px}
.brand-sub{font-weight:400; font-size:10.5px; color:var(--muted); display:block; letter-spacing:.2px}
.main-nav{display:flex; align-items:center; gap:4px; flex-wrap:wrap}
.main-nav a{font-family:'Outfit'; font-size:13px; font-weight:600; color:var(--muted); padding:7px 12px; border-radius:8px; transition:color .15s, background .15s}
.main-nav a:hover{color:var(--text); background:var(--surface2)}
.main-nav a.active{color:#fff; background:var(--primary)}
.header-right{display:flex; align-items:center; gap:10px}
.lang-toggle{display:flex; border:1px solid var(--border); border-radius:8px; overflow:hidden}
.lang-toggle button{background:transparent; border:none; color:var(--muted); font-family:'Outfit'; font-size:12px; font-weight:600; padding:6px 10px; cursor:pointer}
.lang-toggle button.on{background:var(--primary); color:#fff}
.demo-badge{border:1px solid var(--orange); color:var(--orange); border-radius:999px; font-size:11px; font-weight:600; padding:4px 10px; font-family:'Outfit'; white-space:nowrap}

/* ---------- layout ---------- */
main{flex:1; width:100%}
section{padding:52px 0}
.section-title{font-size:26px; font-weight:700; margin-bottom:8px}
.section-sub{color:var(--muted); font-size:14px; margin-bottom:28px; max-width:660px}

/* ---------- hero ---------- */
.hero{padding:72px 0 52px}
.hero .container{max-width:880px}
.hero .badge{display:inline-flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:6px 14px; font-size:12px; color:var(--muted); font-family:'Outfit'; font-weight:600; margin-bottom:20px}
.hero .badge .dot{width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 8px var(--green)}
.hero h1{font-size:clamp(30px,5vw,44px); font-weight:700; margin-bottom:14px}
.hero h1 .accent{background:linear-gradient(90deg,var(--primary),var(--green)); -webkit-background-clip:text; background-clip:text; color:transparent}
.hero p.lede{font-size:16px; color:var(--muted); max-width:660px; margin-bottom:28px}
.hero .actions{display:flex; gap:12px; flex-wrap:wrap}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:none; border-radius:9px; font-family:'Outfit'; font-size:14px; font-weight:600; padding:12px 22px; cursor:pointer; transition:filter .15s, border-color .15s, color .15s}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--primary-dark)); color:#fff}
.btn-primary:hover{filter:brightness(1.18)}
.btn-ghost{background:transparent; border:1px solid var(--border); color:var(--muted)}
.btn-ghost:hover{color:var(--text); border-color:var(--muted)}

/* ---------- tiles (kafelki) ---------- */
.tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:18px}
.tile{position:relative; background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:26px; display:flex; flex-direction:column; gap:10px; transition:border-color .2s, transform .2s}
.tile:hover{border-color:rgba(46,111,168,.55); transform:translateY(-3px)}
.tile .tile-ico{width:44px; height:44px; border-radius:11px; background:linear-gradient(135deg,var(--primary-dark),var(--primary)); display:flex; align-items:center; justify-content:center; font-size:22px}
.tile h3{font-size:18px}
.tile p{font-size:13.5px; color:var(--muted); flex:1}
.tile .tile-link{font-family:'Outfit'; font-size:13px; font-weight:600; color:var(--green); margin-top:6px}
.tile .tile-link:hover{text-decoration:underline}
.tile .soon{position:absolute; top:16px; right:16px}

/* ---------- cards grid ---------- */
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
.card{background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:20px}
.card .card-ico{font-size:20px; margin-bottom:10px}
.card h3{font-size:15px; margin-bottom:6px}
.card p{font-size:13px; color:var(--muted)}

/* ---------- steps ---------- */
.steps{display:grid; gap:14px}
.step{display:flex; gap:16px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:18px 20px; align-items:flex-start}
.step .num{min-width:34px; height:34px; border-radius:50%; background:var(--surface2); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-family:'Outfit'; font-weight:700; color:var(--green)}
.step h3{font-size:15px; margin-bottom:4px}
.step p{font-size:13px; color:var(--muted)}

/* ---------- rates table ---------- */
.table-wrap{overflow-x:auto; border:1px solid var(--border); border-radius:14px}
table.rates{width:100%; border-collapse:collapse; font-size:13.5px; min-width:540px}
table.rates th{font-family:'Outfit'; font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); text-align:left; padding:12px 16px; border-bottom:1px solid var(--border); background:var(--surface2)}
table.rates td{padding:11px 16px; border-bottom:1px solid var(--border); vertical-align:top}
table.rates tr:last-child td{border-bottom:none}
.pill{display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; font-family:'Outfit'; white-space:nowrap}
.pill-0{background:rgba(62,207,142,.12); color:var(--green); border:1px solid rgba(62,207,142,.4)}
.pill-7{background:rgba(127,180,230,.1); color:#7fb4e6; border:1px solid rgba(127,180,230,.4)}
.pill-95{background:rgba(251,191,36,.1); color:#fcd34d; border:1px solid rgba(251,191,36,.4)}
.pill-15{background:rgba(249,115,22,.1); color:#fdba74; border:1px solid rgba(249,115,22,.4)}

/* ---------- info boxes ---------- */
.info-box{border-radius:12px; padding:14px 18px; font-size:13px; line-height:1.6}
.info-green{background:rgba(62,207,142,.07); border:1px solid rgba(62,207,142,.35); color:#bfe9d4}
.info-blue{background:rgba(46,111,168,.1); border:1px solid rgba(46,111,168,.45); color:#bcd6ee}
.info-orange{background:rgba(249,115,22,.07); border:1px solid rgba(249,115,22,.4); color:#fdba74}

/* ---------- duo cards (H1/H7) ---------- */
.duo{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.duo-card{background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:24px}
.duo-card .duo-code{font-family:'Outfit'; font-weight:700; font-size:13px; letter-spacing:1px; color:var(--green); background:rgba(62,207,142,.1); border:1px solid rgba(62,207,142,.4); border-radius:8px; display:inline-block; padding:4px 12px; margin-bottom:12px}
.duo-card h3{font-size:17px; margin-bottom:8px}
.duo-card p{font-size:13.5px; color:var(--muted)}
.duo-card ul{margin:12px 0 0 18px; font-size:13px; color:var(--muted)}
.duo-card li{margin-bottom:6px}

/* ---------- demo tabs ---------- */
.demo-tabs{display:flex; gap:10px; margin-bottom:16px; flex-wrap:wrap}
.demo-tab{border:1px solid var(--border); background:var(--surface); color:var(--muted); font-family:'Outfit'; font-weight:600; font-size:14px; border-radius:10px; padding:10px 20px; cursor:pointer; transition:all .15s}
.demo-tab.on{background:var(--primary); border-color:var(--primary); color:#fff}
.demo-frame-wrap{border:1px solid var(--border); border-radius:16px; overflow:hidden; background:#0a1424}
.demo-frame-wrap iframe{display:block; width:100%; border:none; height:940px}
.demo-pane{display:none}
.demo-pane.on{display:block}

/* ---------- FAQ ---------- */
.faq details{background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px 20px; margin-bottom:10px}
.faq summary{font-family:'Outfit'; font-weight:600; font-size:14.5px; cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+"; color:var(--muted); font-size:18px}
.faq details[open] summary::after{content:"–"}
.faq details p{margin-top:10px; font-size:13.5px; color:var(--muted); line-height:1.65}

/* ---------- doc list ---------- */
.doclist{list-style:none; display:grid; gap:10px}
.doclist li{display:flex; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:13px 16px; font-size:13.5px; line-height:1.5}
.doclist li .tick{color:var(--green); font-weight:700; font-family:'Outfit'; min-width:18px}

/* ---------- CTA band ---------- */
.cta-band{background:linear-gradient(135deg, rgba(46,111,168,.18), rgba(62,207,142,.1)); border:1px solid rgba(46,111,168,.4); border-radius:18px; padding:34px; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap}
.cta-band h3{font-size:20px; margin-bottom:6px}
.cta-band p{color:var(--muted); font-size:13.5px; max-width:520px}
.cta-band .actions{display:flex; gap:12px; flex-wrap:wrap}

/* ---------- coming soon (placeholder pages) ---------- */
.soon-hero{padding:88px 0 48px; text-align:center}
.soon-hero .big-ico{font-size:44px; margin-bottom:18px}
.soon-hero h1{font-size:clamp(28px,4.5vw,40px); margin-bottom:12px}
.soon-hero p{color:var(--muted); max-width:540px; margin:0 auto 26px}
.soon-hero .actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}

/* ---------- 404 ---------- */
.err{padding:110px 0; text-align:center}
.err .code{font-family:'Outfit'; font-size:72px; font-weight:700; background:linear-gradient(90deg,var(--primary),var(--green)); -webkit-background-clip:text; background-clip:text; color:transparent}
.err h1{font-size:22px; margin:10px 0 24px}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--border); background:rgba(13,27,46,.5); margin-top:40px}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1.2fr; gap:32px; padding:40px 0}
.footer-grid h4{font-size:12px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); margin-bottom:12px}
.footer-grid a{display:block; font-size:13.5px; color:var(--muted); padding:4px 0; transition:color .15s}
.footer-grid a:hover{color:var(--text)}
.footer-about .brand{font-size:15px}
.footer-about p{font-size:13px; color:var(--muted); margin-top:10px; max-width:340px}
.footer-bottom{border-top:1px solid var(--border); padding:16px 0; font-size:12px; color:var(--muted); display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* ---------- misc ---------- */
.note{font-size:12px; color:var(--muted); margin-top:12px}
.mt-24{margin-top:24px}
.mt-40{margin-top:40px}
.mb-16{margin-bottom:16px}

@media (max-width:860px){
  .tiles,.cards{grid-template-columns:1fr 1fr}
  .duo{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero{padding:48px 0 40px}
}
@media (max-width:600px){
  .tiles,.cards{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .demo-frame-wrap iframe{height:780px}
  .site-header .container{justify-content:center}
  section{padding:40px 0}
}

/* ---------- contact form ---------- */
.contact-form{display:flex; flex-direction:column; gap:12px; margin-top:16px}
.contact-form label{font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted)}
.contact-form input,.contact-form textarea{width:100%; padding:10px 14px; border:1px solid var(--border); border-radius:8px; background:var(--surface); color:var(--text); font-size:14px; font-family:inherit; transition:border-color .15s}
.contact-form input:focus,.contact-form textarea:focus{outline:none; border-color:var(--primary)}
.contact-form textarea{min-height:80px; resize:vertical}
.contact-form .btn-primary{align-self:flex-start; padding:10px 24px; font-size:14px; border:none; cursor:pointer; border-radius:8px}
.form-status{font-size:13px; margin-top:8px; display:none}
.form-status.ok{display:block; color:#4caf50}
.form-status.err{display:block; color:#f44336}
