/* =========================================================
   FINPILOT AI — PREMIUM FINTECH UI
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-2: #080c15;
  --panel: rgba(14, 19, 31, 0.72);
  --panel-strong: rgba(17, 23, 38, 0.92);

  --border: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(124, 92, 255, 0.42);

  --text: #f4f7ff;
  --muted: #8995aa;
  --muted-2: #667287;

  --primary: #8066ff;
  --primary-2: #4f9cff;
  --cyan: #2dd4bf;

  --success: #35d399;
  --danger: #fb7185;
  --warning: #fbbf24;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow:
    0 25px 80px rgba(0, 0, 0, 0.45);

  --glow:
    0 0 50px rgba(124, 92, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 15% 5%,
      rgba(124, 92, 255, 0.14),
      transparent 28%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(45, 212, 191, 0.08),
      transparent 25%
    ),
    linear-gradient(180deg, #060912 0%, #05070d 100%);

  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );

  background-size: 60px 60px;

  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 80%
  );
}

.bg-orb {
  position: fixed;

  width: 420px;
  height: 420px;

  border-radius: 50%;

  filter: blur(120px);
  opacity: 0.11;

  pointer-events: none;

  z-index: -1;

  animation: floatingOrb 10s ease-in-out infinite alternate;
}

.orb-one {
  background: #7658ff;
  left: -180px;
  top: 15%;
}

.orb-two {
  background: #19d5c0;
  right: -200px;
  top: 55%;
  animation-delay: -4s;
}

@keyframes floatingOrb {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-40px);
  }
}

/* =========================================================
   GLOBAL
   ========================================================= */

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

button,
input,
select,
textarea {
  font: inherit;
}

.glass {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.018)
    ),
    var(--panel);

  border: 1px solid var(--border);

  box-shadow:
    var(--shadow),
    inset 0 1px rgba(255, 255, 255, 0.035);

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  position: sticky;
  top: 16px;
  z-index: 100;

  width: min(1180px, calc(100% - 32px));

  margin: 16px auto;

  padding: 10px 14px 10px 18px;

  min-height: 62px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 18px;

  background:
    rgba(7, 10, 18, 0.78);

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.brand b {
  color: #a99cff;
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #7658ff,
      #4f9cff
    );

  box-shadow:
    0 8px 25px rgba(118, 88, 255, 0.28);

  font-weight: 900;

  transition: 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-5deg) scale(1.05);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 30px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 600;
}

.navbar nav a {
  position: relative;
  transition: 0.2s ease;
}

.navbar nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -8px;

  height: 2px;

  background: var(--primary);

  transform: scaleX(0);
  transform-origin: center;

  transition: 0.2s ease;
}

.navbar nav a:hover {
  color: #fff;
}

.navbar nav a:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  width: min(1180px, calc(100% - 32px));

  margin: auto;

  padding: 100px 0;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  margin: 8px 0;

  font-size: clamp(32px, 4vw, 48px);

  line-height: 1.05;

  letter-spacing: -1.5px;
}

.section-heading p {
  margin: 0;

  max-width: 650px;

  color: var(--muted);

  font-size: 15px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #a99cff;

  font-size: 11px;
  font-weight: 800;

  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 22px;
  height: 1px;

  background: var(--primary);
}

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

.hero {
  min-height: calc(100vh - 90px);

  display: grid;

  grid-template-columns:
    minmax(0, 1.12fr)
    minmax(360px, 0.88fr);

  align-items: center;

  gap: 80px;

  padding-top: 60px;
}

.hero > div:first-child {
  animation: heroIn 0.75s ease both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  max-width: 760px;

  margin: 20px 0;

  font-size: clamp(46px, 6.2vw, 82px);

  line-height: 0.98;

  letter-spacing: -4px;
}

.hero h1 span {
  background:
    linear-gradient(
      100deg,
      #b3a8ff,
      #8066ff 45%,
      #4fe3d0
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero p {
  max-width: 650px;

  margin: 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 12px;

  margin: 32px 0;
}

.btn {
  position: relative;

  border: 0;
  border-radius: 12px;

  padding: 13px 20px;

  color: #fff;

  font-weight: 750;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background:
    linear-gradient(
      135deg,
      #8066ff,
      #4f9cff
    );

  box-shadow:
    0 10px 30px rgba(96, 76, 255, 0.22);
}

.btn-primary:hover {
  box-shadow:
    0 15px 40px rgba(96, 76, 255, 0.35);
}

.btn-outline {
  border: 1px solid var(--border);

  background:
    rgba(255, 255, 255, 0.025);
}

.btn-outline:hover {
  border-color: var(--border-hover);

  background:
    rgba(124, 92, 255, 0.08);
}

.btn-small {
  padding: 9px 13px;

  font-size: 13px;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;

  color: #7bd9c7;

  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   HERO DASHBOARD CARD
   ========================================================= */

.hero-card {
  position: relative;

  padding: 26px;

  border-radius: 26px;

  overflow: hidden;

  animation:
    heroCardIn 0.8s ease 0.1s both;

  box-shadow:
    var(--shadow),
    0 0 80px rgba(124, 92, 255, 0.07);
}

.hero-card::before {
  content: "";

  position: absolute;

  width: 240px;
  height: 240px;

  right: -100px;
  top: -100px;

  border-radius: 50%;

  background: #8066ff;

  filter: blur(90px);

  opacity: 0.1;
}

@keyframes heroCardIn {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-card-top {
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: var(--muted);

  font-size: 12px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  color: var(--success);

  display: flex;
  align-items: center;
  gap: 7px;
}

.live-dot::before {
  content: "";

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: var(--success);

  box-shadow:
    0 0 12px rgba(53, 211, 153, 0.8);
}

/* =========================================================
   SCORE RING
   ========================================================= */

.score-ring {
  width: 205px;
  height: 205px;

  margin: 35px auto;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    conic-gradient(
      #8066ff 0 78%,
      rgba(255, 255, 255, 0.07) 78% 100%
    );

  position: relative;

  box-shadow:
    0 0 45px rgba(124, 92, 255, 0.12);

  animation: ringGlow 3s ease-in-out infinite alternate;
}

@keyframes ringGlow {
  from {
    box-shadow:
      0 0 20px rgba(124, 92, 255, 0.08);
  }

  to {
    box-shadow:
      0 0 50px rgba(124, 92, 255, 0.22);
  }
}

.score-ring::after {
  content: "";

  position: absolute;
  inset: 13px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 50% 35%,
      #151c30,
      #090d17
    );

  border: 1px solid rgba(255, 255, 255, 0.06);
}

.score-ring div {
  position: relative;
  z-index: 2;

  text-align: center;
}

.score-ring strong {
  display: block;

  font-size: 46px;
  line-height: 1;

  letter-spacing: -2px;
}

.score-ring small {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: 10px;

  letter-spacing: 1.5px;
}

/* =========================================================
   MINI METRICS
   ========================================================= */

.mini-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;
}

.mini-grid > div {
  padding: 15px;

  border-radius: 15px;

  border: 1px solid var(--border);

  background:
    rgba(255, 255, 255, 0.025);

  transition: 0.2s ease;
}

.mini-grid > div:hover {
  transform: translateY(-2px);

  border-color:
    rgba(124, 92, 255, 0.28);

  background:
    rgba(255, 255, 255, 0.045);
}

.mini-grid small {
  color: var(--muted);

  font-size: 11px;
}

.mini-grid strong {
  display: block;

  margin-top: 3px;

  font-size: 16px;
}

.success {
  color: var(--success);
}

.muted {
  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   PROGRESS
   ========================================================= */

.progress {
  height: 7px;

  margin: 18px 0;

  overflow: hidden;

  border-radius: 20px;

  background:
    rgba(255, 255, 255, 0.07);
}

.progress span {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #8066ff,
      #2dd4bf
    );

  transform-origin: left;

  animation: progressLoad 1.2s ease both;
}

@keyframes progressLoad {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* =========================================================
   FEATURE GRID
   ========================================================= */

.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 15px;
}

.feature-card {
  position: relative;

  min-height: 205px;

  padding: 24px;

  border-radius: 20px;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.feature-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(124, 92, 255, 0.15),
      transparent 50%
    );

  opacity: 0;

  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-7px);

  border-color:
    rgba(124, 92, 255, 0.35);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.icon {
  position: relative;

  display: inline-grid;
  place-items: center;

  width: 48px;
  height: 48px;

  border-radius: 14px;

  background:
    rgba(124, 92, 255, 0.1);

  border:
    1px solid rgba(124, 92, 255, 0.18);

  font-size: 22px;
}

.feature-card h3 {
  margin: 18px 0 7px;

  font-size: 16px;
}

.feature-card p {
  margin: 0;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   TOOL SECTION
   ========================================================= */

.tool-section {
  padding-top: 70px;
}

.tool-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);

  gap: 18px;
}

.form-card,
.result-card,
.single-tool {
  border-radius: var(--radius-lg);

  padding: 26px;
}

.form-card,
.result-card,
.single-tool {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.form-card:hover,
.result-card:hover,
.single-tool:hover {
  border-color:
    rgba(124, 92, 255, 0.25);
}

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

.form-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 16px;
}

.form-grid label,
.input-row label {
  display: flex;
  flex-direction: column;

  gap: 7px;

  color: #bfc9dc;

  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;

  border: 1px solid var(--border);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.035);

  color: #fff;

  padding: 12px 13px;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #566176;
}

input:hover,
select:hover,
textarea:hover {
  background:
    rgba(255, 255, 255, 0.055);
}

input:focus,
select:focus,
textarea:focus {
  border-color:
    rgba(128, 102, 255, 0.8);

  background:
    rgba(128, 102, 255, 0.045);

  box-shadow:
    0 0 0 3px rgba(124, 92, 255, 0.11);
}

select option {
  background: #101624;
}

.error {
  min-height: 18px;

  color: var(--danger);

  font-size: 11px;
}

/* =========================================================
   RESULT CARD
   ========================================================= */

.result-card {
  min-height: 100%;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  position: relative;

  overflow: hidden;
}

.result-card::before {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  background:
    rgba(53, 211, 153, 0.06);

  border-radius: 50%;

  filter: blur(80px);

  pointer-events: none;
}

.result-icon {
  position: relative;
  z-index: 1;

  width: 72px;
  height: 72px;

  display: grid;
  place-items: center;

  border-radius: 22px;

  background:
    rgba(53, 211, 153, 0.09);

  border:
    1px solid rgba(53, 211, 153, 0.2);

  font-size: 32px;

  animation: resultPop 0.45s ease both;
}

@keyframes resultPop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-card h3 {
  position: relative;

  margin: 18px 0 6px;

  font-size: 25px;

  letter-spacing: -0.7px;
}

.result-card p {
  position: relative;

  max-width: 440px;

  color: var(--muted);

  font-size: 13px;
}

/* =========================================================
   OTHER TOOLS
   ========================================================= */

.single-tool {
  display: block;
}

.input-row {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 16px;

  align-items: end;
}

.input-row .btn {
  height: 47px;

  white-space: nowrap;
}

.analysis-box {
  margin-top: 22px;

  padding: 20px;

  border:
    1px solid var(--border);

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.025);
}

.analysis-box h3 {
  margin-top: 0;
}

.metric-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;

  margin-top: 16px;
}

.metric {
  padding: 15px;

  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid rgba(255, 255, 255, 0.045);

  transition: 0.2s ease;
}

.metric:hover {
  transform: translateY(-2px);

  background:
    rgba(255, 255, 255, 0.055);
}

.metric small {
  display: block;

  color: var(--muted);

  font-size: 11px;
}

.metric strong {
  display: block;

  margin-top: 4px;

  font-size: 19px;
}

.ai-badge {
  display: inline-flex;

  align-items: center;

  padding: 5px 9px;

  border-radius: 20px;

  border:
    1px solid rgba(128, 102, 255, 0.45);

  color: #b6adff;

  background:
    rgba(128, 102, 255, 0.08);

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 1px;

  box-shadow:
    0 0 25px rgba(128, 102, 255, 0.08);
}

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

.footer {
  width: min(1180px, calc(100% - 32px));

  margin: 60px auto 30px;

  padding-top: 24px;

  border-top:
    1px solid var(--border);

  display: flex;

  justify-content: space-between;

  gap: 20px;

  color: var(--muted);

  font-size: 12px;
}

.footer div {
  display: flex;

  gap: 15px;

  color: #fff;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline:
    2px solid #a99cff;

  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 950px) {

  .hero {
    grid-template-columns: 1fr;

    gap: 50px;

    min-height: auto;

    padding-top: 60px;
  }

  .hero h1 {
    max-width: 850px;
  }

  .hero-card {
    max-width: 620px;

    width: 100%;

    margin: auto;
  }

  .feature-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

}

/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

  .navbar {
    top: 8px;

    width: calc(100% - 16px);

    margin: 8px auto;
  }

  .navbar nav {
    display: none;
  }

  .section {
    width: calc(100% - 24px);

    padding: 70px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: 45px;

    letter-spacing: -2.5px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row .btn {
    width: 100%;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .form-card,
  .result-card,
  .single-tool {
    padding: 20px;
  }

  .score-ring {
    width: 175px;
    height: 175px;
  }

  .score-ring strong {
    font-size: 40px;
  }

  .footer {
    flex-direction: column;
  }
}

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

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

    scroll-behavior: auto !important;
  }

}