/* Modern Tech/Fintech Minimal Subtle Theme */
:root {
  --bg-primary: #0a0d14;
  --bg-secondary: #111622;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(99, 102, 241, 0.3);
  --accent-teal: #00f2fe;
  --accent-indigo: #6366f1;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background Canvas & Ambient Orbs */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: transform 10s ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.28) 0%, transparent 70%);
  top: 40%;
  right: -150px;
  animation: floatOrb2 22s ease-in-out infinite alternate;
}

.orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, transparent 70%);
  bottom: -150px;
  left: 20%;
  animation: floatOrb 26s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.08); }
  100% { transform: translate(-30px, 20px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -40px) scale(1.1); }
  100% { transform: translate(30px, 30px) scale(0.92); }
}

/* Page Layout */
.layout-wrapper {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.chip-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-teal);
  text-transform: uppercase;
}

.redirect-tracker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.redirect-tracker strong {
  color: #fff;
}

.timer-ring {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2.5;
}

.ring-progress {
  fill: none;
  stroke: var(--accent-teal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 69.115; /* 2 * PI * 11 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

#timer-count {
  display: inline-block;
  font-weight: 700;
  color: var(--accent-teal);
  min-width: 1ch;
  text-align: center;
}

/* Main Content Card */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card Hero */
.card-hero {
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.anniversary-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.sparkle-icon {
  color: var(--accent-teal);
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.highlight-val {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 800;
}

/* Highlight Pills */
.highlight-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.55rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.25s ease;
}

.pill svg {
  color: var(--accent-teal);
  flex-shrink: 0;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

/* Action CTA Button */
.action-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.forward-btn {
  display: inline-block;
  position: relative;
  text-decoration: none;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(90deg, #00f2fe, #6366f1, #38bdf8, #00f2fe);
  background-size: 300% 100%;
  animation: gradientFlow 5s linear infinite;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.25), 0 0 15px rgba(99, 102, 241, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

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

.forward-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.4), 0 0 25px rgba(99, 102, 241, 0.3);
}

.forward-btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  background: #0d121f;
  color: #ffffff;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, color 0.3s ease;
}

.forward-btn:hover .btn-content {
  background: rgba(13, 18, 31, 0.85);
  color: #38bdf8;
}

.btn-content svg {
  transition: transform 0.2s ease;
}

.forward-btn:hover .btn-content svg {
  transform: translateX(4px);
}

/* Terms Container */
.terms-container {
  padding-top: 2.5rem;
}

.terms-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.terms-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.last-updated {
  font-size: 0.84rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.2rem;
}

.terms-notice-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
}

/* Terms Grid */
.terms-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.term-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: all 0.25s ease;
}

.term-box:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(3px);
}

.term-num {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.term-content {
  flex: 1;
}

.term-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.45rem;
}

.term-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.term-content p:last-child {
  margin-bottom: 0;
}

.term-content ul {
  list-style: none;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.term-content ul li {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.55;
  position: relative;
  padding-left: 1.25rem;
}

.term-content ul li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: var(--accent-teal);
  font-weight: bold;
}

.term-content strong {
  color: #fff;
}

.highlight-box {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.signature-date {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.signature-date strong {
  color: #cbd5e1;
}

/* Bottom Footer */
.bottom-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.redirecting-notice {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.inline-link {
  color: var(--accent-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .layout-wrapper {
    padding: 1.25rem 1rem 3rem;
  }

  .content-card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .top-nav {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
  }

  .brand-chip {
    justify-content: center;
  }

  .redirect-tracker {
    justify-content: center;
  }

  .term-box {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem;
  }

  .term-num {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .forward-btn {
    width: 100%;
  }

  .btn-content {
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}
