/* ==========================================================================
   Relasi Communication - Two-Section Static Landing Page
   Section 1: Visual Hero (acuan/1.jpg)
   Section 2: Landing Content (acuan/2.jpg)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Reset & Variables
   -------------------------------------------------------------------------- */
:root {
  --color-bg: #000000;
  --color-text-white: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --color-text-subtle: rgba(255, 255, 255, 0.4);
  --color-btn-bg: #ffffff;
  --color-btn-text: #000000;
  
  --font-primary: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica", Arial, sans-serif;
  --font-roboto: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--color-bg);
}

/* When animating programmatically, prevent abrupt scroll interruption */
html.is-scrolling {
  scroll-snap-type: none;
}

body {
  width: 100%;
  min-height: 200vh;
  min-height: 200dvh;
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text-white);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: default; /* Native cursor remains visible */
}

/* Interactive elements retain native pointer cursor */
a, button, [role="button"] {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   2. Follow-Cursor Effect (Trailing Ring & Ambient Glow)
   Native cursor stays 100% visible
   -------------------------------------------------------------------------- */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.28s var(--ease-smooth),
              height 0.28s var(--ease-smooth),
              border-color 0.25s var(--ease-smooth),
              background 0.25s var(--ease-smooth),
              box-shadow 0.25s var(--ease-smooth),
              opacity 0.3s ease;
  will-change: transform, width, height;
}

.cursor-follower.cursor-visible {
  opacity: 1;
}

/* Follower state on hovering interactive elements */
.cursor-follower.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 75%, transparent 100%);
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}

/* Follower state on mouse click / press */
.cursor-follower.cursor-active {
  width: 26px;
  height: 26px;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Disable follower on touch-only devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-follower {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   3. Common Section Layout & Scroll-Snap
   -------------------------------------------------------------------------- */
.section {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   4. SECTION 1: Visual Hero (Reference: acuan 1.jpg)
   -------------------------------------------------------------------------- */
.hero-section {
  background-color: #000000;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Subtle scroll cue at bottom of Section 1 */
.scroll-cue {
  position: absolute;
  bottom: clamp(24px, 4.5vh, 40px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-roboto);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s var(--ease-smooth);
  animation: cueBounce 2.4s infinite ease-in-out;
}

.scroll-cue:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateX(-50%) translateY(2px);
}

.scroll-cue-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.scroll-cue-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes cueBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* --------------------------------------------------------------------------
   5. SECTION 2: Landing Content (Reference: acuan 2.jpg)
   -------------------------------------------------------------------------- */
.content-section {
  background-color: #000000;
  justify-content: space-between;
  align-items: center;
}

.main-container {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 24px;
  text-align: center;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-top: clamp(65px, 24vh, 180px);
}

/* Brand Logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: clamp(36px, 9vh, 85px);
}

.brand-logo {
  display: block;
  width: clamp(160px, 13.8vw, 220px);
  height: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.25s var(--ease-smooth);
}

.brand-logo:hover {
  transform: scale(1.02);
}

/* Status Text ("Our site is still in editing…") */
.status-text {
  font-family: var(--font-primary);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: clamp(18px, 3.8vh, 32px);
  user-select: text;
}

/* CTA Button ("Write to us") */
.cta-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-write {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: all 0.25s var(--ease-smooth);
  border: none;
}

.btn-write:hover {
  background-color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.btn-write:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-write:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   6. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  text-align: center;
  margin-top: auto;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.copyright-line {
  font-family: var(--font-roboto);
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
  letter-spacing: 0.015em;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 2px;
}

.copyright-line .bold {
  font-weight: 700;
  color: #ffffff;
}

.copyright-line .regular {
  font-weight: 400;
  color: #ffffff;
}

.copyright-line .divider {
  display: inline-block;
  margin: 0 10px;
  color: var(--color-text-subtle);
  font-weight: 300;
  user-select: none;
}

.email-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
  padding-bottom: 1px;
}

.email-link:hover {
  border-bottom-color: #ffffff;
}

.email-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   7. Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 100;
  background: rgba(30, 30, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-family: var(--font-roboto);
  font-size: 12px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease-smooth);
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   8. Responsive Rules
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .content-wrapper {
    padding-top: clamp(50px, 16vh, 100px);
  }

  .logo-container {
    margin-bottom: 30px;
  }

  .brand-logo {
    width: 160px;
  }

  .status-text {
    font-size: 1.25rem;
    margin-bottom: 22px;
  }

  .btn-write {
    padding: 8px 22px;
    font-size: 12px;
  }

  .copyright-line {
    font-size: 0.72rem;
    flex-direction: column;
    gap: 4px;
  }

  .copyright-line .divider {
    display: none;
  }

  .scroll-cue {
    font-size: 10px;
    padding: 7px 14px;
  }
}
