/* === PodoCloud Landing Page === */

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

:root {
  --primary: #1B7A8A;
  --primary-dark: #145e6b;
  --primary-light: #e0f4f7;
  --primary-gradient: linear-gradient(135deg, #1B7A8A, #2a9bb0);
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(27,122,138,.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */

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

section {
  padding: 80px 0;
}

section:nth-child(even) {
  background: var(--white);
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* === Hero === */

.hero {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 100px 0 80px;
  text-align: center;
}

.hero-logo {
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero .tagline {
  font-size: 1.35rem;
  opacity: .9;
  font-weight: 400;
  margin-bottom: 24px;
}

.hero .description {
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  opacity: .85;
  line-height: 1.7;
}

.hero-screenshot {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.hero-screenshot img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* === Features === */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === Screenshots === */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}

.screenshot-placeholder:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.screenshot-placeholder img {
  width: 100%;
  display: block;
}

/* === Lightbox === */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: .7;
  transition: opacity .2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* === Tech Stack === */

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  border: 1px solid rgba(27,122,138,.15);
}

/* === Architecture === */

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.arch-block {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 20px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  min-width: 160px;
}

.arch-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  padding: 0 12px;
  font-weight: 700;
}

.middleware-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.middleware-tag {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* === Footer === */

footer {
  background: var(--text);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 32px 0;
  font-size: .85rem;
}

/* === Responsive === */

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

  .hero h1 {
    font-size: 2.2rem;
  }

  .arch-diagram {
    flex-direction: column;
    gap: 8px;
  }

  .arch-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

@media (max-width: 600px) {
  section {
    padding: 48px 0;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }
}
