:root {
  --blue: #1a56db;
  --blue-dark: #1340a8;
  --blue-light: #f0f4ff;
  --dark: #1e2a3b;
  --gray: #64748b;
  --gray-light: #e8edf5;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(26, 86, 219, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.logo span { color: var(--dark); }

nav { display: flex; gap: 2rem; }
nav a {
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--blue); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ── SECTIONS ── */
section { padding: 72px 5%; }
section:nth-child(even) { background: var(--blue-light); }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 0.5rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }

.subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin-top: 0.75rem;
}

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, #0d2d6b 0%, #1a56db 100%);
  color: var(--white);
  padding: 96px 5% 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

#hero h1 { color: var(--white); }
#hero .subtitle { color: rgba(255,255,255,0.8); max-width: 100%; }

.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}
.btn-white:hover { background: var(--blue-light); color: var(--blue-dark); }

.hero-visual {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(4px);
}

.hero-visual ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-visual li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

.hero-visual .icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── USE CASES ── */
.use-cases-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.use-case-tag {
  background: var(--white);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── PAIN POINTS ── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid #e53e3e;
  box-shadow: var(--shadow);
}

.pain-card .pain-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.pain-card h3 { color: #c53030; }
.pain-card p { color: var(--gray); font-size: 0.95rem; margin-top: 0.35rem; }

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card .feat-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray); font-size: 0.9rem; margin-top: 0.4rem; }

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.5rem;
  top: 2.2rem;
  font-size: 1.4rem;
  color: var(--blue);
  font-weight: 300;
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.step p { color: var(--gray); font-size: 0.88rem; margin-top: 0.3rem; }

.step-note {
  margin-top: 2rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  color: #7d5700;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* ── ARCHITECTURE ── */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.arch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.arch-card .arch-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.arch-card ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.arch-card li { color: var(--gray); font-size: 0.92rem; padding-left: 1.2rem; position: relative; }
.arch-card li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── SECURITY ── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.security-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.security-item .sec-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.security-item p { color: var(--gray); font-size: 0.88rem; margin-top: 0.2rem; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  border: 2px solid var(--gray-light);
}

.price-card.featured {
  border-color: var(--blue);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  margin: 1rem 0 0.25rem;
}

.price-period { color: var(--gray); font-size: 0.85rem; }

.price-card ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.price-card li { font-size: 0.9rem; padding-left: 1.3rem; position: relative; color: var(--gray); }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ── CONTACT ── */
#contact { text-align: center; }

.email-block {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}
.email-block:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

footer .logo { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }

/* ── SCREENSHOTS ── */
.screenshots-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
}

.tab-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  border: 1.5px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.tab-btn.active { background: var(--blue); color: var(--white); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.12);
  border: 1px solid var(--gray-light);
  background: var(--white);
}

.screenshot-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
  cursor: zoom-in;
}
.screenshot-item:hover img { transform: scale(1.02); }

.screenshot-item figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--gray);
  border-top: 1px solid var(--gray-light);
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 0 4%; }
  nav { display: none; }

  #hero {
    grid-template-columns: 1fr;
    padding: 60px 4% 48px;
  }
  .hero-visual { display: none; }

  section { padding: 52px 4%; }

  .arch-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  #contact { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -0.5rem; }
}
