/* ============================================
   Deep Labs x Apex - Warmcore Tech Landing Page
   Full Stylesheet
   ============================================ */

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

:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F0EBE3;
  --bg-tertiary: #E8E2DA;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6560;
  --text-tertiary: #9B9590;
  --accent: #C4956A;
  --accent-hover: #A87B55;
  --accent-light: rgba(196, 149, 106, 0.1);
  --card-bg: #FFFFFF;
  --border: #E8E2DA;
  --radius-btn: 100px;
  --radius-card: 16px;
  --radius-input: 12px;
  --radius-image: 20px;
  --shadow-card: 0 2px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Shared Components --- */
.section-title {
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 36px;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.btn-header {
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 13px;
}

.btn-header:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-primary {
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(196, 149, 106, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-success {
  background: #5A9E6F !important;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

/* --- Hero --- */
.hero {
  padding: 100px 0 60px;
  background: var(--bg-primary);
}

.hero-title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 36px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-image);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card-hover);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(26, 26, 26, 0.6));
}

.hero-image-overlay span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
}

/* --- Email Form --- */
.email-form {
  margin-bottom: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-input::placeholder {
  color: #B0AAA3;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.micro-copy {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* --- What Is Section --- */
.what-is {
  padding: 64px 0;
  background: var(--bg-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-item {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Market Categories --- */
.categories {
  padding: 64px 0;
  background: var(--bg-primary);
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.category-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.category-highlight {
  border-color: var(--accent);
  background: linear-gradient(135deg, #FFFDF9, #FFF8F0);
}

.category-num {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.category-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-btn);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.category-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.category-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.category-example {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  font-style: italic;
}

/* --- Core Highlights --- */
.highlights {
  padding: 64px 0;
  background: var(--bg-secondary);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.card-number {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-primary);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.card-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Product Showcase --- */
.products {
  padding: 64px 0;
  background: var(--bg-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-secondary);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-info {
  padding: 24px;
}

.product-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-btn);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-origin {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.product-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: 12px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tags span {
  padding: 5px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-btn);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Trust --- */
.trust {
  padding: 48px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.trust-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.trust-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* --- FAQ --- */
.faq {
  padding: 64px 0;
  background: var(--bg-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease);
}

.faq-item:hover {
  box-shadow: var(--shadow-card);
}

.faq-item[open] {
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- Final CTA --- */
.final-cta {
  padding: 64px 0;
  background: var(--bg-secondary);
  text-align: center;
}

.final-title {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.final-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.final-cta .form-row {
  max-width: 480px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: 28px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

/* ============================================
   Responsive - Tablet (640px+)
   ============================================ */
@media (min-width: 640px) {
  .form-row {
    flex-direction: row;
    align-items: stretch;
  }

  .form-input {
    flex: 1;
  }

  .btn-primary {
    flex-shrink: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .product-grid .product-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

/* ============================================
   Responsive - Desktop (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .what-is,
  .categories,
  .highlights,
  .products,
  .faq {
    padding: 80px 0;
  }

  .trust {
    padding: 56px 0;
  }

  .final-cta {
    padding: 80px 0;
  }

  .section-subtitle {
    margin-bottom: 48px;
  }
}

/* ============================================
   Responsive - Large Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero-title {
    font-size: 48px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid .product-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}
