/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #4A7FB5;
  --blue-dark: #3A6A9A;
  --blue-light: #EBF2FA;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F7;
  --gray-200: #E8E8ED;
  --gray-300: #D2D2D7;
  --gray-400: #86868B;
  --gray-600: #6E6E73;
  --gray-800: #1D1D1F;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* === Nav === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 17px;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gray-800); }

.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--blue-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
}

/* === Hero === */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--white) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.hero-logo {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 20px;
  max-width: 480px;
}

.hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  color: var(--gray-600);
  border: 1px solid var(--gray-300);
}

.hero-actions {
  display: flex;
  gap: 12px;
}

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

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover { background: var(--gray-100); }

.btn-large { padding: 14px 36px; font-size: 17px; }

/* === Window Frame === */
.window-frame {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.window-titlebar {
  background: var(--gray-100);
  padding: 10px 14px;
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--gray-200);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

/* === Screenshots === */
.screenshot {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* === Sections === */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  font-size: 17px;
  margin-bottom: 48px;
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* === Screenshot Showcase === */
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.showcase-item.reverse {
  grid-template-columns: 1.3fr 1fr;
}

.showcase-item.reverse .showcase-text {
  order: 2;
}

.showcase-item.reverse .showcase-image {
  order: 1;
}

.showcase-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.showcase-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.showcase-image img {
  width: 100%;
  display: block;
}

.showcase-image a {
  display: block;
}

/* === Log Types Grid === */
.log-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.log-type-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s;
}

.log-type-card:hover {
  box-shadow: var(--shadow-sm);
}

.log-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.log-type-card strong {
  font-size: 15px;
  display: block;
  margin-bottom: 2px;
}

.log-type-card span {
  font-size: 12px;
  color: var(--gray-600);
}

/* === Steps === */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
}

.step-arrow {
  font-size: 24px;
  color: var(--gray-300);
  margin-top: 12px;
}

/* === Admin API === */
.admin-api-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.admin-api-text h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.admin-api-text > p {
  font-size: 16px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-bottom: 20px;
}

.feature-list li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.muted {
  font-size: 13px;
  color: var(--gray-400);
}

.api-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.api-card-header {
  background: var(--gray-100);
  padding: 14px 20px;
  font-weight: 600;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-200);
}

.api-card-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.api-card-row:last-child { border-bottom: none; }

.api-card-row span:first-child { color: var(--gray-600); }
.api-card-row span:last-child { font-weight: 500; }

.status-connected {
  color: #28C840;
  font-weight: 600 !important;
}

/* === Download === */
.section-download {
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-light) 100%);
  padding: 80px 0 100px;
}

.download-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.section-download h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-download p {
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* === Footer === */
.footer {
  background: var(--gray-100);
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gray-600); }

/* === Legal Pages === */
.legal-page {
  padding-top: 120px;
}

.legal-container {
  max-width: 760px;
}

.legal-container h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 4px;
}

.legal-updated {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.legal-container h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-container h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-container p {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-container ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.legal-container li {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 4px;
}

.legal-container a {
  color: var(--blue);
  text-decoration: none;
}

.legal-container a:hover {
  text-decoration: underline;
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-popular {
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.pricing-amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-400);
}

.pricing-detail {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--blue);
  font-weight: 700;
  position: absolute;
  left: 0;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.pricing-footer {
  text-align: center;
}

.pricing-footer p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.pricing-footer a {
  color: var(--blue);
  text-decoration: none;
}

.pricing-footer a:hover {
  text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 36px; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .showcase-item.reverse .showcase-text { order: 1; }
  .showcase-item.reverse .showcase-image { order: 2; }

  .log-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-api-section {
    grid-template-columns: 1fr;
  }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero h1 { font-size: 30px; }
  .section-title { font-size: 28px; }
  .section { padding: 60px 0; }

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

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
