:root {
  --navy: #1a2e3a;
  --navy-2: #1B2A44;
  --teal: #2BB3A3;
  --teal-dark: #1F8A7E;
  --accent: #E07A5F;
  --white: #FFFFFF;
  --grey: #dde3ea;
  --light-grey: #F4F6F9;
  --text-muted: #4b5563;
  --correct: #2E7D32;
  --wrong: #8A2E2E;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

img { max-width: 100%; display: block; }

/* ANIMATIONS */
.fade-in { animation: fadeIn 1.2s ease forwards; opacity: 0; }
.slide-up { animation: slideUp 1s ease forwards; opacity: 0; }
.float { animation: float 5s ease-in-out infinite; }
.hover-up { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.hover-up:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(15,27,45,0.12); }
.pulse { animation: pulse 2.4s infinite; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--grey);
  padding: 0.85rem 0;
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-icon { height: 40px; width: auto; display: block; }

.logo-wordmark {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  margin-left: 1.4rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--teal-dark); }

.btn.small {
  padding: 0.45rem 1.1rem;
  border-radius: 22px;
  background: var(--teal);
  color: var(--white) !important;
}

.btn.small:hover { background: var(--teal-dark); }

/* HERO */
.hero {
  background: url('img/main.jpg') center center / cover no-repeat;
  color: var(--navy);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255,255,255,0.88) 0%,
    rgba(255,255,255,0.72) 55%,
    rgba(255,255,255,0.25) 100%
  );
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-text { max-width: 580px; }

.eyebrow {
  display: inline-block;
  background: rgba(43,179,163,0.15);
  color: var(--teal-dark);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--navy);
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.88;
  margin: 0 0 1.4rem;
  color: var(--navy);
}

.benefits { list-style: none; padding: 0; margin: 1.4rem 0; }
.benefits li { margin-bottom: 0.5rem; font-size: 1.02rem; color: var(--navy); }

.hero-visual { flex-shrink: 0; }
.hero-visual img { width: 460px; max-width: 100%; }

/* APP MOCKUP CARD */
.app-mockup {
  width: 420px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,27,45,0.18), 0 4px 16px rgba(43,179,163,0.12);
  overflow: hidden;
  border: 1px solid rgba(43,179,163,0.25);
}

.app-mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  background: #f8fffe;
  border-bottom: 1px solid var(--grey);
}

.mockup-logo-icon {
  height: 26px;
  width: auto;
  display: block;
}

.mockup-logo-text {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.app-mockup-body {
  padding: 1.1rem 1.2rem 1.4rem;
}

.app-mockup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.app-mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.app-mockup-cell {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--grey);
  aspect-ratio: 1 / 1;
  background: var(--light-grey);
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.app-mockup-cell:hover {
  border-color: var(--teal);
  transform: scale(1.03);
}

.app-mockup-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cta-buttons { margin-top: 1.6rem; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}

.btn.primary {
  background-color: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(43,179,163,0.35);
}
.btn.primary:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn.secondary {
  border: 2px solid var(--teal-dark);
  color: var(--teal-dark);
  background: rgba(255,255,255,0.55);
}
.btn.secondary:hover { background: rgba(43,179,163,0.1); }

/* SECTIONS */
section { padding: 4.5rem 0; }
.alt-bg { background: var(--light-grey); }

h2 {
  text-align: center;
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* SERVICES / SLOTS */
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.slot {
  background: var(--white);
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--grey);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alt-bg .slot { background: var(--white); }

.slot:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(15,27,45,0.08);
}

.slot-tag {
  display: inline-block;
  background: rgba(43,179,163,0.12);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.slot h3 {
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
  color: var(--navy);
}

.slot p { margin: 0; color: var(--text-muted); }

/* CASE STUDIES */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: var(--light-grey);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15,27,45,0.08);
}

.case-thumb {
  position: relative;
  height: 170px;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--grey);
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
  transition: transform 0.4s ease;
}

.case-card:hover .case-thumb img {
  transform: scale(1.04);
}

.case-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15,27,45,0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.case-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.case-card p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* TIMELINE */
.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.4rem 1.4rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--grey);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.alt-bg .timeline-step { background: var(--light-grey); }

.timeline-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15,27,45,0.08);
}

.timeline-icon {
  width: 52px;
  height: 52px;
  background: var(--teal);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  color: var(--white);
}

.timeline-text h3 { margin: 0 0 0.25rem; font-size: 1.18rem; }
.timeline-text p { margin: 0; color: var(--text-muted); }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: reveal 0.8s ease forwards;
}
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.30s; }
.reveal:nth-child(4) { animation-delay: 0.45s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.why-item {
  background: var(--white);
  padding: 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--grey);
}

.alt-bg .why-item { background: var(--white); }

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.why-item p { margin: 0; color: var(--text-muted); }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
}

.price-card {
  border: 1px solid var(--grey);
  border-radius: 18px;
  padding: 2rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.price-card h3 { margin: 0 0 0.4rem; font-size: 1.4rem; }

.price-card.featured {
  border: 2px solid var(--teal);
  background: linear-gradient(180deg, #f4fdfb 0%, #ffffff 100%);
  position: relative;
}

.price-card.featured::before {
  content: "Polecane";
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--teal);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: 12px;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0.4rem 0 0.2rem;
  letter-spacing: -0.02em;
}

.price-sub {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.price-card li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--grey);
  color: var(--text-muted);
  font-size: 0.96rem;
}

.price-card li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}

.price-card li:last-child { border-bottom: none; }

.pricing-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* DOWNLOAD */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.6rem;
}

.download-card {
  background: var(--light-grey);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--grey);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(15,27,45,0.1);
}

.os-icon {
  font-size: 3rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.download-card h3 { margin: 0.2rem 0 0.4rem; }

.download-card > p { color: var(--text-muted); margin: 0 0 1.2rem; font-size: 0.95rem; }

.download-card .btn { width: 100%; }

.dl-meta {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* JAVA NOTICE */
.java-notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  background: #fffdf4;
  border: 1px solid #f0d87a;
  border-left: 4px solid #e0b800;
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
}

.java-notice-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.java-notice-text {
  font-size: 0.93rem;
  color: var(--navy);
  line-height: 1.6;
}

.java-notice-text a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.java-notice-text a:hover { color: var(--teal); }


.contact-wrapper {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.contact-image {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
}

.contact-info {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 16px;
  height: 100%;
}

.contact-info h3 { margin-top: 0; font-size: 1.4rem; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
}

.contact-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-list li:last-child { border-bottom: none; }

.contact-info .muted { opacity: 0.7; font-size: 0.9rem; }

.contact-content {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--grey);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,179,163,0.2);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.4rem 0;
}

.checkbox input { margin-top: 0.25rem; }

.contact-form button { align-self: flex-start; margin-top: 0.5rem; }

.rodo-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 1.5rem;
}

.hidden-field { display: none !important; }

/* FOOTER */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p { margin: 0.15rem 0; }
.footer .muted { opacity: 0.65; font-size: 0.88rem; }

.socials a {
  margin-left: 1.2rem;
  color: var(--white);
  opacity: 0.85;
  text-decoration: none;
  font-size: 0.95rem;
}
.socials a:hover { opacity: 1; }

.muted { color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-text { margin: 0 auto; }
  .hero h1 { font-size: 2.2rem; }
  .app-mockup { width: 340px; }
  .nav-links a { margin-left: 0.8rem; font-size: 0.9rem; }
}

@media (max-width: 700px) {
  .container { padding: 0 1.2rem; }
  section { padding: 3rem 0; }
  h2 { font-size: 1.65rem; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.btn.small { display: inline-block; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .socials a { margin: 0 0.6rem; }
  .contact-wrapper { flex-direction: column; gap: 1.5rem; }
  .timeline-step { flex-direction: column; align-items: flex-start; }
}
