/* ==========================================================================
   PT. TARTYLA JAYA TEKNIK — ONE-SCREEN COMING SOON DESIGN SYSTEM
   Visual Concept: Modern Industrial Editorial x Subtle Neumorphism x Wabi-Sabi
   ========================================================================== */

:root {
  --bg-color: #F4F4F0;
  --primary-dark: #111719;
  --tech-blue: #1689B5;
  --turquoise: #39B9BA;
  --turquoise-glow: rgba(57, 185, 186, 0.35);
  --neutral-subtle: #D9DDD9;
  --neutral-border: #C8CDC8;
  --text-muted: #6E787A;
  --surface-inset: #ECECE7;
  --white: #FFFFFF;

  --font-editorial: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-color);
  color: var(--primary-dark);
  font-family: var(--font-editorial);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-color);
  background-image: url('../assets/textures/grain.svg');
}

/* Engineering Technical Grid Lines Overlay */
.tech-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(17, 23, 25, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 23, 25, 0.025) 1px, transparent 1px);
}

/* One-Screen Main Shell Layout */
.app-shell {
  position: relative;
  z-index: 2;
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 2.2rem 4rem;
  gap: 1.5rem;
}

/* 01. HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--primary-dark);
}

.brand-logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(2px 2px 6px rgba(17, 23, 25, 0.08));
}

.brand-symbol {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  background: var(--primary-dark);
  color: var(--turquoise);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 4px 4px 10px rgba(17, 23, 25, 0.08), -4px -4px 10px rgba(255, 255, 255, 0.8);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-editorial);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.header-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--primary-dark);
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--turquoise);
}

/* 02. MAIN CONTENT GRID (58% Left / 42% Right) */
.main-viewport {
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  gap: 3.5rem;
  height: 100%;
  min-height: 0; /* Prevents overflow in grid child */
}

/* LEFT / CONTENT COLUMN */
.content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 820px;
}

/* Status Indicator */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: var(--surface-inset);
  box-shadow: inset 2px 2px 5px rgba(17, 23, 25, 0.05), inset -2px -2px 5px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(200, 205, 200, 0.5);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--turquoise);
  box-shadow: 0 0 8px var(--turquoise-glow);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* Main Editorial Headline */
.editorial-headline {
  font-family: var(--font-editorial);
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.93;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 1.4rem;
}

.editorial-headline .line-block {
  display: block;
}

.editorial-headline .highlight-blue {
  color: var(--tech-blue);
}

.editorial-headline .period-dot {
  color: var(--turquoise);
  display: inline-block;
  margin-left: 2px;
}

/* Supporting Copy */
.supporting-copy {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 580px;
  margin-bottom: 1.8rem;
}

/* Company Technical Metadata Row */
.meta-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.meta-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: var(--bg-color);
  box-shadow: 4px 4px 10px rgba(17, 23, 25, 0.05), -4px -4px 10px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 221, 217, 0.7);
  color: var(--primary-dark);
  font-weight: 500;
}

.meta-chip.primary-focus {
  color: var(--tech-blue);
  border-color: rgba(22, 137, 181, 0.3);
}

/* CTA & Micro Contact Container */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 2rem;
  border-radius: 10px;
  background: var(--primary-dark);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 6px 6px 16px rgba(17, 23, 25, 0.18), -3px -3px 12px rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(57, 185, 186, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  background: #192226;
  border-color: var(--turquoise);
  transform: translateY(-2px);
  box-shadow: 8px 8px 22px rgba(17, 23, 25, 0.25), 0 0 15px var(--turquoise-glow);
  color: var(--turquoise);
}

.cta-button .arrow-icon {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

.contact-micro-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.contact-micro-info a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-micro-info a:hover {
  color: var(--tech-blue);
  text-decoration: underline;
}

/* RIGHT / VISUAL COLUMN */
.visual-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Neumorphic Frame & Asymmetric Visual Container */
.visual-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 4.8;
  border-radius: 20px;
  background: var(--bg-color);
  padding: 0.9rem;
  box-shadow: 12px 12px 28px rgba(17, 23, 25, 0.07), -12px -12px 28px rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(217, 221, 217, 0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: contrast(1.05) brightness(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-frame:hover .hero-image {
  transform: scale(1.03);
}

.image-dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 23, 25, 0.75) 0%, transparent 60%);
  pointer-events: none;
}

/* Decorative UI Overlay on Image */
.visual-badge-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  background: rgba(17, 23, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--turquoise);
}

.visual-badge-overlay .spec-tag {
  color: var(--white);
  font-weight: 600;
}

/* Subtle Organic Wabi-Sabi SVG Line Detail */
.wabi-sabi-curve {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 3;
}

.wabi-sabi-curve path {
  stroke: var(--turquoise);
  stroke-width: 1.5;
  stroke-dasharray: 4, 4;
  fill: none;
  opacity: 0.65;
}

/* 03. FOOTER METADATA LINE */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1rem;
  border-t: 1px solid rgba(17, 23, 25, 0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.footer-left {
  color: var(--primary-dark);
  font-weight: 500;
}

/* Entrance Animations (Pure CSS) */
.animate-fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .status-dot {
    animation: none;
  }
  .cta-button, .visual-frame, .hero-image {
    transition: none !important;
  }
}

/* RESPONSIVE DESIGN FOR TABLET & MOBILE */
@media (max-width: 1024px) {
  body {
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .app-shell {
    height: auto;
    max-height: none;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
  }

  .main-viewport {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .content-col {
    max-width: 100%;
  }

  .visual-col {
    order: -1; /* Recompose visual above content on tablet/mobile if needed, or keep order */
    order: initial;
  }

  .visual-frame {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 1.5rem 1.25rem;
    gap: 1.8rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .header-meta {
    font-size: 0.65rem;
  }

  .editorial-headline {
    font-size: clamp(36px, 11vw, 56px);
    margin-bottom: 1rem;
  }

  .supporting-copy {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

  .cta-button {
    justify-content: center;
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
