/* ==========================================================================
   GenDecoded — Coming Soon Page
   Aesthetic: Warm, light, minimal editorial
   Palette: Ivory (#F5F3EE), Forest-Charcoal (#30382E), Sage (#D9DDD0)
   Typography: Manrope (Headings/Brand) + Inter (Body/Details)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens
   ----------------------------------------------------------------------- */
:root {
  --color-bg: #F5F3EE;
  --color-text-primary: #30382E;
  --color-text-secondary: #4D5749;
  --color-text-muted: #5B6657;
  --color-sage: #D9DDD0;
  --color-sage-border: #CED3C4;
  --color-sage-subtle: rgba(217, 221, 208, 0.4);
  --color-sage-line: #D5DACB;
  
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s var(--ease-editorial);
}

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

html {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  overflow-x: hidden;
  selection-background-color: var(--color-sage);
}

::selection {
  background-color: var(--color-sage);
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Layout Structure (Single Viewport Centered)
   ----------------------------------------------------------------------- */
.page-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2.75rem 2rem 2.25rem;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

/* --------------------------------------------------------------------------
   Header / Brand Wordmark
   ----------------------------------------------------------------------- */
.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: revealElement 0.45s var(--ease-editorial) 0.00s both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  user-select: none;
}

.brand-glyph {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Main Content / Hero
   ----------------------------------------------------------------------- */
.main-content {
  width: 100%;
  max-width: 760px;
  margin: auto 0;
  padding: 3rem 1rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Geometric Decorative Graphic */
.geometric-graphic {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: revealElement 0.45s var(--ease-editorial) 0.07s both;
}

.geometric-graphic svg {
  display: block;
}

/* Central Symbol Component Animations */
.symbol-inner-ring {
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  transform-origin: 34px 34px;
  transform: rotate(-90deg);
  animation: drawInnerOutline 0.6s var(--ease-editorial) 0.10s forwards;
}

.symbol-mask-circle {
  stroke-dasharray: 202;
  stroke-dashoffset: 202;
  transform-origin: 34px 34px;
  transform: rotate(-90deg);
  animation: drawDottedRing 0.6s var(--ease-editorial) 0.10s forwards;
}

.symbol-crosshair {
  transform-origin: 34px 34px;
  animation: rotateCrosshairSubtle 0.65s var(--ease-editorial) 0.10s both;
}

.symbol-center-dot {
  opacity: 0;
  animation: fadeInFocalDot 0.3s var(--ease-editorial) 0.42s forwards;
}

.symbol-dot {
  opacity: 0;
  animation: fadeInFocalDot 0.3s var(--ease-editorial) 0.46s forwards;
}

/* Understated Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--color-sage-subtle);
  border: 1px solid var(--color-sage-border);
  border-radius: 9999px;
  margin-bottom: 1.75rem;
  animation: revealElement 0.45s var(--ease-editorial) 0.14s both;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-text-primary);
  display: inline-block;
  opacity: 0.85;
}

.badge-text {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-text-primary);
  text-transform: uppercase;
}

/* Headline */
.headline {
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  max-width: 680px;
  margin-bottom: 1.25rem;
  text-wrap: balance;
  animation: revealElement 0.45s var(--ease-editorial) 0.21s both;
}

/* Description */
.description {
  font-family: var(--font-body);
  font-size: clamp(1.025rem, 1.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  max-width: 520px;
  text-wrap: pretty;
  animation: revealElement 0.45s var(--ease-editorial) 0.28s both;
}

/* Contact Button / Call to Action */
.cta-container {
  margin-top: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: revealElement 0.45s var(--ease-editorial) 0.35s both;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--color-text-primary);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  padding: 0.7rem 1.35rem;
  border-radius: 9999px;
  text-decoration: none;
  border: 1px solid var(--color-text-primary);
  box-shadow: 0 1px 2px rgba(48, 56, 46, 0.06);
  transition: background-color 0.25s var(--ease-editorial), border-color 0.25s var(--ease-editorial), box-shadow 0.25s var(--ease-editorial);
}

.contact-btn:hover {
  background-color: #424D3E;
  border-color: #424D3E;
  box-shadow: 0 2px 8px rgba(48, 56, 46, 0.08);
}

.contact-btn:active {
  box-shadow: 0 1px 2px rgba(48, 56, 46, 0.06);
}

.contact-btn .btn-arrow {
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-editorial);
}

.contact-btn:hover .btn-arrow {
  transform: translateX(3.5px);
}

.contact-btn:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 4px;
}

/* Copy Feedback Message */
.copy-feedback {
  margin-top: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-editorial), transform 0.25s var(--ease-editorial);
  min-height: 18px;
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feedback-check {
  display: block;
  flex-shrink: 0;
}

/* Subtle Divider Rule */
.subtle-rule {
  width: 36px;
  height: 1px;
  background-color: var(--color-sage-line);
  margin-top: 1.5rem;
  transform-origin: center;
  animation: expandDivider 0.45s var(--ease-editorial) 0.42s both;
}

/* --------------------------------------------------------------------------
   Footer / Domain
   ----------------------------------------------------------------------- */
.site-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: revealElement 0.45s var(--ease-editorial) 0.49s both;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-domain {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0.5rem;
  transition: color var(--transition-smooth);
}

.footer-domain::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.5rem;
  right: 0.5rem;
  height: 1px;
  background-color: var(--color-sage);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

.footer-domain:hover {
  color: var(--color-text-primary);
}

.footer-domain:hover::after {
  transform: scaleX(1);
  background-color: var(--color-text-primary);
}

.footer-domain:focus-visible {
  outline: 2px solid var(--color-text-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   ----------------------------------------------------------------------- */
@keyframes revealElement {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandDivider {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes drawInnerOutline {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawDottedRing {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes rotateCrosshairSubtle {
  from {
    transform: rotate(-22deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes fadeInFocalDot {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Accessibility
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-header,
  .geometric-graphic,
  .status-badge,
  .headline,
  .description,
  .cta-container,
  .site-footer {
    opacity: 1 !important;
    transform: none !important;
  }

  .subtle-rule {
    opacity: 1 !important;
    transform: scaleX(1) !important;
  }

  .symbol-inner-ring,
  .symbol-mask-circle {
    stroke-dashoffset: 0 !important;
    transform: none !important;
  }

  .symbol-outer-ring {
    mask: none !important;
  }

  .symbol-crosshair {
    transform: none !important;
  }

  .symbol-center-dot,
  .symbol-dot {
    opacity: 1 !important;
  }

  .contact-btn:hover .btn-arrow {
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Mobile & Responsive Refinements
   ----------------------------------------------------------------------- */
@media (max-width: 640px) {
  .page-container {
    padding: 2rem 1.25rem 1.75rem;
  }

  .main-content {
    padding: 2rem 0.5rem;
  }

  .geometric-graphic {
    margin-bottom: 1.5rem;
  }

  .status-badge {
    margin-bottom: 1.35rem;
    padding: 0.3rem 0.75rem;
  }

  .headline {
    margin-bottom: 1rem;
    line-height: 1.22;
  }

  .description {
    line-height: 1.6;
  }

  .cta-container {
    margin-top: 1.5rem;
  }

  .contact-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .subtle-rule {
    margin-top: 1.6rem;
  }
}

/* For very short screens (landscape phones / mini laptops), allow natural flex flow */
@media (max-height: 600px) {
  .page-container {
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  
  .main-content {
    padding: 1.5rem 0;
  }

  .geometric-graphic {
    margin-bottom: 1rem;
  }
}
