/* ============================================
   GRUKI — Landing Page Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-dark: #0f1115;
  --teal: #7ce2d3;
  --lime: #d4ff00;
  --white: #ffffff;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--zinc-400);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(124, 226, 211, 0.3);
  color: var(--teal);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* --- Navigation --- */
#navbar {
  position: fixed;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
  padding: 1.5rem 0;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2.5rem;
  }
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

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

.nav-link {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--zinc-500);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--zinc-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  opacity: 0;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 0.5;
}

.nav-link.active {
  color: var(--teal);
}

.nav-link.active::after {
  background: var(--lime);
  transform: scaleX(1);
  opacity: 1;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: block;
  }
}

/* Buttons */
.btn-primary {
  background: var(--teal);
  color: #000;
  padding: 0.625rem 1.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: background 0.3s ease;
  border: none;
}

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

.btn-secondary {
  background: var(--bg-card);
  color: var(--white);
  padding: 0.625rem 1.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid var(--zinc-800);
  transition: background 0.3s ease;
}

.btn-secondary:hover {
  background: var(--zinc-800);
}

.btn-lg {
  padding: 1rem 2rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: block;
  background: transparent;
  color: var(--white);
  padding: 0;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  padding: 6rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-link {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  border-bottom: 1px solid var(--zinc-800);
  padding-bottom: 1rem;
  transition: color 0.3s ease;
}

.mobile-link.active {
  color: var(--teal);
}

.mobile-cta {
  margin-top: 1rem;
  padding: 1rem;
  font-size: 0.875rem;
  width: 100%;
  text-align: center;
}

/* --- Hero --- */
.hero {
  padding: 10rem 1.5rem 5rem;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 80vh;
  justify-content: center;
  scroll-margin-top: 6rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 10rem 2.5rem 5rem;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--zinc-800);
  background: var(--bg-card);
  margin-bottom: 2.5rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.badge-text {
  color: var(--lime);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-gradient {
  background: linear-gradient(to bottom, var(--white), var(--zinc-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--zinc-400);
  max-width: 42rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    width: auto;
    justify-content: center;
  }
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

/* --- Sections --- */
.section {
  padding: 6rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  scroll-margin-top: 6rem;
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 2.5rem;
  }
}

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

.section-label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.label-yellow {
  color: var(--lime);
}

.label-teal {
  color: var(--teal);
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(39, 39, 42, 0.5);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .card {
    padding: 2.5rem;
  }
}

.card-icon-bg {
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  color: rgba(39, 39, 42, 0.2);
  transition: color 0.3s ease;
}

.card:hover .card-icon-bg {
  color: rgba(39, 39, 42, 0.4);
}

.icon-bg-msg {
  right: -1rem;
  top: auto;
  bottom: -1rem;
  color: rgba(39, 39, 42, 0.3);
}

.card:hover .icon-bg-msg {
  color: rgba(39, 39, 42, 0.5);
}

.card-accent-icon {
  position: absolute;
}

.accent-bottom-right {
  right: 2rem;
  bottom: 2rem;
}

.accent-bottom-left {
  left: 2rem;
  bottom: 2rem;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-tag {
  display: inline-block;
  background: #1a1a1a;
  border: 1px solid var(--zinc-800);
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.tag-teal {
  color: var(--teal);
}

.tag-yellow {
  color: var(--lime);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.875rem;
  color: var(--zinc-400);
  line-height: 1.6;
  max-width: 24rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.tech-tag {
  background: #000;
  border: 1px solid var(--zinc-800);
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--zinc-300);
  text-transform: uppercase;
}

/* --- Philosophy --- */
.philosophy {
  border-top: 1px solid var(--zinc-900);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blueprint {
  background: var(--bg-dark);
  border: 1px solid rgba(39, 39, 42, 0.8);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.blueprint-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 30px 30px;
}

.bp-circle {
  position: absolute;
  border-radius: 50%;
}

.bp-circle-lg {
  width: 80%;
  height: 80%;
  border: 1px solid rgba(63, 63, 70, 0.3);
}

.bp-circle-md {
  width: 60%;
  height: 60%;
  border: 1px solid rgba(63, 63, 70, 0.5);
}

.bp-circle-sm {
  width: 40%;
  height: 40%;
  border: 1px dashed rgba(82, 82, 91, 0.5);
}

.bp-axis-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(63, 63, 70, 0.3);
}

.bp-axis-v {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(63, 63, 70, 0.3);
}

.bp-crosshair {
  position: relative;
  z-index: 1;
  color: var(--zinc-500);
}

.bp-coords {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  font-size: 0.625rem;
  color: var(--zinc-600);
  font-family: 'Courier New', monospace;
  line-height: 1.4;
}

.philosophy-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step-number {
  border: 1px solid rgba(212, 255, 0, 0.5);
  color: var(--lime);
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  height: fit-content;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--zinc-400);
  line-height: 1.6;
}

/* --- Portfolio --- */
.portfolio {
  border-top: 1px solid var(--zinc-900);
  overflow: hidden;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.slider-controls {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .slider-controls {
    display: flex;
  }
}

.slider-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--zinc-800);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.slider-btn:hover {
  background: var(--bg-card);
}

.slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 85vw;
  scroll-snap-align: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .slide {
    min-width: 45vw;
  }
}

.project-preview {
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.dark-preview {
  background: var(--bg-card);
  border: 1px solid var(--zinc-800);
}

.light-preview {
  background: var(--white);
}

.compass-preview {
  background: var(--bg-dark);
  border: 1px solid var(--zinc-800);
}

.preview-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.preview-radial-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 10px 10px;
}

.project-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.project-preview-img:hover,
.project-preview-img.is-visible {
  filter: grayscale(0%);
}

/* Mock Window Dark */
.mock-window {
  width: 80%;
  height: 70%;
  background: var(--bg);
  border: 1px solid var(--zinc-800);
  border-radius: 0.375rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.slide:hover .mock-window,
.slide:hover .mock-window-light,
.slide:hover .compass-mock {
  transform: scale(1.02);
}

.mock-titlebar {
  height: 1.5rem;
  border-bottom: 1px solid var(--zinc-800);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.375rem;
}

.mock-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--zinc-700);
}

.mock-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  gap: 1rem;
}

.mock-sidebar {
  width: 33%;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--zinc-800);
  border-radius: 0.25rem;
}

.mock-content {
  width: 67%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mock-line {
  border-radius: 0.25rem;
}

.mock-line-lg {
  width: 100%;
  height: 2rem;
  background: rgba(39, 39, 42, 0.5);
}

.mock-line-md {
  width: 75%;
  height: 1rem;
  background: rgba(39, 39, 42, 0.3);
}

.mock-line-sm {
  width: 50%;
  height: 1rem;
  background: rgba(39, 39, 42, 0.3);
}

/* Mock Window Light */
.mock-window-light {
  width: 85%;
  height: 75%;
  background: #fafafa;
  border: 1px solid #e4e4e7;
  border-radius: 0.375rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.mock-titlebar-light {
  height: 2rem;
  border-bottom: 1px solid #e4e4e7;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.mock-line-light {
  width: 50%;
  height: 0.5rem;
  background: #e4e4e7;
  border-radius: 9999px;
}

.mock-body-light {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mock-row-light {
  width: 100%;
  height: 2.5rem;
  background: var(--white);
  border: 1px solid #e4e4e7;
  border-radius: 0.25rem;
}

/* Compass Mock */
.compass-mock {
  width: 85%;
  height: 75%;
  background: #1a1a1a;
  border: 1px solid rgba(63, 63, 70, 0.5);
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  position: relative;
  z-index: 1;
}

.compass-icon {
  color: var(--zinc-600);
  transition: color 0.3s ease;
}

.slide:hover .compass-icon {
  color: var(--lime);
}

/* Slide Meta */
.slide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-label {
  font-size: 0.75rem;
  color: var(--zinc-400);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slide-dots {
  display: flex;
  gap: 0.25rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zinc-700);
}

.dot-active {
  background: var(--teal);
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 1.5rem;
  border-top: 1px solid var(--zinc-900);
  background: var(--bg);
}

.cta-container {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.cta-text {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--zinc-400);
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.cta-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 5rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--zinc-600);
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--zinc-900);
  padding: 4rem 0;
}

.footer-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .footer-container {
    padding: 0 2.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: 0.75rem;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--zinc-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(39, 39, 42, 0.5);
  padding-top: 2rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 0.625rem;
  color: var(--zinc-600);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.footer-version {
  border: 1px solid rgba(212, 255, 0, 0.3);
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.footer-creator {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--zinc-600);
  letter-spacing: 0.1em;
}

.footer-creator a {
  color: var(--teal);
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-creator a:hover {
  color: var(--white);
}
