/* ============================================================
   ASFTRUST — Under Construction
   Premium dark navy fintech aesthetic
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --navy: #03152F;
  --navy-dark: #020D20;
  --blue: #087CFF;
  --bright-blue: #1597FF;
  --white: #FFFFFF;
  --light-gray: #D9E4F2;
  --orange: #FF9D00;
  --yellow: #FFC107;

  --font-primary: 'Inter', 'Poppins', Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 40px rgba(8, 124, 255, 0.25);
  --shadow-btn: 0 8px 30px rgba(8, 124, 255, 0.35);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--navy-dark);
  color: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Page Wrapper & Fade-in ---------- */
.page-wrapper {
  opacity: 0;
  animation: pageFadeIn 0.9s ease-out 0.1s forwards;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
  }
}

/* ============================================================
   BACKGROUND DECOR
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(8, 124, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(21, 151, 255, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
}

/* Grid pattern */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 124, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 124, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
}

/* Diagonal translucent shapes */
.bg-diagonal {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.bg-diagonal--1 {
  width: 700px;
  height: 700px;
  top: -280px;
  right: -180px;
  background: radial-gradient(circle, rgba(8, 124, 255, 0.18) 0%, transparent 70%);
  animation: floatSlow 14s ease-in-out infinite;
}

.bg-diagonal--2 {
  width: 600px;
  height: 600px;
  bottom: -250px;
  left: -180px;
  background: radial-gradient(circle, rgba(21, 151, 255, 0.12) 0%, transparent 70%);
  animation: floatSlow 18s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

/* Glowing circles */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.bg-glow--1 {
  width: 400px;
  height: 400px;
  top: 20%;
  left: 10%;
  background: rgba(8, 124, 255, 0.12);
}

.bg-glow--2 {
  width: 350px;
  height: 350px;
  top: 50%;
  right: 15%;
  background: rgba(21, 151, 255, 0.08);
}

.bg-glow--3 {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: 40%;
  background: rgba(8, 124, 255, 0.06);
}

/* Thin geometric lines */
.bg-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(8, 124, 255, 0.15), transparent);
  height: 1px;
  width: 100%;
}

.bg-line--1 {
  top: 30%;
  left: 0;
  transform: rotate(-15deg) scaleX(0.8);
  transform-origin: left;
}

.bg-line--2 {
  bottom: 25%;
  right: 0;
  transform: rotate(10deg) scaleX(0.7);
  transform-origin: right;
  background: linear-gradient(90deg, transparent, rgba(21, 151, 255, 0.1), transparent);
}

/* ============================================================
   BRAND HEADER
   ============================================================ */
.brand-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 48px 7% 0 7.5%;
  max-width: 1350px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-logo {
  opacity: 0;
  animation: logoEntrance 1s ease-out 0.3s forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-link {
  display: inline-block;
  transition: opacity var(--transition);
}

.logo-link:hover {
  opacity: 0.85;
}

.logo-img {
  width: 320px;
  height: auto;
  max-width: 100%;
}

.brand-tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--light-gray);
  opacity: 0.7;
  margin-top: 6px;
  text-transform: uppercase;
}

.brand-right {
  text-align: right;
  padding-top: 8px;
}

.brand-right-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--light-gray);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

.brand-right-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bright-blue));
  margin-top: 12px;
  margin-left: auto;
  border-radius: 2px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  z-index: 5;
  padding: 50px 7%;
  max-width: 1350px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 60vh;
}

/* ---------- Left Column ---------- */
.hero-left {
  opacity: 0;
  animation: contentFadeUp 1s ease-out 0.4s forwards;
}

@keyframes contentFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--light-gray);
  opacity: 0.85;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.heading-white {
  color: var(--white);
  display: inline-block;
}

.heading-blue {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue) 0%, var(--bright-blue) 60%, #4DB8FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--bright-blue);
}

.hero-description {
  font-size: 17px;
  line-height: 1.65;
  color: var(--light-gray);
  opacity: 0.8;
  max-width: 600px;
  margin-bottom: 40px;
}

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 560px;
  margin-bottom: 40px;
}

.countdown-card {
  background: rgba(3, 21, 47, 0.55);
  border: 1px solid rgba(8, 124, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 10px 16px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(8, 124, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-card:hover {
  border-color: rgba(8, 124, 255, 0.5);
  box-shadow: 0 0 30px rgba(8, 124, 255, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.countdown-number {
  display: block;
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--light-gray);
  opacity: 0.65;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ---------- Contact Button ---------- */
.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--bright-blue) 100%);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(8, 124, 255, 0.5), 0 0 20px rgba(21, 151, 255, 0.3);
  filter: brightness(1.1);
}

.btn-contact:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 4px;
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

.contact-note {
  font-size: 14px;
  color: var(--light-gray);
  opacity: 0.65;
  max-width: 240px;
  line-height: 1.5;
}

/* ---------- Right Column – Illustration ---------- */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: illustrationFadeIn 1.2s ease-out 0.6s forwards;
}

@keyframes illustrationFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.illustration-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  filter: drop-shadow(0 0 60px rgba(8, 124, 255, 0.15));
}

.illustration-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(8, 124, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.construction-illustration {
  width: 100%;
  height: auto;
  display: block;
  animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Gears rotation */
.gear-1 {
  transform-origin: 480px 200px;
  animation: rotateGear 12s linear infinite;
}

.gear-2 {
  transform-origin: 110px 280px;
  animation: rotateGearReverse 8s linear infinite;
}

@keyframes rotateGear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateGearReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Floating particles */
.particle {
  animation: particleFloat 4s ease-in-out infinite;
}

.p1 { animation-delay: 0s; }
.p2 { animation-delay: 0.8s; }
.p3 { animation-delay: 1.6s; }
.p4 { animation-delay: 2.4s; }
.p5 { animation-delay: 3.2s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-14px) scale(1.2); opacity: 0.7; }
}

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 5;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 7% 40px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 124, 255, 0.25), transparent);
  margin-bottom: 40px;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 124, 255, 0.1);
  border: 1px solid rgba(8, 124, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  background: rgba(8, 124, 255, 0.18);
  border-color: rgba(8, 124, 255, 0.5);
  box-shadow: 0 0 20px rgba(8, 124, 255, 0.25);
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--light-gray);
  opacity: 0.55;
  text-transform: uppercase;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
  word-break: break-word;
}

a.contact-value:hover {
  color: var(--bright-blue);
}

/* Social icons */
.social-item {
  flex-direction: column;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 124, 255, 0.1);
  border: 1px solid rgba(8, 124, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-gray);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(8, 124, 255, 0.45);
}

.social-link:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 3px;
}

/* ---------- Copyright ---------- */
.copyright-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.copyright-line {
  flex: 1;
  max-width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 124, 255, 0.3));
}

.copyright-line:last-child {
  background: linear-gradient(90deg, rgba(8, 124, 255, 0.3), transparent);
}

.copyright-text {
  font-size: 13px;
  color: var(--light-gray);
  opacity: 0.5;
  white-space: nowrap;
  font-weight: 400;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .brand-header {
    padding: 36px 5% 0;
  }

  .logo-img {
    width: 260px;
  }

  .hero {
    padding: 40px 5%;
  }

  .hero-container {
    gap: 30px;
  }

  .hero-heading {
    font-size: clamp(42px, 6.5vw, 72px);
  }

  .hero-eyebrow {
    font-size: 18px;
    letter-spacing: 5px;
  }

  .countdown-number {
    font-size: 32px;
  }

  .countdown-card {
    padding: 16px 8px 14px;
  }

  .footer-contact {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .site-footer {
    padding: 0 5% 36px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .brand-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 5% 0;
    gap: 16px;
  }

  .brand-right {
    text-align: left;
    padding-top: 0;
  }

  .brand-right-line {
    margin-left: 0;
  }

  .logo-img {
    width: 220px;
  }

  .hero {
    padding: 32px 5% 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: auto;
  }

  .hero-left {
    text-align: center;
    order: 1;
  }

  .hero-right {
    order: 2;
  }

  .hero-eyebrow {
    font-size: 15px;
    letter-spacing: 4px;
  }

  .hero-heading {
    font-size: clamp(38px, 12vw, 58px);
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 15px;
    margin: 0 auto 32px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 100%;
    margin: 0 auto 32px;
  }

  .countdown-number {
    font-size: 30px;
  }

  .contact-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .contact-note {
    max-width: 100%;
    text-align: center;
  }

  .btn-contact {
    padding: 15px 30px;
    font-size: 15px;
  }

  .illustration-wrapper {
    max-width: 420px;
    margin: 0 auto;
  }

  .site-footer {
    padding: 0 5% 32px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-item {
    justify-content: flex-start;
  }

  .social-item {
    align-items: flex-start;
  }

  .copyright-row {
    flex-direction: column;
    gap: 10px;
  }

  .copyright-line {
    max-width: 80px;
    width: 80px;
  }

  .copyright-text {
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .logo-img {
    width: 180px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .hero-heading {
    font-size: 34px;
  }

  .countdown-number {
    font-size: 26px;
  }

  .countdown-label {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .countdown-card {
    padding: 14px 6px 12px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .page-wrapper {
    opacity: 1;
    animation: none;
  }

  .brand-logo {
    opacity: 1;
    animation: none;
  }

  .hero-left,
  .hero-right {
    opacity: 1;
    animation: none;
  }

  .construction-illustration {
    animation: none;
  }

  .gear-1,
  .gear-2 {
    animation: none;
  }

  .particle {
    animation: none;
  }

  .bg-diagonal--1,
  .bg-diagonal--2 {
    animation: none;
  }

  .illustration-wrapper::before {
    animation: none;
  }
}

/* ============================================================
   FOCUS VISIBLE (accessibility)
   ============================================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bright-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(8, 124, 255, 0.35);
  color: var(--white);
}