/* =========================================================
   TradingForex.ro
   Global Styles
   Version: 2.0
========================================================= */


/* =========================================================
   RESET
========================================================= */

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


/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {
  --bg: #07090d;
  --bg-soft: #0d1117;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.07);

  --text: #f4f6f8;
  --text-soft: #a9b0ba;
  --text-muted: #717985;

  --accent: #9fd7c2;
  --accent-strong: #c8eee0;
  --accent-rgb: 159, 215, 194;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);

  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.35);

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

  --container: 1180px;
  --transition: 220ms ease;
}


/* =========================================================
   DOCUMENT
========================================================= */

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 72% 10%,
      rgba(var(--accent-rgb), 0.075),
      transparent 30%
    ),
    radial-gradient(
      circle at 15% 45%,
      rgba(55, 110, 170, 0.05),
      transparent 35%
    ),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.12;
  font-weight: 700;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--text-soft);
  line-height: 1.7;
}


/* =========================================================
   LINKS AND MEDIA
========================================================= */

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

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: min(90%, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 120px 0;
}

.section-alt {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012),
      transparent 24%
    ),
    var(--bg-soft);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  width: 100%;
  background: rgba(8, 12, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(8, 12, 17, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color var(--transition),
    opacity var(--transition);
}

.brand:hover {
  color: var(--accent);
}


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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  z-index: -2;
  top: 4%;
  left: 50%;
  width: min(960px, 82vw);
  aspect-ratio: 1;
  transform: translateX(-20%);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(var(--accent-rgb), 0.14) 0%,
      rgba(var(--accent-rgb), 0.05) 34%,
      transparent 70%
    );
  filter: blur(18px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  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: 72px 72px;
  mask-image:
    linear-gradient(
      to bottom,
      transparent,
      rgba(0, 0, 0, 0.6) 25%,
      transparent 90%
    );
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent,
      rgba(0, 0, 0, 0.6) 25%,
      transparent 90%
    );
  opacity: 0.42;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 920px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.2);
}

.hero h1 {
  max-width: 1100px;
  background:
    linear-gradient(
      115deg,
      #ffffff 10%,
      #ffffff 46%,
      #d7e9e2 72%,
      #ffffff 100%
    );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 45px rgba(255, 255, 255, 0.035);
}

.hero-lead {
  max-width: 760px;
  margin-top: 30px;
  color: #dce3ec;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 38px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero-trust span {
  position: relative;
  padding-left: 16px;
}

.hero-trust span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
  transform: translateY(-50%);
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 15px 34px;
  color: #07100d;
  font-weight: 700;
  background: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 15%,
      rgba(255, 255, 255, 0.24) 48%,
      transparent 80%
    );
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.button:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 40px rgba(var(--accent-rgb), 0.2),
    0 0 24px rgba(var(--accent-rgb), 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.button:hover::before {
  transform: translateX(130%);
}

.button:active {
  transform: translateY(-1px);
}

.button-small {
  padding: 12px 22px;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-block: 8px;
  color: #e8edf3;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-bottom: 22px;
}

.section-heading p:last-child {
  max-width: 650px;
}


/* =========================================================
   FEATURE CARDS
========================================================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.014)
    );
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 22px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  width: 42px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.35);
  opacity: 0.7;
}

.feature-card:hover {
  transform: translateY(-7px);
  background: var(--surface-hover);
  border-color: rgba(var(--accent-rgb), 0.38);
  box-shadow:
    0 24px 65px rgba(0, 0, 0, 0.22),
    0 0 28px rgba(var(--accent-rgb), 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card h3 {
  margin-bottom: 14px;
}


/* =========================================================
   DOMAIN OVERVIEW
========================================================= */

.domain-overview {
  max-width: 900px;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.014)
    );
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 24px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.domain-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  transition:
    background var(--transition),
    padding-left var(--transition);
}

.domain-row:last-child {
  border-bottom: 0;
}

.domain-row:hover {
  padding-left: 34px;
  background: rgba(255, 255, 255, 0.022);
}

.domain-row dt {
  color: var(--text-soft);
}

.domain-row dd {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}


/* =========================================================
   PROCESS
========================================================= */

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
}

.process-list li {
  display: flex;
  gap: 22px;
  padding: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.014)
    );
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 22px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.process-list li:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}

.process-list h3 {
  margin-bottom: 10px;
}

.step-number {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.35);
}


/* =========================================================
   OFFER SECTION
========================================================= */

.offer-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.offer-intro {
  position: sticky;
  top: 140px;
}

.offer-intro h2 {
  margin-bottom: 20px;
}

.offer-form {
  position: relative;
  padding: 36px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.038),
      rgba(255, 255, 255, 0.014)
    );
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 24px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offer-form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 8%;
  width: 84%;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(var(--accent-rgb), 0.55),
      transparent
    );
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group label span {
  color: var(--text-soft);
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  outline: none;
  transition:
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

input:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.19);
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.1),
    0 10px 30px rgba(0, 0, 0, 0.1);
}

textarea {
  resize: vertical;
}

.checkbox-group {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.checkbox-group label {
  margin: 0;
  color: var(--text-soft);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin-top: 18px;
  font-size: 0.85rem;
}

.offer-form button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  filter: none;
}


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

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-soft);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}


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

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 2000;
  padding: 12px 18px;
  color: #07100d;
  font-weight: 700;
  background: var(--accent);
  border-radius: 10px;
}

.skip-link:focus {
  top: 20px;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

::selection {
  color: #ffffff;
  background: rgba(var(--accent-rgb), 0.32);
}


/* =========================================================
   JAVASCRIPT ENHANCEMENTS
========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease var(--reveal-delay, 0ms),
    transform 0.75s ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


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

@media (max-width: 900px) {
  .section {
    padding: 90px 0;
  }

  .hero-glow {
    top: 8%;
    left: 42%;
    width: 110vw;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .offer-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 70px;
  }

  .brand {
    font-size: 1rem;
  }

  .button-small {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 100px;
  }

  .hero::after {
    background-size: 48px 48px;
    opacity: 0.25;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
    letter-spacing: -0.04em;
    word-break: break-word;
  }

  .hero-lead {
    font-size: 1.15rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
  }

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

  .domain-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .domain-row dd {
    text-align: left;
  }

  .domain-row:hover {
    padding-left: 28px;
  }

  .offer-form {
    padding: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}


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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
