/* ============================================
   Kontri-Os — style.css
   Palette preserved from previous version.
   Structural classes updated to match index.html.
   ============================================ */

:root {
  --primary-dark: #1a5276;
  --primary: #2e86c1;
  --primary-light: #e1effa;
  --text-dark: #1e293b;
  --text-light: #475569;
  --bg-light: #f9fafb;
  --bg-alt: #f0f7ff;
  --white: #ffffff;
  --line: #e2e8f0;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow: 0 15px 30px -10px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

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

/* ============ NAVBAR ============ */
.navbar {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}
.brand-by { font-size: .9rem; color: #64748b; }
.nav-links { display: flex; gap: 2rem; font-weight: 500; }
.nav-links a {
  color: var(--text-dark);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--primary-dark); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-dark);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
}
.btn:hover {
  background: #154a67;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark) !important;
  box-shadow: none;
}
.btn-outline:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(46, 134, 193, .12), transparent 70%),
    radial-gradient(50% 50% at 0% 60%, rgba(26, 82, 118, .08), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: #0f2b3f;
  margin-bottom: 20px;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 28px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.apk-note { font-size: .95rem; color: #64748b; }

.hero-image {
  background: #d4e6f1;
  border-radius: 40px;
  padding: 20px;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .15);
  text-align: center;
}
.hero-image img {
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: #0f2b3f;
}
.section-sub {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 50px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ============ MISSION ============ */
.mission-box {
  background: var(--white);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, .05);
  border: 1px solid var(--line);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}
.mission-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary));
}
.mission-box .byline {
  margin-top: 20px;
  font-style: italic;
  color: var(--primary-dark);
  font-weight: 500;
}

/* ============ STEPS ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .03);
  border: 1px solid #eef2f6;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.step-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--primary-dark);
  transition: transform .3s var(--ease);
}
.step-card:hover .step-icon { transform: scale(1.08) rotate(-4deg); }
.step-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step-card p { color: var(--text-light); }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid #eef2f6;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .12);
  border-color: transparent;
}
.feature-icon {
  font-size: 34px;
  color: var(--primary);
  margin-bottom: 18px;
  transition: transform .3s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-light); }

/* ============ SCREENSHOTS ============ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}
.screenshots-grid img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 20px;
  border: 1px solid #e3eef6;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.screenshots-grid img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .15);
}

/* ============ FAQ (details/summary) ============ */
.faq-grid {
  max-width: 800px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] {
  border-color: var(--primary);
  box-shadow: 0 6px 18px -6px rgba(26, 82, 118, .15);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  color: var(--text-light);
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ============ VISION ============ */
.vision-box {
  background: #0f2b3f;
  color: var(--white);
  border-radius: 32px;
  padding: 50px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.vision-box h2 { font-size: 2.2rem; margin-bottom: 20px; }
.vision-box p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: .9;
}
.vision-box .btn-outline {
  background: var(--white);
  color: #0f2b3f !important;
  border: none;
}
.vision-box .btn-outline:hover { background: #e2e8f0; }

/* ============ DOWNLOAD ============ */
.download-section {
  background: var(--bg-alt);
  text-align: center;
}
.download-section h2 { margin-bottom: 20px; }
.download-section p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
}
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.download-buttons .btn { padding: 14px 36px; }

.contact-info { margin-top: 10px; font-size: .95rem; }
.contact-info i { color: var(--primary-dark); }
.contact-info a { color: var(--primary-dark); }
.contact-info a:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #334155;
  font-size: .95rem;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--primary-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 22px;
}
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-size: 18px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.social-icons a:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.footer-copy { color: #64748b; font-size: .9rem; }
.footer-copy .company { font-weight: 600; color: var(--primary-dark); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero-buttons { justify-content: center; }
  .navbar .container { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .mission-box { padding: 28px 22px; }
  .vision-box { padding: 40px 22px; }
  .footer-top,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}