/* TentacleID – White Page with Screenshot */

:root {
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --ocean-deep: #020818;
  --cyan: #22d3ee;
  --cyan-glow: rgba(34, 211, 238, 0.6);
  --purple: #a855f7;
  --pink: #ec4899;
  --text-dark: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-white);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link:hover {
  color: var(--text-dark);
}

.cta-btn {
  background: var(--text-dark);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ═══════════════════════════════════════
   HERO CARD (Contained Ocean)
   ═══════════════════════════════════════ */
.hero-card {
  position: relative;
  background: var(--ocean-deep);
  border-radius: 32px;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

/* Ocean Background (Contained) */
.ocean-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 32px;
}

.ocean-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% -20%, #0c2d48 0%, var(--ocean-deep) 60%);
}

.caustics {
  position: absolute;
  inset: 0;
  background: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.02' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: overlay;
  animation: causticShift 20s linear infinite;
}

@keyframes causticShift {
  0% { transform: scale(1.5) translateX(0) translateY(0); }
  50% { transform: scale(1.5) translateX(-30px) translateY(-20px); }
  100% { transform: scale(1.5) translateX(0) translateY(0); }
}

.depth-fog {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(2, 8, 24, 0.6) 100%);
}

.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--cyan-glow);
  opacity: 0;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { opacity: 0; transform: translateY(100%) translateX(0) scale(0.5); }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-100%) translateX(var(--drift)) scale(1); }
}

/* ═══════════════════════════════════════
   SCREENSHOT EXTENSION
   ═══════════════════════════════════════ */
.screenshot-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.screenshot-wrapper {
  position: relative;
  width: 320px;
  border-radius: 20px;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  animation: mockupFloat 6s ease-in-out infinite;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.screenshot-container:hover .screenshot-wrapper {
  transform: rotateY(0) rotateX(0) scale(1.02);
}

.screenshot-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@keyframes mockupFloat {
  0%, 100% { transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-15px); }
}

/* ═══════════════════════════════════════
   HERO CONTENT
   ═══════════════════════════════════════ */
.hero-content {
  position: relative;
  z-index: 10;
  color: white;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: dotPulse 2s infinite;
  box-shadow: 0 0 10px var(--cyan-glow);
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

h1 .line {
  display: block;
}

h1 .accent {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  max-width: 400px;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: white;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
}

.primary-btn .btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, #0ea5e9 100%);
  z-index: 0;
}

.primary-btn .btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn svg {
  width: 18px;
  height: 18px;
}

.primary-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  z-index: 2;
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(34, 211, 238, 0.3);
}

.secondary-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s, gap 0.3s;
  background: none;
  border: none;
  cursor: pointer;
}

.secondary-btn svg {
  width: 18px;
  height: 18px;
}

.secondary-btn:hover {
  color: white;
  gap: 12px;
}

/* ═══════════════════════════════════════
   FEATURES STRIP
   ═══════════════════════════════════════ */
.features {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 60px 0;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 32px;
}

.feature-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   API SECTION
   ═══════════════════════════════════════ */
.api-section {
  padding: 60px 0;
  text-align: center;
}

.api-section h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.api-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.code-block {
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #eab308; }
.code-dot.green { background: #22c55e; }

.code-title {
  margin-left: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.code-block pre {
  padding: 24px;
  overflow-x: auto;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #e2e8f0;
}

.comment { color: #64748b; }
.keyword { color: #c084fc; }
.func { color: #22d3ee; }
.number { color: #fb923c; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   MODAL
   ═══════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: white;
  padding: 32px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #94a3b8;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #0f172a;
}

.modal h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.modal ol {
  margin-left: 20px;
  margin-bottom: 24px;
  color: #475569;
  line-height: 1.8;
}

.modal li {
  margin-bottom: 8px;
}

.modal code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.modal-actions {
  text-align: right;
}

.modal-actions .primary-btn {
  background: #0f172a;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 50px 30px;
    text-align: center;
    gap: 40px;
  }
  
  .screenshot-container {
    order: -1;
  }
  
  .screenshot-wrapper {
    width: 260px;
    transform: rotateY(-5deg) rotateX(2deg);
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .subtitle {
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .features {
    gap: 30px;
  }
}
