/* Czcionki hostowane lokalnie (bez Google Fonts) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  --bg:#0B0E13;--bg2:#0F131A;--card:#11161E;--card2:#161C26;
  --line:#1C222C;--line2:#1F2631;--line3:#2A3240;
  --text:#E8ECF2;--head:#F7F8FA;--muted:#AEB7C4;--dim:#8C96A5;--soft:#C6CDD8;
  --accent:#3DA5FF;--accent-ink:#0B0E13;
  --display:'Space Grotesk',system-ui,sans-serif;--body:'Manrope',system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--text);text-decoration:none}
a:hover{color:#fff}
img{max-width:100%}
h1,h2,h3{font-family:var(--display);color:var(--head);margin:0}
p{margin:0}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.eyebrow{font-size:13px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent)}
.h2{font-weight:700;font-size:clamp(32px,3.6vw,46px);line-height:1.1;letter-spacing:-1px}
.lead{font-size:18px;color:var(--muted)}
.sec{padding:96px 0}
.sec-alt{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.sec-head{display:flex;flex-direction:column;gap:14px;max-width:720px;margin-bottom:48px}
.sec-head-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:48px}
.sec-head-row .sec-head{margin-bottom:0}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:12px;font-weight:700;font-size:16px;font-family:inherit;border:0;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{color:var(--accent-ink);transform:translateY(-1px);box-shadow:0 8px 28px rgba(61,165,255,.35)}
.btn-ghost{border:1px solid var(--line3);color:var(--text);font-weight:600}
.btn-ghost:hover{border-color:#3a4456}
.card{border-radius:16px;border:1px solid var(--line2);background:var(--card)}

/* header */
.header{position:sticky;top:0;z-index:50;background:rgba(11,14,19,.86);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.header .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:10px;padding-bottom:10px}
.navlogo{display:block;height:56px;width:auto;transition:filter .35s,transform .35s}
.brand:hover .navlogo{filter:drop-shadow(0 0 10px rgba(61,165,255,.75));transform:scale(1.04)}
.nav{display:flex;align-items:center;gap:28px;font-size:15px;font-weight:500}
.nav a{color:var(--muted);padding:10px 0}
.nav a:hover{color:#fff}
.nav .btn{min-height:44px;padding:0 18px;font-size:15px;color:var(--accent-ink)}
.menu-btn{display:none;width:44px;height:44px;border-radius:10px;border:1px solid var(--line3);background:transparent;color:var(--text);cursor:pointer;align-items:center;justify-content:center}
@media (max-width:860px){
  .menu-btn{display:inline-flex}
  .nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;align-items:stretch;gap:0;padding:8px 24px 20px;background:var(--bg);border-bottom:1px solid var(--line)}
  .nav.open{display:flex}
  .nav a{padding:14px 0;border-bottom:1px solid var(--line)}
  .nav .btn{margin-top:12px;border-bottom:0}
  .navlogo{height:48px}
}

/* hero */
.hero .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:56px;padding-top:80px;padding-bottom:72px}
.hero-copy{flex:1 1 480px;min-width:0;display:flex;flex-direction:column;gap:24px}
.hero h1{font-weight:700;font-size:clamp(40px,5.4vw,68px);line-height:1.05;letter-spacing:-1.5px}
.hero-copy .lead{font-size:19px;max-width:560px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.hero-ticks{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:14px;color:var(--dim)}
.hero-ticks span::before{content:"✓ ";color:var(--accent)}
.hero-visual{flex:1 1 420px;min-width:0;display:flex;justify-content:center}

/* animated logo */
.stage{position:relative;width:100%;max-width:540px;aspect-ratio:1264/1120;transition:transform .25s ease-out;animation:intro 1.4s cubic-bezier(.2,.8,.2,1) both;will-change:transform}
.stage img{position:absolute;inset:0;width:100%;height:100%}
.halo{position:absolute;left:18%;top:14%;width:64%;height:72%;border-radius:50%;background:radial-gradient(closest-side,rgba(40,140,255,.30),rgba(40,140,255,0));animation:breath 4s ease-in-out infinite}
.ring{animation:sway 10s ease-in-out infinite,glow 3.2s ease-in-out infinite}
.logotext{animation:textglow 3.2s ease-in-out infinite}
.shine{position:absolute;inset:0;overflow:hidden;pointer-events:none;-webkit-mask-image:url(cgx-logo-text.png);mask-image:url(cgx-logo-text.png);-webkit-mask-size:100% 100%;mask-size:100% 100%}
.beam{position:absolute;top:-10%;bottom:-10%;left:0;width:22%;background:linear-gradient(100deg,rgba(255,255,255,0),rgba(255,255,255,.9),rgba(255,255,255,0));animation:sweep 5.5s ease-in-out 1.2s infinite;transform:translateX(-120%)}
@keyframes intro{from{opacity:0;filter:blur(10px)}to{opacity:1;filter:blur(0)}}
@keyframes sway{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
@keyframes glow{0%,100%{filter:drop-shadow(0 0 4px rgba(61,165,255,.35))}50%{filter:drop-shadow(0 0 20px rgba(61,190,255,.85))}}
@keyframes textglow{0%,100%{filter:drop-shadow(0 0 0 rgba(61,165,255,0))}50%{filter:drop-shadow(0 0 12px rgba(61,165,255,.45))}}
@keyframes breath{0%,100%{opacity:.55;transform:scale(.94)}50%{opacity:1;transform:scale(1.06)}}
@keyframes sweep{0%{transform:translateX(-120%)}45%,100%{transform:translateX(560%)}}
@media (prefers-reduced-motion:reduce){.stage,.halo,.ring,.logotext,.beam{animation:none}.beam{display:none}html{scroll-behavior:auto}}

/* trust */
.trust{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 40px;padding-top:28px;padding-bottom:28px}
.trust span{font-family:var(--display);font-size:20px;font-weight:600;color:var(--soft)}
.trust .eyebrow{font-family:var(--body);font-size:13px;color:var(--dim)}

/* grids */
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:24px}
.service{padding:28px;display:flex;flex-direction:column;gap:14px;transition:border-color .25s,transform .25s}
.service:hover{border-color:#2d3a4d;transform:translateY(-3px)}
.icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;background:#152131;color:var(--accent)}
.service h3{font-size:21px;font-weight:600}
.service p{font-size:15px;color:var(--muted)}

/* projects */
.project{overflow:hidden;display:flex;flex-direction:column;transition:border-color .25s,transform .25s}
.project:hover{border-color:#2d3a4d;transform:translateY(-3px)}
.project-top{background:var(--card2);border-bottom:1px solid var(--line2);display:flex;flex-direction:column;position:relative;overflow:hidden}
.project-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line2)}
.project-bar i{width:9px;height:9px;border-radius:50%;background:#2C3442}
.project-bar span{margin-left:8px;flex:1;padding:3px 10px;border-radius:6px;background:var(--bg);font-size:12px;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-shot{aspect-ratio:16/9;overflow:hidden;background:var(--bg)}
.project-shot img{position:static;display:block;width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.project:hover .project-shot img{transform:scale(1.05)}
@media (prefers-reduced-motion:reduce){.project-shot img{transition:none}.project:hover .project-shot img{transform:none}}
.project-art{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:700;font-size:34px;letter-spacing:-1px;color:var(--head)}
.project-body{padding:24px;display:flex;flex-direction:column;gap:10px}
.project-body .tag{font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--accent)}
.project-body h3{font-size:21px;font-weight:600}
.project-body p{font-size:15px;color:var(--muted)}
.project-body .domain{font-size:13px;color:var(--dim)}

/* steps */
.steps{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.steps li{padding:28px;border-radius:16px;border:1px solid var(--line2);display:flex;flex-direction:column;gap:12px}
.steps .num{font-family:var(--display);font-size:40px;font-weight:700;line-height:1;color:var(--accent)}
.steps h3{font-size:20px;font-weight:600}
.steps p{font-size:15px;color:var(--muted)}

/* pricing */
.toggle{display:inline-flex;padding:4px;border-radius:12px;border:1px solid var(--line3);background:var(--bg)}
.toggle button{min-height:44px;padding:0 20px;border:0;border-radius:9px;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;background:transparent;color:var(--muted);transition:background .2s,color .2s}
.toggle button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.price-h{font-size:22px;font-weight:600;margin:0 0 20px}
.plan{padding:28px;display:flex;flex-direction:column;gap:16px}
.plan.featured{border:2px solid var(--accent);box-shadow:0 0 0 6px rgba(61,165,255,.08)}
.plan-top{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:28px}
.plan-name{font-family:var(--display);font-size:19px;font-weight:600;color:var(--head)}
.badge{padding:4px 10px;border-radius:999px;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:700}
.plan-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.plan-price small{font-size:15px;color:var(--dim)}
.plan-price strong{font-family:var(--display);font-size:40px;font-weight:700;line-height:1;letter-spacing:-1px;color:var(--head)}
.plan p{font-size:15px;color:var(--muted)}
.plan ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:14px;color:var(--soft)}
.plan li::before{content:"✓";color:var(--accent);margin-right:10px}
.price-row2{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px}
.price-sys{flex:2 1 460px;min-width:0;padding:28px}
.price-side{flex:1 1 300px;min-width:0;display:flex;flex-direction:column;gap:20px}
.price-side .card{padding:28px}
.row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;padding:14px 0;border-top:1px solid var(--line2)}
.row .name{font-weight:600;color:var(--head)}
.row .desc{display:block;font-size:14px;color:var(--dim);font-weight:400}
.row .val{font-family:var(--display);font-size:20px;font-weight:600;color:var(--head);white-space:nowrap}
.row.small{padding:10px 0}
.row.small .name{font-weight:500;color:var(--soft);font-size:15px}
.row.small .val{font-family:var(--body);font-size:16px;font-weight:700}
.price-note{margin-top:24px;font-size:14px;color:var(--dim)}

/* faq */
.faq .wrap{display:flex;flex-wrap:wrap;gap:48px}
.faq-head{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:14px}
.faq-list{flex:2 1 560px;min-width:0}
.faq details{border-top:1px solid var(--line2);padding:4px 0}
.faq details:last-child{border-bottom:1px solid var(--line2)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-family:var(--display);font-size:19px;font-weight:600;color:var(--head)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:26px;font-weight:400;color:var(--accent);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 0 20px;font-size:15px;color:var(--muted)}

/* AI Studio band */
.ai-band{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px 40px;padding:36px clamp(24px,4vw,48px);border-radius:20px;border:1px solid #23314a;background:linear-gradient(120deg,#101a2a,#11161E 60%)}
.ai-copy{flex:1 1 520px;min-width:0;display:flex;flex-direction:column;gap:10px}
.ai-copy h2{font-size:clamp(24px,2.4vw,30px);font-weight:700;line-height:1.2;letter-spacing:-.5px}
.ai-copy p{color:var(--muted);font-size:16px;max-width:640px}

/* contact */
.contact-box{border-radius:24px;border:1px solid #222A36;background:var(--card);padding:clamp(28px,5vw,56px);display:flex;flex-wrap:wrap;gap:48px}
.contact-info{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:18px}
.contact-info h2{font-weight:700;font-size:clamp(30px,3.2vw,42px);line-height:1.1;letter-spacing:-1px}
.contact-lines{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.contact-lines a{font-weight:600;color:var(--head)}
.contact-lines span{color:var(--dim)}
.form{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.form .two{display:flex;flex-wrap:wrap;gap:16px}
.form .two label{flex:1 1 200px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--soft)}
.form input,.form select,.form textarea{min-height:48px;padding:0 14px;border-radius:10px;border:1px solid var(--line3);background:var(--bg);color:var(--head);font-family:inherit;font-size:15px}
.form textarea{padding:12px 14px;resize:vertical;min-height:120px}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.form .consent{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400;font-size:13px;color:var(--dim)}
.form .consent input{min-height:auto;width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--accent)}
.form .consent a{color:var(--muted);text-decoration:underline}
.form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.form .btn{align-self:flex-start}
.form-msg{font-size:15px;font-weight:600;min-height:24px}
.form-msg.ok{color:#4ADE80}
.form-msg.err{color:#F87171}

/* footer */
.footer{border-top:1px solid var(--line)}
.footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 32px;padding-top:32px;padding-bottom:32px;font-size:14px;color:var(--dim)}
.footer nav{display:flex;flex-wrap:wrap;gap:8px 24px}
.footer a{color:var(--muted)}

/* reveal on scroll */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* legal page */
.legal{max-width:820px;margin:0 auto;padding:64px 24px 96px}
.legal h1{font-size:clamp(32px,4vw,44px);margin-bottom:24px}
.legal h2{font-size:22px;margin:36px 0 12px}
.legal p,.legal li{color:var(--muted);margin-bottom:10px}
