/* ============================================================
   TOOLARO — Coming Soon Landing Page
   Fintech / Trading-Inspired Design
   ============================================================ */

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

:root {
  --color-bg: #0B1424;
  --color-bg-alt: #09121D;
  --color-surface: #0F1A2E;
  --color-text: #F0F4FA;
  --color-text-muted: #6B7D9A;
  --color-muted-dim: #3D4F6B;
  --color-primary: #73BE45;
  --color-primary-hover: #5EA338;
  --color-primary-glow: rgba(115, 190, 69, 0.15);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-strong: rgba(115, 190, 69, 0.15);
  --color-success: #73BE45;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   BACKGROUND — Animated Sweep
   ============================================================ */
.bg-sweep {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(115, 190, 69, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(115, 190, 69, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 60%);
  animation: sweep 12s ease-in-out infinite alternate;
}

@keyframes sweep {
  0%   { transform: translate(0%, 0%) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 24px 40px;
}

.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================================
   DATA GRID — Subtle background
   ============================================================ */
.data-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
}

/* ============================================================
   BLOBS
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 1;
  animation: blobFloat 30s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -200px;
  right: -100px;
  opacity: 0.06;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: #73BE45;
  bottom: -180px;
  left: -120px;
  opacity: 0.04;
  animation-delay: -10s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -30px) scale(1.03); }
  66%      { transform: translate(-20px, 20px) scale(0.97); }
}

/* ============================================================
   BRAND LOGO
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(115, 190, 69, 0.1));
}

/* ============================================================
   COMING SOON — Understated line
   ============================================================ */
.coming-soon-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
  position: relative;
}

.coming-soon-line::before,
.coming-soon-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--color-border-strong);
}

.coming-soon-line::before {
  right: calc(100% + 12px);
}

.coming-soon-line::after {
  left: calc(100% + 12px);
}

/* ============================================================
   MAIN HEADING
   ============================================================ */
.main-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.heading-line {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.heading-line-accent {
  background: linear-gradient(135deg, #73BE45 0%, #95D66D 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* ============================================================
   CHART LINE — SVG polyline animation
   ============================================================ */
.chart-line {
  width: 240px;
  height: 24px;
  margin: 16px 0 18px;
  opacity: 0.5;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-path {
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 6px rgba(115, 190, 69, 0.3));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawChart 2.5s ease-out forwards, chartGlow 3s ease-in-out 2.5s infinite;
}

@keyframes drawChart {
  to { stroke-dashoffset: 0; }
}

@keyframes chartGlow {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

/* ============================================================
   SUBTITLE
   ============================================================ */
.subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 36px;
}

/* ============================================================
   SUBSCRIBE CARD — Terminal-style
   ============================================================ */
.subscribe-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-bottom: 36px;
  padding: 28px 28px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.subscribe-card:focus-within {
  border-color: var(--color-border-strong);
}

/* Corner brackets (terminal aesthetic) */
.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--color-muted-dim);
  border-style: solid;
  opacity: 0.3;
  pointer-events: none;
}

.card-corner-tl {
  top: 6px;
  left: 6px;
  border-width: 1px 0 0 1px;
}

.card-corner-br {
  bottom: 6px;
  right: 6px;
  border-width: 0 1px 1px 0;
}

.subscribe-prompt {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscribe-prompt i {
  font-size: 0.75rem;
  opacity: 0.6;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ----- Form Fields ----------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.field-label i {
  font-size: 0.72rem;
  opacity: 0.5;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.25;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.form-input.success {
  border-color: var(--color-primary);
}

/* ----- Button ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--color-primary);
  color: #0B1424;
  min-width: 130px;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 8px 30px rgba(115, 190, 69, 0.25);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-arrow {
  font-size: 0.75rem;
  transition: transform var(--transition);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================================
   SOCIAL ICONS — Minimal circles
   ============================================================ */
.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-slow);
}

.social-link:hover {
  transform: translateY(-3px);
  color: #FFFFFF;
}

.social-link[title="WhatsApp"]:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.15);
}

.social-link[title="Instagram"]:hover {
  background: rgba(228, 64, 95, 0.15);
  border-color: rgba(228, 64, 95, 0.4);
  color: #E4405F;
  box-shadow: 0 8px 24px rgba(228, 64, 95, 0.15);
}

.social-link[title="YouTube"]:hover {
  background: rgba(255, 0, 0, 0.15);
  border-color: rgba(255, 0, 0, 0.4);
  color: #FF0000;
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.15);
}

.social-link[title="Facebook"]:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.4);
  color: #1877F2;
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.15);
}

/* ============================================================
   CONTACT BAR
   ============================================================ */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-link {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}

.contact-link i {
  font-size: 0.78rem;
  opacity: 0.5;
}

.contact-link:hover {
  color: var(--color-primary);
}

.contact-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-muted-dim);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ============================================================
   FORM FEEDBACK
   ============================================================ */
.form-feedback {
  font-size: 0.8rem;
  min-height: 1.4em;
  text-align: center;
  transition: color var(--transition);
}

.form-feedback.success { color: var(--color-success); }
.form-feedback.error   { color: #ef4444; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  opacity: 0.5;
}

.footer-line {
  width: 40px;
  height: 1px;
  background: var(--color-border);
}

.launch-highlight {
  color: var(--color-primary);
  font-weight: 600;
  opacity: 1;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 56px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 26, 46, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-width: 360px;
}

.toast.toast-out {
  animation: toastOut 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast-success { border-left: 3px solid var(--color-success); }
.toast-error   { border-left: 3px solid #ef4444; }

.toast-icon {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(30px) scale(0.95); }
}

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

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px 32px;
  }

  .heading-line {
    font-size: 2.2rem;
  }

  .chart-line {
    width: 180px;
    height: 20px;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .subscribe-card {
    padding: 22px 20px 18px;
  }

  .btn-primary {
    width: 100%;
    min-width: unset;
  }

  .contact-bar {
    flex-direction: column;
    gap: 6px;
  }

  .contact-dot { display: none; }

  .toast-container {
    left: 16px;
    right: 16px;
    top: 60px;
  }
  .toast { max-width: 100%; }

}

@media (max-width: 480px) {
  .heading-line {
    font-size: 1.7rem;
  }

  .chart-line {
    width: 140px;
    height: 16px;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .btn {
    font-size: 0.85rem;
    padding: 12px 18px;
  }

}

/* Larger screens */
@media (min-width: 1024px) {
  .heading-line { font-size: 4rem; }
  .chart-line { width: 280px; height: 28px; }
  .hero-inner { max-width: 800px; }
}

@media (min-width: 1400px) {
  .heading-line { font-size: 5rem; }
  .chart-line { width: 320px; height: 32px; }
  .hero-inner { max-width: 900px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .chart-path { stroke-dashoffset: 0; }
}
