/* =============================================
   OkoNinf – style.css
   Serwis Komputerowy Szymon Okoń
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0f14;
  --bg2:       #131720;
  --bg3:       #1a2030;
  --surface:   #1e2535;
  --border:    #2a3347;
  --accent:    #3dffc0;
  --accent2:   #1de0a8;
  --text:      #e8edf5;
  --text-muted:#7a8ba6;
  --text-dim:  #4a5a72;
  --warn:      #ffb830;
  --danger:    #ff5454;

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius:    10px;
  --radius-lg: 18px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }


/* ── UTILITY ── */
.section-tag {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .75rem;
}


/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: .02em;
}

.btn--primary {
  background: var(--accent);
  color: #0a0e14;
}
.btn--primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,255,192,.22);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }


/* ═══════════════════════
   NAV
═══════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(13,15,20,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.nav__logo-bracket { color: var(--text-dim); }
.nav__logo-accent  { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 2rem;
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  padding: .55rem 1.3rem;
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--accent);
  color: #0a0e14;
}


/* ═══════════════════════
   HERO
═══════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 7rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,255,192,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,255,192,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero__bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(61,255,192,.06) 0%, transparent 70%);
}

.hero__content {
  flex: 1;
  max-width: 560px;
  animation: fadeUp .8s ease both;
}

.hero__label {
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.hero__title-outline {
  -webkit-text-stroke: 1.5px var(--accent);
  color: transparent;
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero__sub strong { color: var(--text); font-weight: 500; }

.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ── MONITOR VISUAL ── */
.hero__visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp .8s .2s ease both;
}

.hero__monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 24px 60px rgba(61,255,192,.15));
}

.hero__screen {
  width: 320px;
  height: 220px;
  background: var(--bg2);
  border: 2px solid var(--border);
  border-radius: 10px 10px 0 0;
  padding: 1.2rem 1.4rem;
  overflow: hidden;
  position: relative;
}
.hero__screen::before {
  content: '● ● ●';
  display: block;
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--text-dim);
  margin-bottom: .8rem;
}

.hero__terminal {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.t-line {
  font-family: 'DM Sans', monospace;
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
  animation: termAppear .4s ease both;
}
.t-line:nth-child(1) { animation-delay: .4s; }
.t-line:nth-child(2) { animation-delay: .7s; }
.t-line:nth-child(3) { animation-delay: 1s; }
.t-line:nth-child(4) { animation-delay: 1.3s; }
.t-line:nth-child(5) { animation-delay: 1.6s; }

.t-prompt { color: var(--accent); margin-right: .5rem; }
.t-ok     { color: #4cff9f; }
.t-warn   { color: var(--warn); }

.t-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink .8s step-end infinite;
}

.hero__stand {
  width: 60px; height: 20px;
  background: var(--surface);
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
}
.hero__base {
  width: 120px; height: 10px;
  background: var(--surface);
  border-radius: 0 0 6px 6px;
  border: 2px solid var(--border);
  border-top: none;
}


/* ═══════════════════════
   STATS
═══════════════════════ */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2.5rem 5%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 3rem;
  gap: .25rem;
}
.stats__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stats__label {
  font-size: .82rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.stats__divider {
  width: 1px;
  height: 50px;
  background: var(--border);
}


/* ═══════════════════════
   SERVICES
═══════════════════════ */
.services {
  padding: 6rem 5%;
}
.services__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.services__header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.services__header p { color: var(--text-muted); max-width: 480px; margin: 0 auto; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(61,255,192,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.service-card:hover::before { opacity: 1; }

.service-card--accent {
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(61,255,192,.06) 100%);
  border-color: rgba(61,255,192,.25);
}

.service-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
}
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }


/* ═══════════════════════
   ABOUT
═══════════════════════ */
.about {
  padding: 6rem 5%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  border-radius: 0;
}

/* override for section full-width bg */
section.about {
  max-width: none;
  padding-left: 10%;
  padding-right: 10%;
}

.about__text { flex: 1.4; }
.about__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.about__lead {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text);
}
.about__text > p:last-of-type { color: var(--text-muted); margin-bottom: 1.5rem; }

.about__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.about__points li { font-size: .95rem; color: var(--text-muted); }
.check { color: var(--accent); margin-right: .6rem; font-weight: 700; }

.about__card {
  flex: 0 0 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.about__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #00b880 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0a0e14;
  margin-bottom: .5rem;
}
.about__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.about__role { font-size: .82rem; color: var(--text-muted); }
.about__site {
  margin-top: .5rem;
  font-size: .82rem;
  color: var(--accent);
  border: 1px solid rgba(61,255,192,.3);
  border-radius: 20px;
  padding: .3rem .9rem;
  transition: var(--transition);
}
.about__site:hover { background: rgba(61,255,192,.08); }


/* ═══════════════════════
   PRICING
═══════════════════════ */
.pricing {
  padding: 6rem 5%;
}
.pricing__header {
  text-align: center;
  margin-bottom: 3rem;
}
.pricing__header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.pricing__header p { color: var(--text-muted); }

.pricing__table {
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  transition: var(--transition);
}
.pricing__row:last-child { border-bottom: none; }
.pricing__row:not(.pricing__row--head):hover { background: var(--bg2); }

.pricing__row--head {
  background: var(--surface);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
}


/* ═══════════════════════
   CONTACT
═══════════════════════ */
.contact {
  padding: 6rem 5%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.contact__inner {
  display: flex;
  gap: 5rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: flex-start;
}
.contact__text { flex: 1; }
.contact__text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.contact__text > p { color: var(--text-muted); margin-bottom: 2rem; }

.contact__details {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.contact__link {
  font-size: .95rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.contact__link:hover { color: var(--accent); }

.contact__form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.form-group label {
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .04em;
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  transition: var(--transition);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(61,255,192,.1);
}


/* ═══════════════════════
   FOOTER
═══════════════════════ */
.footer {
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: -.01em;
}
.footer__copy { font-size: .82rem; color: var(--text-dim); }
.footer__tagline {
  font-size: .82rem;
  color: var(--accent);
  font-style: italic;
}


/* ═══════════════════════
   ANIMATIONS
═══════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes termAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}


/* ═══════════════════════
   RESPONSIVE
═══════════════════════ */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
  }
  .hero__actions { justify-content: center; }
  .hero__sub { margin: 0 auto 2rem; }

  .about { flex-direction: column; align-items: center; padding: 4rem 5%; }
  .about__card { width: 100%; max-width: 280px; }

  .contact__inner { flex-direction: column; gap: 3rem; }

  .nav__links { display: none; }
}

@media (max-width: 600px) {
  .stats { flex-direction: column; gap: 1.5rem; }
  .stats__divider { width: 60px; height: 1px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .pricing__row { padding: .8rem 1rem; font-size: .88rem; }
}
