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

:root {
  --color-bg: #ffffff;
  --color-surface: #f5f7fa;
  --color-border: #e2e8f0;
  --color-text: #707070;
  --color-text-muted: #718096;
  --color-accent: #800060;
  --color-accent-hover: #5c0045;
  --color-logo-grey: #707070;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 6px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

/* Header */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

header img.logo {
  height: 36px;
  width: auto;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-accent);
}

header .site-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Main layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--color-text);
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--color-text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: 680px;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.card h3 {
  margin-top: 0;
  color: var(--color-text);
}

/* Button */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--color-accent-hover);
}

/* Hero */
.hero {
  text-align: center;
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 56px;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 0;
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(43, 108, 176, 0.1);
}

.product-card .product-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-card .product-logo .product-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-card .product-logo .product-icon svg {
  width: 32px;
  height: 32px;
}

.product-card .product-logo .product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.product-name-prefix {
  color: var(--color-logo-grey);
}

.product-name-suffix,
.accent {
  color: var(--color-accent);
}

.product-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
  flex: 1;
}

.product-card .btn {
  align-self: flex-start;
  font-size: 0.875rem;
  padding: 8px 16px;
}

/* Product accent colors — icon badges */
.icon-deepwatch,
.icon-deepproto,
.icon-deepfabric,
.icon-deepscan,
.icon-deepserve    { background: transparent; color: #707070; }

/* Product card themes — colored top border + matching button (logo brand color: #800060) */
.product-card.theme-deepwatch,
.product-card.theme-deepproto,
.product-card.theme-deepfabric,
.product-card.theme-deepscan,
.product-card.theme-deepserve   { border-top: 3px solid #800060; }

.product-card .btn              { background: #800060; }
.product-card .btn:hover        { background: #5c0045; }

/* Product detail sections */
.product-detail {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 24px;
}

.product-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
}

.product-detail-header.theme-deepproto,
.product-detail-header.theme-deepfabric,
.product-detail-header.theme-deepserve,
.product-detail-header.theme-deepscan,
.product-detail-header.theme-deepwatch { border-left-color: #800060; }

.product-detail-header .product-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-header .product-icon svg {
  width: 28px;
  height: 28px;
}

.product-detail-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-detail > p {
  max-width: 680px;
  margin-bottom: 20px;
}

.product-detail ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.product-detail ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.product-detail ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin-top: 8px;
}

.feature-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-text span {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* About section */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
  margin-top: 8px;
}

.about-card {
  display: flex;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.about-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--color-accent);
}

.about-avatar img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center 20%;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-info strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.about-role {
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.about-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: #0A66C2;
  text-decoration: none;
  margin-bottom: 8px;
}

.about-linkedin:hover {
  text-decoration: underline;
}

.about-info p {
  margin: 0;
  font-size: 0.925rem;
  max-width: none;
}

/* Engagement pills (pricing + delivery) */
.engagement-pills {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.engagement-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Pricing footnote */
.pricing-footnote {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: none;
  margin-top: 8px;
}

/* Section heading */
.section-heading {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--color-text);
}

/* Mobile typography */
@media (max-width: 600px) {
  body {
    font-size: 18px;
  }

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

  .hero p {
    font-size: 1.05rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }

  .product-card .product-name {
    font-size: 1.15rem;
  }

  .product-card p {
    font-size: 1rem;
  }

  .product-card .btn {
    font-size: 1rem;
  }

  .product-detail-header h2 {
    font-size: 1.4rem;
  }

  .product-detail > p {
    font-size: 1rem;
  }

  .feature-text strong {
    font-size: 1rem;
  }

  .feature-text span {
    font-size: 0.95rem;
  }

  .about-info strong {
    font-size: 1.05rem;
  }

  .about-role {
    font-size: 0.95rem;
  }

  .about-info p {
    font-size: 1rem;
  }

  .engagement-pill {
    font-size: 0.95rem;
  }

  .pricing-footnote {
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
