/* =========================================
   TRINE CONSULTANCY – Coming Soon
   style.css
   ========================================= */

/* --- Design Tokens --- */
:root {
  --clr-bg:          #06091e;
  --clr-bg-mid:      #0a0f2e;
  --clr-surface:     rgba(255, 255, 255, 0.04);
  --clr-surface-hov: rgba(255, 255, 255, 0.08);
  --clr-border:      rgba(255, 255, 255, 0.1);
  --clr-teal:        #00d4c8;
  --clr-teal-dark:   #00a89e;
  --clr-purple:      #7c5cbf;
  --clr-gold:        #f5c842;
  --clr-text:        #e8eaf6;
  --clr-text-muted:  #8892b0;
  --clr-white:       #ffffff;

  --font-primary:    'Outfit', sans-serif;
  --font-secondary:  'Inter', sans-serif;

  --radius-sm:       8px;
  --radius-md:       16px;
  --radius-lg:       24px;
  --radius-xl:       40px;
  --radius-full:     9999px;

  --shadow-glow-teal:   0 0 40px rgba(0, 212, 200, 0.25);
  --shadow-glow-purple: 0 0 40px rgba(124, 92, 191, 0.3);
  --shadow-card:        0 8px 32px rgba(0, 0, 0, 0.4);

  --transition-fast:    0.2s ease;
  --transition-base:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:    0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Screen-reader only */
.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;
}

/* =========================================
   BACKGROUND LAYERS
   ========================================= */

/* Particle Canvas */
#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Glowing Orbs */
.orb {
  position: fixed;
  border-radius: var(--radius-full);
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,200,0.35) 0%, transparent 70%);
  top: -150px; left: -150px;
  animation-duration: 14s;
}

.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,92,191,0.35) 0%, transparent 70%);
  bottom: -200px; right: -200px;
  animation-duration: 18s;
  animation-delay: -5s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(245,200,66,0.2) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-duration: 22s;
  animation-delay: -9s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* =========================================
   PAGE WRAPPER
   ========================================= */

.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 32px;
  gap: 0;
}

/* =========================================
   BRAND HEADER
   ========================================= */

.brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 60px;
  animation: fadeSlideDown 0.8s var(--transition-slow) both;
}

.logo-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(0, 212, 200, 0.5));
  transition: transform var(--transition-base), filter var(--transition-base);
}

.logo-mark:hover {
  transform: rotate(15deg) scale(1.1);
  filter: drop-shadow(0 0 20px rgba(0, 212, 200, 0.8));
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-trine {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.brand-consultancy {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  width: 100%;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--clr-teal);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeSlideDown 0.8s 0.2s var(--transition-slow) both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--clr-teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(0,212,200,0.6); }
  50%       { opacity: 0.85; transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0,212,200,0); }
}

/* Hero Title */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-white);
  margin-bottom: 24px;
  animation: fadeSlideUp 0.9s 0.35s both;
}

.highlight {
  position: relative;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--clr-teal) 0%, var(--clr-purple) 50%, var(--clr-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Subtitle */
.hero-subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 300;
  color: var(--clr-text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
  animation: fadeSlideUp 0.9s 0.5s both;
}

.hero-subtitle strong {
  color: var(--clr-text);
  font-weight: 600;
}

/* =========================================
   COUNTDOWN TIMER
   ========================================= */

.countdown-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.9s 0.65s both;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  min-width: 88px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.countdown-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,200,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-block:hover {
  border-color: rgba(0, 212, 200, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 200, 0.15);
}

.countdown-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, var(--clr-white), var(--clr-text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s ease;
}

.countdown-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

.countdown-divider {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-teal);
  line-height: 1;
  opacity: 0.6;
  animation: blinkDivider 1s step-end infinite;
  margin-top: -16px;
}

@keyframes blinkDivider {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 0.15; }
}

/* Number flip animation */
.countdown-number.flip {
  animation: flipNum 0.3s ease forwards;
}

@keyframes flipNum {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  40%  { transform: translateY(-10px) scale(0.9); opacity: 0; }
  60%  { transform: translateY(10px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* =========================================
   NOTIFY FORM
   ========================================= */

.notify-form {
  width: 100%;
  max-width: 520px;
  margin-bottom: 48px;
  animation: fadeSlideUp 0.9s 0.8s both;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 6px 6px 6px 16px;
  gap: 8px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.input-group:focus-within {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 4px rgba(0,212,200,0.1), var(--shadow-glow-teal);
}

.input-icon {
  color: var(--clr-text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.notify-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--clr-text);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  padding: 10px 4px;
  min-width: 0;
}

.notify-input::placeholder {
  color: var(--clr-text-muted);
  opacity: 0.7;
}

.notify-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-purple));
  color: var(--clr-white);
  border: none;
  border-radius: var(--radius-xl);
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-base), filter var(--transition-base);
  position: relative;
  overflow: hidden;
}

.notify-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-gold), var(--clr-teal));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.notify-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,212,200,0.35), 0 4px 12px rgba(124,92,191,0.25);
}

.notify-btn:hover::before {
  opacity: 0.3;
}

.notify-btn:active {
  transform: translateY(0);
}

.notify-btn .btn-text,
.notify-btn .btn-arrow {
  position: relative;
  z-index: 1;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.notify-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.notify-feedback {
  margin-top: 12px;
  font-size: 0.85rem;
  font-family: var(--font-secondary);
  min-height: 20px;
  transition: all var(--transition-base);
}

.notify-feedback.success {
  color: var(--clr-teal);
}

.notify-feedback.error {
  color: #ff6b8a;
}

/* =========================================
   SERVICES PREVIEW
   ========================================= */

.services-preview {
  animation: fadeSlideUp 0.9s 0.95s both;
}

.services-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  cursor: default;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-base), border-color var(--transition-base),
              color var(--transition-base), transform var(--transition-fast),
              box-shadow var(--transition-base);
}

.service-tag:hover,
.service-tag:focus {
  background: rgba(0,212,200,0.1);
  border-color: rgba(0,212,200,0.4);
  color: var(--clr-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,212,200,0.15);
  outline: none;
}

/* =========================================
   FOOTER
   ========================================= */

.page-footer {
  margin-top: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeSlideUp 0.9s 1.1s both;
  width: 100%;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--font-secondary);
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--clr-teal);
}

.footer-divider {
  color: var(--clr-border);
  font-size: 1.2rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(136,146,176,0.5);
  font-family: var(--font-secondary);
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 640px) {
  .brand-header {
    margin-bottom: 40px;
  }

  .countdown-container {
    gap: 8px;
  }

  .countdown-block {
    min-width: 66px;
    padding: 14px 12px;
  }

  .countdown-divider {
    font-size: 1.5rem;
    margin-top: -8px;
  }

  .input-group {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
    gap: 12px;
  }

  .input-icon {
    display: none;
  }

  .notify-input {
    width: 100%;
    text-align: center;
  }

  .notify-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-contact {
    flex-direction: column;
    gap: 10px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 420px) {
  .countdown-block {
    min-width: 56px;
    padding: 12px 8px;
  }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .orb { animation: none; }
  #particleCanvas { display: none; }
}
