:root {
  color-scheme: light;
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --surface: #f4f4f3;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text: #1a1a1a;
  --text-secondary: #525252;
  --text-muted: #8a8a8a;

  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-glow: rgba(79, 70, 229, 0.15);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);

  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture */
.page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1000;
}

.page {
  position: relative;
  min-height: 100vh;
}

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

.container {
  width: min(1140px, 88vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.7;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-accent {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 6px;
}

.nav a {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

/* Hero */
.hero {
  padding: 100px 0 120px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  margin-bottom: 28px;
}

.gradient-text {
  color: var(--accent);
}

.lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn.primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
}

.btn.primary svg {
  transition: transform 0.25s var(--ease-out);
}

.btn.primary:hover svg {
  transform: translateX(3px);
}

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

.btn.ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(0, 0, 0, 0.02);
}

/* Hero Panel */
.hero-panel {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.panel-glow {
  display: none;
}

.panel-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

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

.panel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 -16px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.panel-item:hover {
  background: var(--surface);
}

.panel-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: contain;
}

.panel-content {
  flex: 1;
}

.panel-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.panel-desc {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
}

.panel-arrow {
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s ease;
}

.panel-item:hover .panel-arrow {
  opacity: 1;
  transform: translateX(0);
}

.panel-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Products Section */
.products {
  padding: 110px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  color: var(--text-secondary);
  font-weight: 400;
}

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

.product-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px;
}

.product-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}

.product-tag {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

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

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
}

.product-link svg {
  transition: transform 0.2s ease;
}

.product-card:hover .product-link {
  color: var(--accent);
}

.product-card:hover .product-link svg {
  transform: translate(2px, -2px);
}

/* About Section */
.about {
  padding: 110px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-intro h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 24px;
}

.about-intro p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.principles {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.principles li {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.principles li:hover {
  border-color: var(--border-hover);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--bg);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.6;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

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

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

  .products,
  .about {
    padding: 80px 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
}

/* Simple fade in */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-panel {
    animation: fade-in 0.6s ease backwards;
  }
  .hero-panel { animation-delay: 0.1s; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
