/* ========================================
   Design D — Clean & Product-First
   Pure white, expansive, product-forward
   ======================================== */

/* --- Design Tokens --- */
:root {
  --primary: #18181B;
  --primary-light: #27272A;
  --primary-dark: #09090B;
  --primary-glow: rgba(24, 24, 27, 0.04);
  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-dark: #1D4ED8;

  --bg: #FAFAFA;
  --bg-alt: #FFFFFF;
  --bg-warm: #FFFFFF;
  --text: #18181B;
  --text-secondary: #71717A;
  --text-muted: #A1A1AA;
  --border: #E4E4E7;
  --border-light: #F4F4F5;

  --card-bg: #FFFFFF;
  --card-shadow: 0 0 0 1px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.06);
  --card-radius: 0;
  --img-bg: #F4F4F5;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 0.95rem;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 60px;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover .logo-text {
  opacity: 0.7;
}

.logo-sub {
  display: none;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav a {
  display: inline-block;
  padding: 0 1.2rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  height: 60px;
  line-height: 60px;
  transition: all 0.2s;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  background: var(--bg-alt);
  color: var(--text);
  padding: 4rem 0 6rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  line-height: 1.08;
  color: var(--text);
}

.hero-content .hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 2rem 0;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--img-bg);
  border-radius: 4px;
  padding: 2rem;
  min-height: 400px;
}

.hero-product-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.4;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--border-light);
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border-light);
}

.feature-card {
  background: var(--card-bg);
  padding: 2.5rem;
  transition: all 0.2s;
}

.feature-card:hover {
  background: #F8F8F8;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================
   PRODUCT GRID
   ========================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border-light);
}

.product-card {
  display: block;
  background: var(--card-bg);
  overflow: hidden;
  transition: all 0.2s;
}

.product-card:hover {
  background: #F8F8F8;
}

.product-card-img {
  background: var(--img-bg);
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 260px;
}

.product-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s;
}

.product-card:hover .product-card-img img {
  opacity: 0.8;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.product-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0;
}

.product-detail-img {
  background: var(--img-bg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.product-detail-img img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.product-detail-body h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.product-detail-body .product-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.product-detail-body p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.85rem;
}

.product-table th {
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.product-table tr:hover td {
  background: var(--bg);
}

/* ==========================================
   CONTENT PAGES
   ========================================== */
.content-page {
  max-width: 720px;
  margin: 3rem auto;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.content-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.content-page p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.content-page ul, .content-page ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.content-page li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-page img {
  margin: 1.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-light);
  margin: 2rem 0;
}

.contact-card {
  background: var(--card-bg);
  padding: 2rem;
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  display: block;
  padding: 0.3rem 0;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 0.6;
}

.footer-bottom {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================
   UTILITY
   ========================================== */
.text-center { text-align: center; }

@media (max-width: 768px) {
  .hero .container,
  .product-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-visual {
    min-height: 200px;
  }

  .site-header .container {
    height: auto;
    padding: 0.75rem 1rem;
    flex-direction: column;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a {
    height: auto;
    line-height: 1.4;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .main-nav a::after {
    display: none;
  }

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

@media (max-width: 480px) {
  .site-header .container {
    padding: 0.5rem 0.75rem;
  }

  .main-nav ul {
    gap: 0.25rem;
  }

  .main-nav a {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 1rem;
  }
}
