:root {
  --black: #000000;
  --white: #ffffff;
  --gray-900: #0a0a0a;
  --gray-800: #171717;
  --gray-700: #262626;
  --gray-400: #a3a3a3;
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --border: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Luxury Grid Background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.glow-overlay {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-link:hover { color: var(--white); }

/* Hero */
.hero {
  padding: 10rem 2rem 6rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom, #fff 50%, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.125rem;
  color: var(--gray-400);
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

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

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

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

.btn-secondary:hover {
  background: var(--gray-800);
  border-color: var(--gray-400);
}

/* Bento Grid */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
}

.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; letter-spacing: -0.03em; margin-bottom: 1rem; }
.section-header p { color: var(--gray-400); font-size: 1.1rem; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1.5rem;
}

.bento-item {
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.bento-item:hover {
  border-color: rgba(255,255,255,0.3);
}

.bento-large { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

.bento-item h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.bento-item p { color: var(--gray-400); font-size: 0.9rem; }

/* Product Cards (Elite Style) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: linear-gradient(180deg, var(--gray-900) 0%, var(--black) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s var(--ease);
}

.product-card:hover {
  border-color: var(--primary);
  background: linear-gradient(180deg, #111 0%, var(--black) 100%);
}

.prod-emoji {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: var(--gray-800);
  border-radius: 12px;
}

.prod-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.prod-desc { color: var(--gray-400); font-size: 0.9375rem; margin-bottom: 2rem; min-height: 3rem; }

/* Checker Wrapper */
.checker-wrap {
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 3rem auto 0;
}

.input-main {
  flex: 1;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.input-main:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
footer {
  padding: 8rem 2rem 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 3rem 0;
}

.copyright { color: var(--gray-400); font-size: 0.875rem; }

/* AI Chat Widget (Linear Style) */
.chat-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--white);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.chat-window {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 360px;
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.chat-header { padding: 1.25rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-messages { height: 350px; padding: 1.25rem; overflow-y: auto; }
.chat-input-area { padding: 1.25rem; border-top: 1px solid var(--border); background: var(--black); }

.hidden { display: none !important; }

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-large { grid-column: span 1; }
  .input-group { flex-direction: column; }
}

/* Bento Enhancements */
.bento-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Security Section UI */
.security-layout {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.security-info { flex: 1; }
.security-visual { flex: 1; display: flex; justify-content: center; }

.security-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sec-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sec-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sec-item h4 { margin-bottom: 0.25rem; }
.sec-item p { color: var(--gray-400); font-size: 0.9rem; }

/* Tech Card (Code Visual) */
.tech-card {
  width: 100%;
  max-width: 450px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  font-family: var(--font-mono);
}

.tc-header {
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.tc-dot { width: 10px; height: 10px; border-radius: 50%; }
.tc-dot.red { background: #ff5f56; }
.tc-dot.amber { background: #ffbd2e; }
.tc-dot.green { background: #27c93f; }
.tc-title { color: var(--gray-400); font-size: 0.75rem; margin-left: 8px; }

.tc-body { padding: 1.5rem; font-size: 0.85rem; line-height: 1.8; }
.c-dim { color: var(--gray-700); }
.c-green { color: #27c93f; }
.c-blue { color: #6366f1; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Tiers Grid */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tier-card {
  background: var(--gray-900);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  transition: all 0.3s var(--ease);
}

.tier-card:hover { border-color: var(--gray-400); transform: translateY(-5px); }

.tier-card.featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, var(--gray-900) 100%);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

.tier-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
}

.tier-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 2rem; }

.tier-card ul { list-style: none; margin-bottom: 2.5rem; }
.tier-card li { margin-bottom: 1rem; color: var(--gray-400); font-size: 0.9rem; }

@media (max-width: 968px) {
  .security-layout { flex-direction: column; gap: 3rem; }
  .security-visual { width: 100%; }
}

/* Smooth Transitions for 3D */
.product-card, .tier-card, .tech-card {
  transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* Ensure Chat Window is Scrollable */
.chat-messages {
  display: flex;
  flex-direction: column;
}

/* 3D Hero Core */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  max-width: 1200px;
  gap: 4rem;
}

.hero-content { flex: 1.2; text-align: left; }
.hero-content p { margin-left: 0; }
.hero div[style*="justify-content: center"] { justify-content: flex-start !important; }

.hero-visual {
  flex: 0.8;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.core-outer {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: float-3d 6s ease-in-out infinite;
}

.core-inner {
  position: absolute;
  inset: 0;
  background: var(--gray-900);
  border: 2px solid var(--primary);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  box-shadow: 0 0 50px var(--primary-glow);
  transform: translateZ(50px);
}

.core-ring {
  position: absolute;
  inset: -20px;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: rotate-ring 10s linear infinite;
}

@keyframes float-3d {
  0%, 100% { transform: rotateY(0deg) translateY(0px); }
  50% { transform: rotateY(20deg) translateY(-20px); }
}

@keyframes rotate-ring {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

@media (max-width: 968px) {
  .hero { flex-direction: column; text-align: center; padding-top: 6rem; }
  .hero-content { text-align: center; }
  .hero div[style*="justify-content: flex-start"] { justify-content: center !important; }
  .hero-visual { order: -1; margin-bottom: 2rem; }
}
