/* ============================================================
   Tiigsi Technology — Coming Soon
   style.css
   A modern, responsive, accessible "coming soon" stylesheet.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* ---- Brand palette (sampled from the Tiigsi Technology logo) ---- */
  --brand-orange: #f26522;        /* primary logo orange */
  --brand-orange-bright: #ff7d3a; /* lighter accent orange */
  --brand-blue: #1e2a8a;          /* logo navy/blue */
  --brand-blue-bright: #3b4bd1;   /* lighter brand blue */

  /* Deep navy backdrop derived from the brand blue */
  --navy-900: #081034;
  --navy-800: #0d1845;
  --navy-700: #15235f;
  --amber: #ffc24b;

  --text: #eef1ff;
  --text-muted: #aeb6da;
  --white: #ffffff;

  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.12);

  /* Orange-forward brand gradient, with blue available as accent */
  --gradient-brand: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-bright) 100%);
  --gradient-text: linear-gradient(120deg, #ffffff 0%, #ffd9c2 50%, var(--brand-orange-bright) 100%);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 18px 50px rgba(3, 10, 30, 0.55);

  --radius: 16px;
  --radius-lg: 22px;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --maxw: 920px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, var(--navy-700), var(--navy-900) 55%) fixed;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Visually hidden but available to screen readers */
.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;
}

/* Accessible focus styles */
:focus-visible {
  outline: 3px solid var(--brand-orange-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   Animated Background
   ============================================================ */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float-blob 18s ease-in-out infinite;
}

.blob--1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--brand-blue) 0%, transparent 70%);
}

.blob--2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, var(--brand-orange) 0%, transparent 70%);
  animation-delay: -6s;
}

.blob--3 {
  width: 360px;
  height: 360px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, var(--brand-blue-bright) 0%, transparent 70%);
  animation-delay: -11s;
  opacity: 0.35;
}

/* Subtle tech grid overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 80%);
}

/* Floating themed icons */
.float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.18;
  animation: float-icon 14s ease-in-out infinite;
  user-select: none;
}
.float-icon--1 { top: 18%; left: 10%; animation-delay: 0s; }
.float-icon--2 { top: 28%; right: 12%; animation-delay: -3s; }
.float-icon--3 { bottom: 22%; left: 14%; animation-delay: -6s; }
.float-icon--4 { top: 60%; right: 18%; animation-delay: -9s; }
.float-icon--5 { bottom: 30%; right: 40%; animation-delay: -12s; }

@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-26px) rotate(8deg); }
}

/* ============================================================
   Layout
   ============================================================ */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 36px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- Header / Logo ---------- */
.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: translateY(-2px);
}

/* Main logo image — shown on a soft white plate so the
   orange/navy artwork stays crisp against the dark background. */
.logo__img {
  display: block;
  width: clamp(170px, 40vw, 230px);
  height: auto;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  /* entrance animation */
  animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--brand-orange-bright);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(6px);
  margin-bottom: 24px;
  animation: pulse-soft 2.6s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero__title-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.05rem, 3vw, 1.7rem);
  font-weight: 600;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__subtitle {
  max-width: 600px;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  margin-bottom: 40px;
}

/* ============================================================
   Countdown
   ============================================================ */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 92px;
  padding: 18px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.countdown__item:hover {
  transform: translateY(-5px);
  border-color: var(--brand-orange);
}

.countdown__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.countdown__label {
  margin-top: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.countdown__sep {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  animation: blink 1s steps(2, start) infinite;
}

/* ============================================================
   Development Progress
   ============================================================ */
.progress {
  width: 100%;
  max-width: 460px;
  margin-bottom: 44px;
}

.progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.progress__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-orange-bright);
}

.progress__track {
  height: 12px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.progress__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--gradient-brand);
  background-size: 200% 100%;
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: shimmer 2.5s linear infinite;
}

/* ============================================================
   Notify Me Form
   ============================================================ */
.notify {
  width: 100%;
  max-width: 520px;
  margin-bottom: 40px;
}

.notify__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.notify__field {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.notify__field:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.15);
}

.notify__input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
}
.notify__input::placeholder {
  color: var(--text-muted);
}
.notify__input:focus {
  outline: none;
}

.notify__btn {
  flex-shrink: 0;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--gradient-brand);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.notify__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(242, 101, 34, 0.45);
  filter: brightness(1.08);
}
.notify__btn:active {
  transform: translateY(0);
}

.notify__message {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}
.notify__message.is-success {
  color: var(--brand-orange-bright);
}
.notify__message.is-error {
  color: #ff8a8a;
}

/* ============================================================
   Social Media
   ============================================================ */
.social {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.social__link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: transform 0.28s ease, color 0.28s ease,
    background 0.28s ease, box-shadow 0.28s ease;
}
.social__link:hover {
  transform: translateY(-5px) scale(1.05);
  color: var(--white);
  background: var(--gradient-brand);
  box-shadow: 0 12px 26px rgba(242, 101, 34, 0.4);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  width: 100%;
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
}

.site-footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 6px;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 101, 34, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(242, 101, 34, 0); }
}

@keyframes blink {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.1; }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
  .page { padding: 22px 16px 28px; }

  .countdown { gap: 6px; }
  .countdown__sep { display: none; } /* cleaner stacked look on mobile */
  .countdown__item {
    min-width: 0;
    flex: 1 1 40%;
    padding: 14px 8px;
  }

  .notify__field {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding: 12px;
  }
  .notify__input { text-align: center; }
  .notify__btn { width: 100%; }

  .float-icon { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .logo__img { width: 150px; padding: 10px 14px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
