/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --text: #191919;
  --text-2: #666660;
  --text-3: #A5A49E;
  --accent: #D94F3B;
  --accent-hover: #C4412F;
  --border: #E4E2DB;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

body.no-scroll {
  overflow: hidden;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.splash-label {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 20px;
}

.splash-computer {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.splash-computer-img {
  width: clamp(260px, 50vw, 400px);
  height: auto;
  display: block;
}

.splash-screen-text {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: screenFlicker 2s ease-in-out infinite;
}

.splash-small {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.45rem, 1.2vw, 0.65rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.splash-big {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--accent);
  text-transform: uppercase;
  line-height: 1.3;
}

@keyframes screenFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
  52% { opacity: 1; }
  54% { opacity: 0.7; }
  56% { opacity: 1; }
}

.splash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.splash-btn:hover {
  background: #333;
  transform: translateY(-1px);
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 48px; }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.heading-xl {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.heading-md {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.25;
}

.body-text {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.7;
}

.label {
  font-size: 0.8rem;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.accent-text {
  color: var(--accent);
  font-style: italic;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: var(--text-3);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(246, 245, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.5rem;
  color: var(--text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta .btn {
  padding: 8px 20px;
  color: #FFFFFF !important;
}

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav-burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 2.4rem;
  display: block;
  margin-bottom: 16px;
  color: var(--text);
}

.mobile-menu a.btn-primary {
  margin-top: 24px;
  align-self: flex-start;
  background: var(--text);
  color: #FFFFFF;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 48px;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 140px 48px 64px;
  }
}

.hero-label {
  margin-bottom: 20px;
}

.hero-heading {
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================================
   PHONE CAROUSEL
   ============================================ */
.carousel-section {
  padding: 0 0 80px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .carousel-section { padding: 0 0 120px; }
}

.carousel-fade-left,
.carousel-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.carousel-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.carousel-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

@media (min-width: 768px) {
  .carousel-fade-left,
  .carousel-fade-right { width: 160px; }
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 45s linear infinite;
  animation-play-state: paused;
}

.carousel-track.running {
  animation-play-state: running;
}

.carousel-track {
  pointer-events: none;
}

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

/* Phone mockup */
.phone {
  flex-shrink: 0;
  width: 180px;
  position: relative;
}

@media (min-width: 768px) {
  .phone { width: 210px; }
  .carousel-track { gap: 36px; }
}

.phone-frame {
  border-radius: 28px;
  overflow: hidden;
  background: #1a1a1a;
  padding: 3px;
  box-shadow: 0 12px 48px -12px rgba(0, 0, 0, 0.12);
}

.phone-screen {
  border-radius: 25px;
  overflow: hidden;
  background: #000;
  position: relative;
  aspect-ratio: 9 / 19.5;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 20px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.phone-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.phone-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.phone video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone video.loaded {
  opacity: 1;
}

/* ============================================
   SECTION SHARED
   ============================================ */
.section {
  padding: 100px 0;
}

@media (min-width: 768px) {
  .section { padding: 140px 0; }
}

.section-surface {
  background: var(--surface);
}

.section-header {
  margin-bottom: 56px;
}

@media (min-width: 768px) {
  .section-header { margin-bottom: 72px; }
}

.section-header .label {
  margin-bottom: 12px;
}

/* ============================================
   WORK / PORTFOLIO
   ============================================ */
.work-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .work-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
  }
}

.filter-group {
  display: flex;
  gap: 6px;
}

.filter-btn {
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: all 0.2s ease;
}

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

.filter-btn.active {
  background: var(--text);
  color: var(--surface);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  aspect-ratio: 9 / 14;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.work-card:hover {
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.work-card-bg {
  position: absolute;
  inset: 0;
}

.work-card-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.work-card:hover .work-card-play {
  opacity: 1;
}

.work-card-play svg {
  width: 48px;
  height: 48px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.work-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 40%, transparent);
}

.work-card-category {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
}

.work-card-title {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.work-card-views {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============================================
   VIDEO LIGHTBOX
   ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-content {
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  aspect-ratio: 9 / 16;
}

.lightbox-video {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  background: #000;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .pricing-categories {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.pricing-category-title {
  margin-bottom: 4px;
}

.pricing-category-desc {
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 400px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.pricing-card {
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--text-3);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.pricing-card-featured {
  border-color: var(--accent);
  border-width: 2px;
}

.pricing-card-featured:hover {
  border-color: var(--accent-hover);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pricing-card-name {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.1rem;
  margin-bottom: 4px;
  margin-top: 8px;
}

.pricing-card-detail {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-bottom: 16px;
}

.pricing-card-price {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}

.pricing-card-price .price-symbol {
  font-size: 1.2rem;
  vertical-align: super;
  margin-right: 2px;
  font-weight: 500;
}

.pricing-card-per {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 20px;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-revisions {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}

.pricing-revisions-text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.pricing-revisions-text strong {
  color: var(--text);
}

.pricing-slots-text {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: 10px;
}

/* ============================================
   SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.service-card {
  display: flex;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-color: var(--text-3);
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.section-surface .service-icon {
  background: var(--bg);
}

.service-card:hover .service-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.service-card:hover .service-icon svg {
  stroke: #fff;
}

.service-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.25s ease;
}

.service-title {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================
   ABOUT
   ============================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    align-items: start;
  }
}

.about-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.about-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.about-text p {
  font-size: 0.975rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-tools {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.about-tools .label {
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  color: var(--text-3);
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  font-size: 0.8rem;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* ============================================
   CONTACT / CTA
   ============================================ */
.contact-inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .label {
  margin-bottom: 12px;
}

.contact-inner .heading-lg {
  margin-bottom: 16px;
}

.contact-inner .body-text {
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.footer-logo {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.15rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-3);
  transition: color 0.2s;
}

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

/* ============================================
   ANIMATIONS (on-scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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