/* ==========================================================================
   CEMVEX BUILDING SOLUTIONS : COMING SOON HERO STYLESHEET
   Crafted under Antislop Design & Human Accessibility Guidelines
   Non-flat, Dimensional, Tactile Industrial Aesthetic
   ========================================================================== */

:root {
  --color-primary-navy: #0a2540;
  --color-primary-dark: #071a2d;
  --color-accent-blue: #0066cc;
  --color-accent-hover: #0052a3;
  --color-sky-tint: #f0f7ff;
  --color-sky-tint-alt: #e0f2fe;
  --color-pure-white: #ffffff;
  
  --color-text-main: #0a2540;
  --color-text-body: #1e293b;
  --color-text-muted: #475569;
  --color-border-light: #cbd5e1;
  --color-border-subtle: #e2e8f0;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-card: 26px;
  --radius-pill: 9999px;

  /* Layered Dimensional Elevation Tokens */
  --shadow-subtle: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-card: 
    0 22px 45px -8px rgba(10, 37, 64, 0.22), 
    0 8px 18px -4px rgba(10, 37, 64, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(10, 37, 64, 0.06);
  --shadow-card-hover: 
    0 32px 60px -10px rgba(10, 37, 64, 0.3), 
    0 16px 28px -5px rgba(0, 102, 204, 0.28),
    inset 0 1px 1px rgba(255, 255, 255, 1);

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Accessibility (R-32, R-39) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-pure-white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Pointer Cursor on Interactive Elements (R-39) */
a[href], 
button, 
select, 
summary, 
label[for], 
input[type="submit"], 
input[type="button"] {
  cursor: pointer;
}

/* Visible Focus Outline (R-32) */
:focus-visible {
  outline: 2px solid var(--color-accent-blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   1. Main Container: Dimensional Showroom Atmosphere
   -------------------------------------------------------------------------- */
.coming-soon-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Multi-source volumetric lighting */
  background: 
    radial-gradient(circle at 72% 46%, rgba(2, 132, 199, 0.2) 0%, rgba(240, 247, 255, 0.5) 30%, transparent 68%),
    radial-gradient(circle at 18% 18%, rgba(10, 37, 64, 0.05) 0%, transparent 45%),
    linear-gradient(142deg, #ffffff 0%, #f4f8fd 48%, #dfedf8 100%);
  overflow: hidden;
}

/* Architectural Faceted Corner Geometry with Glass Highlights */
.geo-decor-top-left {
  position: absolute;
  top: 0;
  left: 0;
  width: min(360px, 36vw);
  height: min(360px, 36vw);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.16) 0%, rgba(10, 37, 64, 0.04) 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 1;
}

.geo-decor-bottom-left {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(400px, 42vw);
  height: min(240px, 26vw);
  background: linear-gradient(45deg, rgba(14, 116, 144, 0.14) 0%, rgba(0, 102, 204, 0.07) 100%);
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  pointer-events: none;
  z-index: 1;
}

.geo-decor-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  width: min(320px, 32vw);
  height: min(200px, 22vw);
  background: linear-gradient(-45deg, rgba(0, 102, 204, 0.12) 0%, rgba(224, 242, 254, 0) 100%);
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   2. Header Bar
   -------------------------------------------------------------------------- */
.header-bar {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 1.5rem 2.5rem;
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  filter: drop-shadow(0 2px 4px rgba(10, 37, 64, 0.08));
}

.brand-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

/* Desktop Brand Pillars: Brushed plate badge */
.brand-pillars-desktop {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-primary-navy);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.pillar-dot {
  color: var(--color-accent-blue);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   3. Main Hero Presentation & Dimensional Typography
   -------------------------------------------------------------------------- */
.hero-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 2.5rem 2.5rem;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

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

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Overline Tag: Brushed industrial pill plate */
.overline-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 102, 204, 0.22);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dash-line {
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--color-accent-blue);
  border-radius: 1px;
}

.tag-text {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--color-primary-navy);
  text-transform: uppercase;
}

/* Headline: Dimensional Metallic & Chrome Gradients */
.hero-headline {
  font-size: clamp(3rem, 5.8vw + 0.5rem, 5.25rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--color-primary-navy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #091e38 0%, #17385f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(10, 37, 64, 0.08));
}

.text-electric-blue {
  background: linear-gradient(180deg, #38bdf8 0%, #0066cc 65%, #004c99 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 102, 204, 0.3));
}

.hero-description {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 3rem;
  max-width: 540px;
}

/* --------------------------------------------------------------------------
   4. Tactile Frosted Glass Feature Cards
   -------------------------------------------------------------------------- */
.features-bar {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  max-width: 640px;
}

.feature-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 16px -2px rgba(10, 37, 64, 0.08), 
    inset 0 1px 1px rgba(255, 255, 255, 1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 22px -3px rgba(10, 37, 64, 0.12), 
    inset 0 1px 1px rgba(255, 255, 255, 1);
  border-color: rgba(0, 102, 204, 0.35);
}

.feature-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  border: 1px solid rgba(0, 102, 204, 0.3);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 1), 
    0 2px 6px rgba(0, 102, 204, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-blue);
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  line-height: 1.3;
}

.feature-separator {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Right Column: 3D Perspective Stage & Beveled Floating Cards
   -------------------------------------------------------------------------- */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 15;
}

.diagonal-cards-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  overflow: visible;
  perspective: 1200px;
  z-index: 15;
}

/* Volumetric Ambient Spotlight behind cards */
.stage-ambient-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.24) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  z-index: 1;
}

/* Physical Ground Contact Shadow */
.stage-floor-reflection {
  position: absolute;
  bottom: 10px;
  width: 82%;
  height: 32px;
  background: radial-gradient(ellipse at center, rgba(10, 37, 64, 0.16) 0%, rgba(0, 102, 204, 0.08) 50%, transparent 80%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

/* Rotated 3D Stage container */
.diagonal-cards-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  transform: rotate(8deg);
  transform-origin: center center;
  transform-style: preserve-3d;
}

/* Dimensional Rounded Card with Physical Bevel */
.diagonal-card {
  width: clamp(145px, 13vw, 180px);
  height: clamp(270px, 25vw, 350px);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.38s ease;
  will-change: transform;
  flex-shrink: 0;
  position: relative;
  pointer-events: none;
}

/* Inner Frame */
.card-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-card) - 6px);
  overflow: hidden;
  position: relative;
  background-color: #f1f5f9;
  will-change: transform;
  pointer-events: none;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  pointer-events: none;
}

/* Optical Diagonal Glass Sheen across the cards */
.card-glass-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 60%);
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}

/* Stable Hit-Area Slots (Eliminates hover flickering and jitter completely) */
.diagonal-card-slot {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  pointer-events: auto;
  padding: 30px 10px;
  margin: -30px -10px;
  z-index: 2;
  transition: z-index 0.2s ease;
}

.diagonal-card-slot:hover {
  z-index: 10;
}

/* Initial Staggered Vertical Offsets on Slots */
.slot-first {
  transform: translateY(35px);
}

.slot-center {
  transform: translateY(-28px);
}

.slot-third {
  transform: translateY(22px);
}

/* Distinct Interactive Hover Shift on the Card (Slot stays stationary) */
.diagonal-card-slot:hover .diagonal-card {
  transform: translateY(-20px) scale(1.06);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 255, 255, 1);
}

.diagonal-card-slot:hover .card-photo {
  transform: scale(1.08);
}

.diagonal-card-slot:hover .card-inner {
  animation-play-state: paused;
}

/* --------------------------------------------------------------------------
   Continuous Gentle Floating Animations (Hardware Accelerated)
   -------------------------------------------------------------------------- */
@keyframes floatInnerA {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-20px);
  }
}

@keyframes floatInnerB {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-24px);
  }
}

@keyframes floatInnerC {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-18px);
  }
}

.slot-first .card-inner {
  animation: floatInnerA 4s ease-in-out infinite alternate;
}

.slot-center .card-inner {
  animation: floatInnerB 4.6s ease-in-out 0.3s infinite alternate;
}

.slot-third .card-inner {
  animation: floatInnerC 4.2s ease-in-out 0.6s infinite alternate;
}

/* Bottom Slogan Bar */
.hero-bottom-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 10;
}

.mobile-slogan {
  display: none;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--color-primary-navy);
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.04);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Reflow (R-03, Layoutmobile)
   Zero horizontal overflow guaranteed on mobile devices
   -------------------------------------------------------------------------- */

/* Tablet & Intermediate Screens (1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-left {
    align-items: center;
    text-align: center;
  }

  .overline-tag,
  .features-bar {
    justify-content: center;
  }

  .hero-description {
    max-width: 600px;
  }

  .diagonal-cards-stage {
    transform: rotate(6deg) scale(0.95);
  }
}

/* Mobile Screens (< 768px: Safe, fluid, zero horizontal overflow) */
@media (max-width: 768px) {
  .header-bar {
    padding: 1rem 1.25rem;
  }

  .brand-pillars-desktop {
    display: none;
  }

  .hero-main {
    padding: 1rem 1.25rem 2.5rem;
  }

  .hero-headline {
    font-size: 2.75rem;
  }

  .hero-description {
    margin-bottom: 2rem;
  }

  /* Reflow Feature Items into a clean stacked list on mobile */
  .features-bar {
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
  }

  .feature-item {
    width: 100%;
    padding: 0.75rem 0.85rem;
  }

  .mobile-slogan {
    display: inline-block;
  }

  /* Responsive 3 Diagonal Cards on Mobile: Fully contained */
  .diagonal-cards-wrapper {
    padding: 1.5rem 0.5rem 2.5rem;
    max-width: 100%;
    overflow: hidden;
    perspective: none; /* Safe 2D on mobile for maximum performance */
  }

  .stage-ambient-glow {
    width: 280px;
    height: 280px;
  }

  .diagonal-cards-stage {
    transform: rotate(5deg) scale(0.85) !important;
    gap: 0.75rem;
  }

  .diagonal-card {
    width: 105px;
    height: 195px;
    border-radius: 18px;
    padding: 5px;
  }

  .diagonal-card-slot {
    padding: 18px 6px;
    margin: -18px -6px;
  }

  .card-inner {
    border-radius: 14px;
  }

  .slot-first {
    transform: translateY(22px);
  }

  .slot-center {
    transform: translateY(-16px);
  }

  .slot-third {
    transform: translateY(14px);
  }

  .diagonal-card-slot:hover .diagonal-card,
  .diagonal-card-slot:active .diagonal-card {
    transform: translateY(-12px) scale(1.05);
    box-shadow: var(--shadow-card-hover);
    z-index: 10;
  }

  @keyframes floatInnerMobileA {
    0% {
      transform: translateY(0px);
    }
    100% {
      transform: translateY(-10px);
    }
  }

  @keyframes floatInnerMobileB {
    0% {
      transform: translateY(0px);
    }
    100% {
      transform: translateY(-12px);
    }
  }

  @keyframes floatInnerMobileC {
    0% {
      transform: translateY(0px);
    }
    100% {
      transform: translateY(-9px);
    }
  }

  .slot-first .card-inner {
    animation: floatInnerMobileA 4s ease-in-out infinite alternate;
  }

  .slot-center .card-inner {
    animation: floatInnerMobileB 4.6s ease-in-out 0.3s infinite alternate;
  }

  .slot-third .card-inner {
    animation: floatInnerMobileC 4.2s ease-in-out 0.6s infinite alternate;
  }
}

/* Ultra-compact screens (< 380px) */
@media (max-width: 380px) {
  .diagonal-cards-stage {
    transform: rotate(4deg) scale(0.75) !important;
    gap: 0.5rem;
  }

  .diagonal-card {
    width: 95px;
    height: 175px;
  }
}

/* Reduced Motion Preference (R-39: pauses continuous auto-play only) */
@media (prefers-reduced-motion: reduce) {
  .card-inner {
    animation: none !important;
  }
}
