/* Green terminal pages: Solutions, service pages, Connect. Same visual language as the original
   "matrix" solutions screen, rebuilt as a scrollable, semantic layout. */
:root { --g: #00ff00; --g2: #00a500; --gbg: rgba(0, 40, 0, .38); }
body.terminal { overflow: hidden; height: 100vh; height: 100dvh; color: var(--g); background: #000; }
.t-bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle farthest-side, #004700, #000); }
.t-wrap { width: 100%; margin: 0 auto; padding: 15px 15px 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
/* one-screen experience: only the content panel scrolls, like the original windows */
.t-main { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.t-main::-webkit-scrollbar { display: none; }
.terminal a { color: var(--g); }
.g-glow { animation: greenTextGlow 1.5s linear infinite; }
.g-glow-h { animation: greenTextGlowHeading 2s linear infinite; }

/* header */
.t-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 4px; border-bottom: 2px solid var(--g); }
.t-head .restart { font-size: 20px; }
.t-head .brand { font-size: 30px; text-align: center; }
.t-head .actions { justify-self: end; }
.t-head .actions a:first-child { font-size: 18px; }
@media (max-width: 1024px) {
  .t-head { grid-template-columns: 1fr; border-bottom: 0; text-align: center; gap: 15px; }
  .t-head .restart { display: none; }
  .t-head .brand { border-bottom: 2px solid var(--g); justify-self: center; }
  .t-head .actions { justify-self: center; }
}
@media (max-width: 374px) { .t-head .brand { font-size: 25px; } }

/* ticker */
.ticker { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; overflow: hidden; font-size: 16px; }
.ticker > span { flex-shrink: 0; width: 120px; }
.ticker-track { display: flex; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-row { display: flex; flex-shrink: 0; gap: 0; animation: horizontalElementsMoving 30s linear infinite; will-change: transform; }
.ticker-row a { white-space: nowrap; padding: 5px 34px 5px 0; opacity: .9; }
.ticker-row a:hover { opacity: 1; text-decoration: underline; }
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes horizontalElementsMoving { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (max-width: 767px) { .ticker > span { width: auto; font-size: 14px; } .ticker { font-size: 14px; } }

/* content */
.t-main { width: 100%; padding: 36px max(2px, calc((100% - 1160px) / 2)) 30px; }
.eyebrow { font-size: 14px; letter-spacing: 2px; opacity: .85; margin: 0 0 14px; }
.t-h1 { font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.12; margin: 0 0 22px; font-weight: 400; color: var(--g); }
.t-lead { font-family: 'Retro Gaming', monospace; font-weight: 400; color: #d9ffd9; font-size: 1.12rem; line-height: 1.6; max-width: 760px; margin: 0 0 12px; }
.t-p { font-family: 'Retro Gaming', monospace; color: #c9f5c9; line-height: 1.65; font-size: 1rem; }
.t-sec { margin-top: 64px; }
.t-h2 { font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 400; margin: 0 0 18px; color: var(--g); }
.t-h3 { font-size: 1.1rem; font-weight: 400; margin: 0 0 10px; color: var(--g); }
.crumbs { font-size: 13px; margin: 0 0 22px; opacity: .85; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { opacity: .9; }

/* buttons */
.g-btn { display: inline-block; padding: 9px 22px; border: 1px solid var(--g); box-shadow: 0 0 6px 1.5px var(--g); color: var(--g); font-family: 'Retro Gaming', monospace; font-size: 15px; letter-spacing: 1px; background: rgba(0, 60, 0, .25); cursor: pointer; transition: background .2s, box-shadow .2s, color .2s; }
.g-btn:hover { background: var(--g); color: #000 !important; box-shadow: none; }
.g-link { font-size: 15px; }
.g-link:hover { text-decoration: underline; }

/* service grid */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.svc { position: relative; border: 1px solid rgba(0,255,0,.55); background: var(--gbg); padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 250px; transition: box-shadow .25s, border-color .25s, transform .25s; }
.svc:hover, .svc:focus-within { border-color: var(--g); box-shadow: 0 0 6px 1.5px var(--g); transform: translateY(-2px); }
.svc .num { font-size: 13px; opacity: .7; }
.svc h2 { font-size: 1.25rem; font-weight: 400; margin: 0; line-height: 1.2; }
.svc p { font-family: 'Retro Gaming', monospace; color: #c9f5c9; font-size: .93rem; line-height: 1.55; margin: 0; flex: 1; }
.svc .more { font-size: 14px; }
.svc .more::after { content: ''; position: absolute; inset: 0; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 0; } }

/* AI note */
.ai-box { border-left: 2px solid var(--g); padding: 6px 0 6px 18px; max-width: 820px; }

/* packages */
.pkg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.pkg { border: 1px solid rgba(0,255,0,.45); padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.pkg h3 { font-size: 1.15rem; font-weight: 400; margin: 0; line-height: 1.25; }
.pkg ul, .t-list { list-style: none; margin: 0; padding: 0; font-family: 'Retro Gaming', monospace; color: #c9f5c9; font-size: .93rem; line-height: 1.5; }
.pkg li, .t-list li { padding-left: 18px; position: relative; margin-bottom: 6px; }
.pkg li::before, .t-list li::before { content: '>'; position: absolute; left: 0; color: var(--g); font-family: 'Retro Gaming', monospace; }
.pkg .g-btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 1024px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pkg-grid { grid-template-columns: 1fr; } }

/* service page */
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 767px) { .svc-cols { grid-template-columns: 1fr; gap: 28px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { list-style: none; border-top: 2px solid var(--g); padding-top: 14px; }
.steps li::before { counter-increment: s; content: '0' counter(s); font-size: 13px; opacity: .7; display: block; margin-bottom: 8px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid rgba(0,255,0,.35); padding: 14px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; }
.faq details[open] summary::after { content: '-'; }
.faq details p { font-family: 'Retro Gaming', monospace; color: #c9f5c9; line-height: 1.6; margin: 12px 0 0; }
.related { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.related a { border: 1px solid rgba(0,255,0,.45); padding: 7px 12px; font-size: 14px; }
.related a:hover { border-color: var(--g); box-shadow: 0 0 6px 1px var(--g); }
.cta-band { margin-top: 64px; border: 1px solid var(--g); box-shadow: 0 0 6px 1.5px var(--g); background: rgba(0, 50, 0, .35); padding: 30px 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; font-size: 1.2rem; }

/* contact */
.c-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 46px; margin-top: 36px; align-items: start; }
@media (max-width: 900px) { .c-grid { grid-template-columns: 1fr; } }
.form { border: 1px solid rgba(0,255,0,.55); background: var(--gbg); padding: 24px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form h2 { grid-column: 1 / -1; font-size: 1.1rem; font-weight: 400; margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; letter-spacing: .5px; }
.field input, .field select, .field textarea { font: 400 16px/1.4 'Retro Gaming', monospace; color: #eaffea; background: rgba(0,0,0,.55); border: 1px solid rgba(0,255,0,.5); padding: 11px 12px; border-radius: 0; outline: none; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #00ff00 50%), linear-gradient(135deg, #00ff00 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: #001a00; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--g); box-shadow: 0 0 6px 1px var(--g); }
.field .err { font: 13px 'Retro Gaming', monospace; color: #ff6b6b; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: #ff4d4d; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font: 14px/1.5 'Retro Gaming', monospace; color: #c9f5c9; }
.check input { margin-top: 4px; accent-color: #00ff00; width: 16px; height: 16px; flex-shrink: 0; }
.check a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-status { font: 14px/1.5 'Retro Gaming', monospace; }
.form-status.ok { color: #9dff9d; }
.form-status.bad { color: #ff6b6b; }
.form.sent { display: block; }
.form.sent > :not(.form-done) { display: none; }
.form-done { display: none; }
.form.sent .form-done { display: block; }
.direct { display: flex; flex-direction: column; gap: 14px; }
.direct .big { font-size: 1.05rem; word-break: break-all; }
.socials { display: flex; gap: 14px; margin-top: 4px; }
.socials a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0,255,0,.5); }
.socials a:hover { box-shadow: 0 0 6px 1px var(--g); border-color: var(--g); }
.socials svg { width: 18px; height: 18px; fill: var(--g); }

/* footer + start menu */
.t-foot { border-top: 2px solid var(--g); margin-top: 0; padding: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-around; font-size: 14px; }
.t-foot a:hover { text-decoration: underline; }
.t-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.t-bar .g-btn { font-size: 14px; padding: 7px 14px; }
.start-menu { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(92vw, 350px); background: rgba(0, 50, 0, .95); border: 2px solid var(--g); box-shadow: 0 0 6px 1.5px var(--g); padding: 0 0 18px; }
.start-menu[hidden] { display: none; }
.start-menu h2 { font-size: 20px; font-weight: 400; color: var(--g); margin: 0; padding: 6px 15px; border-bottom: 2px solid var(--g); }
.start-menu nav { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 0; font-size: 16px; }
.start-menu .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--g); font-size: 20px; cursor: pointer; font-family: 'Retro Gaming', monospace; line-height: 1; }

/* matrix intro (solutions only) */
.transition { position: fixed; inset: 0; z-index: 97; background: #000; transition: opacity .6s ease-out .6s; opacity: 0; pointer-events: none; }
.transition.is-active { opacity: 1; }
.matrix { position: fixed; inset: 0; z-index: 97; background: #000; transition: opacity 1.8s cubic-bezier(.45, 0, .2, 1) .9s; opacity: 0; pointer-events: none; }
.matrix.is-active { opacity: 1; }
.awake { width: 100%; position: fixed; text-align: center; top: 50%; transform: translateY(-50%); font-size: 30px; color: var(--g); z-index: 98; }
