/* ========================================
   Trading Stream - Coming Soon
   ======================================== */

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

:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #151f32;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --cyan-400: #22d3ee;
  --green-400: #4ade80;
  --green-500: #22c55e;
}

::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--slate-950);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Background Canvas ---- */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- Radial Glows ---- */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
}

.glow-gold {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.glow-blue {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  bottom: 20%;
  right: 10%;
}

/* ---- Main Layout ---- */
main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---- Hero ---- */
.hero {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 3rem 1rem 2rem;
}

/* ---- Logo ---- */
.logo-container {
  margin-top: 2rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out;
}

.logo-img {
  max-width: 20rem;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.15));
}

/* ---- Headline ---- */
.headline {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  
  max-width: 50rem;

  line-height: 1.2;
  animation: fadeInUp 1s ease-out 0.15s both;
}

.headline-accent {
  font-weight: 600;
  background: linear-gradient(to right, #fff, #fde68a, var(--amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subheadline {
  color: var(--slate-400);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 38rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
  animation: fadeInUp 1s ease-out 0.3s both;
  margin-top: 25px;
}

/* ---- Subscribe ---- */
.subscribe-container {
  width: 100%;
  max-width: 28rem;
  margin: 3rem auto 3rem;
  animation: fadeInUp 1s ease-out 0.6s both;
  
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--slate-500);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--slate-700);
  border-radius: 0.5rem;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.input-wrapper input::placeholder {
  color: var(--slate-500);
}

.input-wrapper input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(to right, var(--amber-500), var(--amber-600));
  color: var(--slate-950);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}

.submit-btn:hover {
  background: linear-gradient(to right, var(--amber-400), var(--amber-500));
  transform: scale(1.02);
}

.submit-btn:active {
  transform: scale(0.98);
}

.success-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.5rem;
  color: var(--green-400);
  animation: fadeIn 0.3s ease-out;
}

.success-msg svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.success-msg.hidden {
  display: none;
}

.subscribe-note {
  color: var(--slate-500);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.75rem;
}

/* ---- Social Links ---- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-700);
  background: rgba(15, 23, 42, 0.6);
  color: var(--slate-400);
  transition: all 0.3s;
}

.social-link:hover {
  border-color: var(--amber-500);
  color: var(--amber-400);
  background: rgba(245, 158, 11, 0.08);
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* ---- Scroll Arrow ---- */
.scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--slate-700);
  color: var(--slate-400);
  text-decoration: none;
  animation: bounceDown 2s ease-in-out infinite;
  transition: color 0.3s, border-color 0.3s;
  margin-top: auto;
  flex-shrink: 0;
}

.scroll-arrow:hover {
  color: var(--amber-400);
  border-color: var(--amber-500);
}

.scroll-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Features ---- */
.features {
  padding: 2rem 1.5rem 6rem;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--slate-800);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.feature-card:hover .feature-icon-wrap {
  transform: scale(1.1);
}

.feature-card:hover h3 {
  color: var(--amber-400);
}

.feature-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--slate-950);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.feature-icon-wrap svg {
  width: 2rem;
  height: 2rem;
  color: var(--amber-500);
}

.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.feature-card p {
  color: var(--slate-400);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ---- Footer ---- */
footer {
  width: 100%;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.8);
  background: rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  color: var(--slate-500);
  font-size: 0.85rem;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---- Responsive ---- */
@media (min-width: 640px) {
  .subscribe-form {
    flex-direction: row;
    align-items: center;
  }

  .submit-btn {
    width: auto;
    flex-shrink: 0;
  }

}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }

  .headline {
    font-size: 2.6rem;
  }

  .subheadline br {
    display: block;
  }

  .logo-img {
    max-width: 24rem;
  }
}

@media (min-width: 1024px) {
  .headline {
    font-size: 3.2rem;
  }

  .subheadline {
    font-size: 1.2rem;
  }

  .logo-img {
    max-width: 28rem;
  }
}
