/* 
   Clipbeam Premium Design System 
   Theme: True Void & Spotlight
   Inspiration: Ultra-premium SaaS (Mirai/Hyperlink style)
*/

:root {
  /* Colors - True Black Palette */
  --bg-page: #000000;
  --bg-card: #0a0a0a;
  --bg-card-hover: #111111;

  --text-primary: #ededed;
  --text-secondary: #888888;
  --text-tertiary: #555555;

  /* Accents - "Electric Beam" refined */
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --accent-glow: rgba(59, 130, 246, 0.4);

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  --shadow-card: 0 0 0 1px var(--border-subtle), 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 0 0 1px var(--border-highlight),
    0 20px 40px -10px rgba(0, 0, 0, 0.8);

  /* Layout */
  --container-width: 1100px;
  --header-height: 80px;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;
}

/* 1. Base Reset & Sophisticated Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
a {
  color: #ededed;
}

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

/* Fix anchor scrolling with fixed header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

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

/* Type Scale - Tight & Engineered */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(to right, #fff 20%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  color: var(--text-primary);
  font-weight: 500;
}

/* 2. Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.btn {
  height: 48px;
  padding: 0 1.5rem;
  border-radius: 99px;
  /* Pill shape */
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: white;
  color: black;
  border: 1px solid white;
}

.btn-primary:hover {
  background: #ddd;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 3. Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background 0.3s;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1.5rem;
  border-radius: 99px;
  border: 1px solid var(--border-subtle);
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: white;
}

/* 4. Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#features {
  padding-top: 0;
}

/* Spotlight Effect */
.spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15),
    transparent 70%
  );
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

.hero p.lead {
  max-width: 600px;
  margin: 0 auto 0;
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
  /* Removed border/background/radius/shadow to let clear image shine */
  padding: 0;
  animation: floatUp 1s ease-out forwards;
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5. Bento Grid Layout (Features) */
.section-bento {
  padding: 2.5rem 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns by default */
  grid-template-rows: auto auto;
  /* 2 rows */
  gap: 1.5rem;
}

/* Bento Cells */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Spotlight hover logic handled via pseudo-elements is complex in CSS-only, 
     sticking to simpler elegant hover for now */
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.bento-card:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
}

.bento-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

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

.bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1.5rem;
}

/* Spans for Bento */
.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

/* 6. Content Blocks (Alternating) */
.section-content {
  padding: 2.5rem 0;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.block-text h2 {
  margin-bottom: 1.5rem;
}

.block-text ul {
  list-style: none;
  margin-top: 2rem;
}

.block-text li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.block-text li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 10px;
}

/* 7. Video Section */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: black;
  box-shadow: var(--shadow-elevated);
  margin-top: 2rem;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 8. FAQ Styles */
.faq-list {
  max-width: 800px;
  margin: 4rem auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 1rem;
}

.faq-answer code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #fff;
}

/* 9. Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  font-size: 0.9rem;
  text-align: center;
}

.footer-links a {
  margin: 0 1rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

/* Mobile / Responsive */
.mobile-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-3 {
    grid-column: span 1;
  }

  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    /* Reset */
    gap: 3rem;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-visual {
    margin-top: 3rem;
  }

  .desktop-only {
    display: none !important;
  }
}
