/* ===== YEKMAN TOV — Midnight Cinema Design System ===== */

:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #1a1e28;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(99, 102, 241, 0.45);
  --text: #e8eaef;
  --text-muted: rgba(232, 234, 239, 0.55);
  --text-dim: rgba(232, 234, 239, 0.35);
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.15);
  --rose: #f472b6;
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #f472b6 100%);
  --gradient-text: linear-gradient(120deg, #818cf8 0%, #22d3ee 45%, #f472b6 100%);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --sidebar-w: 260px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* Typography */
h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.font-mono, [class*="mono"] {
  font-family: var(--font-mono);
  font-weight: 400;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

/* Film grain overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Ambient background */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  top: -20%;
  right: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  filter: blur(60px);
}

.ambient-bg::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  bottom: -10%;
  left: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

/* Grid lines decoration */
.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 80%);
}

/* Layout shell */
.app-shell {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
}

.sidebar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s, background 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--text);
  background: rgba(99, 102, 241, 0.1);
}

.sidebar-nav a.active {
  color: var(--indigo-light);
}

.sidebar-nav .nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

.sidebar-nav a.active .nav-dot {
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.sidebar-footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Main content area */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  width: calc(100% - var(--sidebar-w));
}

/* Mobile header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.85rem 1.25rem;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(10, 12, 16, 0.97);
  backdrop-filter: blur(20px);
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer.open { display: flex; }

.mobile-drawer a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-drawer a:hover { color: var(--cyan); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.08);
}

.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.card-accent:hover::before { opacity: 1; }

/* Bento grid */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}

.bento-item {
  padding: 1.75rem;
}

.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }

/* Icon badge */
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--cyan-dim);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.icon-badge.indigo {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  color: var(--indigo-light);
}

.icon-badge.rose {
  background: rgba(244, 114, 182, 0.1);
  border-color: rgba(244, 114, 182, 0.2);
  color: var(--rose);
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.stat-cell {
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.stat-cell .stat-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.stat-cell .stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* Marquee ticker */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0.85rem 0;
}

.ticker-track {
  display: flex;
  gap: 3rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.ticker-item .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--indigo);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Process — horizontal steps */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.process-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo), var(--cyan), transparent);
  opacity: 0.3;
}

.process-step-card {
  position: relative;
  padding: 1.5rem;
  text-align: center;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--indigo-light);
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.process-step-card:hover .process-num {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

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

/* Tag pills */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--indigo-light);
}

.tag.cyan {
  background: var(--cyan-dim);
  border-color: rgba(34, 211, 238, 0.25);
  color: var(--cyan);
}

/* Industry list */
.industry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.industry-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.industry-list li:last-child { border-bottom: none; }

.industry-list li::before {
  content: '▸';
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Contact block */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: border-color 0.2s, background 0.2s;
}

.contact-link:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.06);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer nav a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer nav a:hover { color: var(--cyan); }

.site-footer .copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Hero section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 3rem;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--indigo-light);
  margin-bottom: 1.75rem;
  width: fit-content;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(380px, 35vw);
  display: grid;
  gap: 0.75rem;
}

.hero-visual-card {
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-visual-card:nth-child(2) { animation-delay: 1s; margin-left: 2rem; }
.hero-visual-card:nth-child(3) { animation-delay: 2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Section spacing */
.section-block {
  padding: 5rem 3rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 0.95rem;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin-left: auto;
  margin-right: auto;
}

/* Secondary pages */
.page-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-header a.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.page-main {
  flex: 1;
  padding: 4rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.page-main h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 2rem;
}

.page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.page-content p + p { margin-top: 1rem; }

.page-content a {
  color: var(--cyan);
  text-decoration: none;
}

.page-content a:hover { text-decoration: underline; }

/* Privacy Policy page */
.page-main--privacy {
  text-align: center;
}

.page-main--privacy > h1 {
  text-align: center;
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: var(--text-muted);
  line-height: 1.75;
  text-align: justify;
}

.privacy-card h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
}

.privacy-card p + p,
.privacy-card p + ul,
.privacy-card ul + p {
  margin-top: 1rem;
}

.privacy-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.privacy-card ul li + li {
  margin-top: 0.35rem;
}

.privacy-card a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-card a:hover {
  color: var(--cyan);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .process-track { grid-template-columns: repeat(2, 1fr); }
  .process-track::before { display: none; }
  .bento-span-4, .bento-span-6, .bento-span-8 { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar { display: none; }
  .mobile-header { display: flex; }
  .main-content { margin-left: 0; width: 100%; padding-top: 56px; }

  .hero-section { padding: 3rem 1.5rem 2.5rem; min-height: auto; }
  .section-block { padding: 3.5rem 1.5rem; }
  .site-footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
  .site-footer nav { justify-content: center; }

  .bento-span-4, .bento-span-6, .bento-span-8, .bento-span-12 { grid-column: span 12; }
  .process-track { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .contact-panel { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .hero-visual-card { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .pulse { animation: none; }
}
