/* Nothing OS & Teenage Engineering Aesthetic for Dock (1) Landing */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --nothing-red: #ea3829;
  --nothing-bg: #090a0c;
  --nothing-card: #0f1013;
  --nothing-subcard: #15161a;
  --nothing-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--nothing-bg);
  color: #f4f4f5;
}

body {
  overflow-x: hidden;
  background-color: #08090b;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.bg-dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Tactile micro-interactions (Emil Kowalski guidelines) */
button, .btn-primary, a {
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

button:active, .btn-primary:active, a:active {
  transform: scale(0.97);
}

/* Utility classes used in landing page */
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-20 { padding-top: 5rem; }
.pb-28 { padding-bottom: 7rem; }
.pb-6 { padding-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-3 { padding: 0.75rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

.border-zinc-800 { border-color: #27272a; }
.border-zinc-900 { border-color: #18181b; }

.bg-black { background-color: #000; }
.bg-zinc-900 { background-color: #18181b; }
.bg-zinc-950 { background-color: #0c0d0f; }
.bg-white { background-color: #fff; }

.text-white { color: #fff; }
.text-zinc-100 { color: #f4f4f5; }
.text-zinc-200 { color: #e4e4e7; }
.text-zinc-300 { color: #d4d4d8; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-600 { color: #52525b; }
.text-zinc-950 { color: #09090b; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.w-full { width: 100%; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }

.sticky { position: sticky; }
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }

.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.overflow-hidden { overflow: hidden; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.shadow-xs { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

/* Grid columns responsive */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
  .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Rich Modern Nothing OS Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}
.animate-float-slow {
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes diodeGlow {
  0%, 100% { box-shadow: 0 0 8px #ea3829, 0 0 20px rgba(234, 56, 41, 0.4); opacity: 1; }
  50% { box-shadow: 0 0 3px #ea3829, 0 0 8px rgba(234, 56, 41, 0.2); opacity: 0.7; }
}
.animate-diode {
  animation: diodeGlow 2.5s ease-in-out infinite;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}
.scanline-sweep {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(234, 56, 41, 0.6), transparent);
  animation: scanline 8s linear infinite;
  pointer-events: none;
}

/* Card hover glow & 3D tactile lift */
.feature-card, .download-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover, .download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 56, 41, 0.4) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 25px rgba(234, 56, 41, 0.1);
}

/* Scroll reveal trigger classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Dot matrix marquee banner */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* Red accents */
.text-nothing-red { color: var(--nothing-red); }
.bg-nothing-red { background-color: var(--nothing-red); }

/* Markdown Content Styling for Changelog & Release Notes */
.changelog-markdown {
  color: #d4d4d8;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.changelog-markdown h1,
.changelog-markdown h2,
.changelog-markdown h3,
.changelog-markdown h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.changelog-markdown h1:first-child,
.changelog-markdown h2:first-child,
.changelog-markdown h3:first-child,
.changelog-markdown h4:first-child {
  margin-top: 0;
}

.changelog-markdown h1 {
  font-size: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

.changelog-markdown h2 {
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
}

.changelog-markdown h3 {
  font-size: 0.95rem;
  color: #ea3829;
}

.changelog-markdown h4 {
  font-size: 0.85rem;
  color: #a1a1aa;
}

.changelog-markdown p {
  margin-bottom: 0.75rem;
  color: #a1a1aa;
}

.changelog-markdown strong {
  color: #ffffff;
  font-weight: 600;
}

.changelog-markdown em {
  color: #e4e4e7;
  font-style: italic;
}

.changelog-markdown ul,
.changelog-markdown ol {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.changelog-markdown ul li {
  position: relative;
  padding-left: 1.25rem;
  color: #d4d4d8;
}

.changelog-markdown ul li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0;
  color: #ea3829;
  font-size: 0.65rem;
  line-height: 1.65;
}

.changelog-markdown ol {
  counter-reset: item;
}

.changelog-markdown ol li {
  position: relative;
  padding-left: 1.5rem;
  counter-increment: item;
  color: #d4d4d8;
}

.changelog-markdown ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #ea3829;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.changelog-markdown code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  background-color: #15161a;
  color: #fca5a5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 0.375rem;
}

.changelog-markdown pre {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  background-color: #090a0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.changelog-markdown pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #f4f4f5;
  font-size: 0.75rem;
}

.changelog-markdown blockquote {
  border-left: 2px solid #ea3829;
  padding-left: 0.85rem;
  margin: 0.75rem 0;
  color: #a1a1aa;
  font-style: italic;
}

.changelog-markdown a {
  color: #ea3829;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.changelog-markdown a:hover {
  color: #ffffff;
}

.changelog-markdown hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 1.25rem 0;
}
