/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --color-bg: #fafcff;
  --color-blue: #1e77f9;
  --color-blue-light: #5fa0ff;
  --color-navy: #002458;
  --color-navy-mid: #264b83;
  --color-dark: #13161d;
  --color-text: #2b2c34;
  --color-muted: #727e95;
  --color-border: #e4e8ef;
  --color-border-light: #e6eaf0;
  --color-card: #fcfcfc;
  --color-card-blue: rgba(216, 227, 255, 0.2);
  --color-footer-bg: #131318;
  --color-footer-form: #1e1e23;
  --color-footer-border: #2c2c2f;
  --color-white: #fdfdfd;

  /* Typography */
  --font-primary: 'Geist', system-ui, sans-serif;
  --font-secondary: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-gap: 60px;
  --content-width: 1200px;
  --page-width: 1600px;
  --nav-padding: 10px 200px;
  --section-padding: 0 200px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
}

body {
  background-color: var(--color-bg);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--color-text);
  overflow-x: hidden;
}

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

img {
  display: block;
}

svg {
  display: block;
}

button {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: transparent;
}

/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&display=swap');

/* ===== LAYOUT ===== */
.page-wrapper {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  background-color: var(--color-bg);
  overflow: hidden;
}

.content-width {
  width: var(--content-width);
  margin: 0 auto;
}

/* ===== NAV ===== */
.nav {
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--nav-padding);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg);
  transition: box-shadow var(--transition-base);
}

body {
  padding-top: 61px;
}

.nav.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  margin-right: auto;
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: 66px;
  height: 28px;
}

.nav-brand-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-text);
  line-height: 22px;
  margin-left: 16px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  margin-right: auto;
  align-self: stretch;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-muted);
  line-height: 22px;
  white-space: nowrap;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.btn-contact {
  border-radius: 32px;
  background-color: var(--color-blue);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: #fff;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.btn-contact:hover {
  background-color: #1565d8;
  transform: translateY(-1px);
}

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

/* ===== MAIN CONTENT ===== */
.main {
  display: flex;
  flex-direction: column;
  row-gap: var(--section-gap);
  align-items: center;
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding-top: 60px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  row-gap: 60px;
  align-items: center;
  width: var(--content-width);
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  align-items: center;
  width: 100%;
}

.hero-logo-row {
  display: flex;
  flex-direction: column;
  row-gap: 3px;
  align-items: center;
  width: 100%;
}

.hero-tagline {
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.1px;
  color: var(--color-navy);
  line-height: 20px;
  text-align: center;
}

.hero-headline-block {
  display: flex;
  flex-direction: column;
  row-gap: 3px;
  align-items: flex-start;
  width: 100%;
}

.hero-headline {
  font-size: 64px;
  font-weight: 600;
  color: var(--color-dark);
  text-align: center;
  width: 100%;
  line-height: 1.05;
}

.hero-subheadline {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--color-navy);
  line-height: 32px;
  text-align: center;
  width: 100%;
}

/* Stats Grid */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 32px;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 60px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}

.stat-value {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-blue);
  line-height: 1.1;
}

/* Hide the <br> at desktop; shown at ≤768px */
.stat-value br { display: none; }

.stat-label {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.4px;
  color: var(--color-text);
  line-height: 22px;
}

/* ===== THE FLY API SUITE SECTION ===== */
.fly-api-suite {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.section-header {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  align-items: flex-start;
  width: 100%;
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--color-navy);
  line-height: 1.1;
}

.section-subtitle {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--color-text);
  line-height: 22px;
}

/* API Product Cards — interleaved layout: cards row 1, panels row 2 */
.api-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  width: 100%;
}

/* Explicit column+row for each card (child 1,3,5,7 because panels interleaved) */
.api-layout > *:nth-child(1) { grid-row: 1; grid-column: 1; }
.api-layout > *:nth-child(3) { grid-row: 1; grid-column: 2; }
.api-layout > *:nth-child(5) { grid-row: 1; grid-column: 3; }
.api-layout > *:nth-child(7) { grid-row: 1; grid-column: 4; }

/* All panels go to row 2 spanning full width */
.api-layout > *:nth-child(even) { grid-row: 2; grid-column: 1 / -1; }

.api-card {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background-color: var(--color-card);
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  padding: 10px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.api-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 119, 249, 0.12);
}


.api-card.active {
  border-color: var(--color-blue);
  background-color: var(--color-card-blue);
}

.api-card-header {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.api-card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-mid);
}
.api-card-icon path,
.api-card-icon rect,
.api-card-icon circle {
  fill: var(--color-navy-mid);
}

.api-card-name {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-navy-mid);
  line-height: 22px;
}

.api-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 20px;
}

.api-card-desc strong {
  font-weight: 500;
}

/* API Content Panel */
.api-content-panel {
  border: 1px solid var(--color-border-light);
  border-radius: 5px;
  background-color: var(--color-card);
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  padding: 10px;
}

.api-panel-image {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  width: 300px;
  flex-shrink: 0;
}

.api-panel-image img {
  width: 100%;
  height: auto;
  display: block;
}

.api-panel-content {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  align-items: flex-start;
  width: 100%;
  flex-grow: 1;
}

.api-panel-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 20px;
}

.api-panel-text strong {
  font-weight: 500;
}

.btn-widget {
  border: 1px solid var(--color-blue);
  border-radius: 3px;
  background-color: var(--color-blue);
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2) inset;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #fff;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.btn-widget:hover {
  background-color: #1565d8;
  transform: translateY(-1px);
}

/* Tab panels (API suite + TipRanks) */
.tab-panel {
  display: none !important;
}
.tab-panel.active {
  display: flex !important;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

/* tr-tab-panel no longer used; accordion handles show/hide */

/* ===== COMBINED WHAT IS + WHY CHOOSE WRAPPER ===== */
.what-why-wrapper {
  border: 2px solid var(--color-blue);
  border-radius: 10px;
  background-color: var(--color-card-blue);
  display: flex;
  flex-direction: column;
  row-gap: 48px;
  align-items: flex-start;
  width: var(--content-width);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.what-why-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(30, 119, 249, 0.2);
}

/* ===== WHAT IS THE FLY SECTION ===== */
.what-is-fly {
  display: flex;
  flex-direction: column;
  row-gap: 0;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

.what-is-fly-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 2px;
  width: 1195px;
  height: 860px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.what-is-fly-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.what-is-fly-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 16px;
}

.what-is-fly-text {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--color-text);
  line-height: 26px;
  width: 100%;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  align-items: flex-start;
  width: 100%;
}

.why-choose-intro {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  width: 100%;
}

.why-choose-desc {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--color-text);
  line-height: 26px;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.why-card {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  align-items: flex-start;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.04));
  transition: transform var(--transition-base);
}

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

.why-card-header {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  align-items: flex-start;
  width: 100%;
}

.why-card-title-row {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
}

.why-card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card-icon path,
.why-card-icon rect,
.why-card-icon circle,
.why-card-icon ellipse {
  fill: var(--color-navy-mid);
}

.why-card-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--color-navy-mid);
  line-height: 26px;
}

.why-card-text {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--color-text);
  line-height: 22px;
}

/* ===== TIPRANKS SECTION ===== */
.tipranks-section {
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  align-items: flex-start;
  width: var(--content-width);
}

.tipranks-header {
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  width: 100%;
}

.tipranks-desc {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: var(--color-text);
  line-height: 22px;
  width: 100%;
}

/* TipRanks Tab Card Grid — matches .api-cards exactly */
.tr-tab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.tr-tab-card {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background-color: var(--color-card);
  display: flex;
  flex-direction: column;
  row-gap: 6px;
  align-items: flex-start;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.04));
  padding: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.tr-tab-card:hover {
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 119, 249, 0.12);
}
.tr-tab-card.active {
  border-color: var(--color-blue);
  background-color: var(--color-card-blue);
}

.tr-tab-card-header {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.tr-tab-card-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: hidden;
}
.tr-tab-card-icon path,
.tr-tab-card-icon rect,
.tr-tab-card-icon circle,
.tr-tab-card-icon polygon,
.tr-tab-card-icon ellipse {
  fill: var(--color-navy-mid);
}

.tr-tab-card-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--color-navy-mid);
  line-height: 22px;
}

.tr-tab-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 20px;
}

.tr-tab-card-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 20px;
  margin-top: auto;
}
.tr-tab-card-count strong {
  font-weight: 500;
}

/* TipRanks Tab Panels */
.tr-panel {
  display: none;
  width: 100%;
}
.tr-panel.active {
  display: block;
}

/* Product Accordion */
.tr-product-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: 5px;
  overflow: hidden;
}

.tr-product-item {
  border-bottom: 1px solid var(--color-border);
}
.tr-product-item:last-child {
  border-bottom: none;
}

.tr-product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background-color: var(--color-card);
  transition: border-color 180ms ease, background-color 180ms ease;
}
.tr-product-header:hover {
  background-color: #f8faff;
}
.tr-product-item.open > .tr-product-header {
  background-color: var(--color-card-blue);
  border-bottom: 1px solid var(--color-border);
}

.tr-product-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--color-navy-mid);
  flex: 1;
  line-height: 20px;
}

.tr-product-chevron {
  flex-shrink: 0;
  color: #5a6473;
  transition: transform 200ms ease;
}
.tr-product-item.open .tr-product-chevron {
  transform: rotate(180deg);
}

/* Product body: image LEFT, content RIGHT — mirrors .api-content-panel */
.tr-product-body {
  display: none;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  padding: 10px;
  background-color: var(--color-card);
}
.tr-product-item.open .tr-product-body {
  display: flex;
}

.tr-product-body-image {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  width: 300px;
  flex-shrink: 0;
}
.tr-product-body-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tr-product-body-content {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.tipranks-panel-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 20px;
}

.tipranks-stats-row {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tipranks-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tipranks-stat-value {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  color: var(--color-navy);
}

.tipranks-stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 18px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  width: var(--content-width);
  border: 2px solid var(--color-blue);
  border-radius: 10px;
  background-color: rgba(216, 227, 255, 0.2);
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: stretch;
  padding: 32px 0 32px 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 654px;
  max-width: 654px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 32px;
}

.cta-content .cta-title,
.cta-content .cta-text {
  margin: 0;
}

.cta-image {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 460px;
  z-index: 1;
  pointer-events: none;
}
.cta-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

.cta-title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -1.2px;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  color: #2b2c34;
  line-height: 22px;
}

.btn-docs {
  border: 1px solid var(--color-blue);
  border-radius: 3px;
  background-color: var(--color-blue);
  display: inline-flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  width: fit-content;
  box-shadow: 0px 1px 0px rgba(255, 255, 255, 0.2) inset;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #fff;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.btn-docs:hover {
  background-color: #1565d8;
  transform: translateY(-1px);
}

/* ===== CONTACT FORM / FOOTER ===== */
.contact-section {
  background-color: var(--color-footer-bg);
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  /* Centers content at max 1200px on any screen width */
  padding: 60px max(32px, calc((100% - 1200px) / 2));
}

.contact-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--color-white);
  line-height: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.form-field {
  border: 1px solid var(--color-footer-border);
  border-radius: 3px;
  background-color: var(--color-footer-form);
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
  height: 28px;
  flex-grow: 1;
  flex-basis: 0;
  padding: 0 6px;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.04));
  transition: border-color var(--transition-fast);
}

.form-field:focus-within {
  border-color: var(--color-blue);
}

.form-field input {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 20px;
  width: 100%;
}

.form-field input {
  color: #fdfdfd;
}
.form-field input::placeholder {
  color: #BFC6D2;
}

/* Required-field label overlay — lets the * show in red while the rest stays placeholder-gray */
.form-field,
.form-textarea {
  position: relative;
}

.field-hint {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: #BFC6D2;
  pointer-events: none;
}

.field-hint--area {
  top: 6px;
  transform: none;
}

.field-hint .req {
  color: #FF5C5C;
}

/* Hide the overlay once the user starts typing */
.form-field input:not(:placeholder-shown) + .field-hint,
.form-textarea textarea:not(:placeholder-shown) + .field-hint {
  display: none;
}

.form-textarea {
  border: 1px solid var(--color-footer-border);
  border-radius: 3px;
  background-color: var(--color-footer-form);
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: flex-start;
  height: 150px;
  width: 100%;
  padding: 6px;
  filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.04));
  transition: border-color var(--transition-fast);
}

.form-textarea:focus-within {
  border-color: var(--color-blue);
}

.form-textarea textarea {
  font-size: 13px;
  font-weight: 400;
  color: #fdfdfd;
  line-height: 20px;
  width: 100%;
  height: 100%;
  resize: none;
  background: transparent;
}

.form-textarea textarea::placeholder {
  color: #BFC6D2;
}

.contact-footer-row {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: end;
  width: 100%;
}

.contact-footer-row .btn-submit {
  justify-self: end;
}

.contact-brand {
  width: 302px;
  height: 76px;
  position: relative;
  filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.35));
  margin-right: auto;
  flex-shrink: 0;
}

.contact-brand-box {
  border: 1px solid var(--color-footer-border);
  border-radius: 3px;
  background-color: #26262d;
  position: absolute;
  inset: 0;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.08);
}

.btn-submit {
  border: 1px solid var(--color-blue-light);
  border-radius: 3px;
  background-color: var(--color-blue-light);
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 154px;
  height: 36px;
  padding: 0 10px;
  box-shadow: 0px -1px 0px rgba(255, 255, 255, 0.12) inset;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #1C1C22;
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #4a8fe8;
  transform: translateY(-1px);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1.visible { transition-delay: 0.08s; }
.fade-in-delay-2.visible { transition-delay: 0.16s; }
.fade-in-delay-3.visible { transition-delay: 0.24s; }
.fade-in-delay-4.visible { transition-delay: 0.32s; }

/* ===== TIPRANKS SVG BG ===== */
.tipranks-panel-svg-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

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

/* 1280px — content becomes fluid; prevents overflow between 1025–1199px viewport */
@media (max-width: 1280px) {
  :root {
    --nav-padding: 10px 32px;
  }

  .hero-inner,
  .content-width {
    width: 100%;
    padding: 0 32px;
  }

  .what-why-wrapper {
    width: calc(100% - 64px);
  }

  .tipranks-section {
    width: calc(100% - 64px);
    padding: 0;
  }

  .cta-section {
    width: calc(100% - 64px);
  }

  .contact-section {
    padding: 60px 32px;
  }
}

/* 1024px — content becomes fluid with 32px horizontal padding */
@media (max-width: 1024px) {
  :root {
    --nav-padding: 10px 32px;
  }

  .hero-inner,
  .content-width {
    width: 100%;
    padding: 0 32px;
  }

  .what-why-wrapper {
    width: calc(100% - 64px);
  }

  .tipranks-section {
    width: calc(100% - 64px);
    padding: 0;
  }

  .cta-section {
    width: calc(100% - 64px);
  }

  /* Percentage-based so image never overlaps content at any width in this range */
  .cta-content {
    width: 52%;
    max-width: 480px;
  }

  .cta-image {
    width: 44%;
    max-width: 460px;
    right: 0;
  }

  .contact-section {
    padding: 60px 32px;
  }
}

/* 768px — major responsive layout begins */
@media (max-width: 768px) {
  :root {
    --nav-padding: 10px 16px;
    --section-gap: 32px;
  }

  /* Nav links hidden at 768px and below */
  .nav-links {
    display: none;
  }

  /* Content sections — 16px horizontal padding */
  .hero-inner,
  .content-width {
    width: 100%;
    padding: 0 16px;
  }

  .what-why-wrapper {
    width: calc(100% - 32px);
    padding: 16px;
  }

  .tipranks-section {
    width: calc(100% - 32px);
    padding: 0;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
  }

  .cta-section {
    width: calc(100% - 32px);
  }

  .contact-section {
    padding: 32px 16px;
  }

  /* Hero top padding reduced */
  .hero {
    padding-top: 32px;
  }


  /* Hero section inner gap */
  .hero-inner {
    row-gap: 32px;
  }

  /* Hero typography */
  .hero-headline {
    font-size: 48px;
  }

  .hero-subheadline {
    font-size: 22px;
    letter-spacing: -0.66px;
  }

  /* Hero stats — keep 2 columns, reduce number size and spacing */
  .hero-stats {
    row-gap: 16px;
    padding-bottom: 32px;
  }

  .stat-value {
    font-size: 32px;
  }



  /* Section titles — all headings at 32px */
  .section-title {
    font-size: 32px;
    letter-spacing: -0.96px;
  }

  .what-is-fly-title {
    font-size: 32px;
    letter-spacing: -0.96px;
    margin-bottom: 6px;
  }

  .why-choose-intro .section-title {
    font-size: 32px;
    letter-spacing: -0.96px;
  }

  .cta-title {
    font-size: 32px;
    letter-spacing: -0.96px;
  }

  /* What is The Fly + Why Choose — body text 15px */
  .what-is-fly-text {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.15px;
  }

  .why-choose-desc,
  .why-card-text {
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.15px;
  }

  /* Why Choose card titles — 17px */
  .why-card-title {
    font-size: 17px;
  }

  /* Why Choose grid — 2 columns with 16px gap */
  .why-choose-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Fly API Suite — inline accordion (single column, card then panel) */
  .api-layout {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }

  /* Reset explicit nth-child placements so items stack in document order */
  .api-layout > *:nth-child(1),
  .api-layout > *:nth-child(3),
  .api-layout > *:nth-child(5),
  .api-layout > *:nth-child(7),
  .api-layout > *:nth-child(even) {
    grid-row: auto;
    grid-column: auto;
  }

  /* API panel — stack image above content */
  .api-content-panel {
    flex-direction: column;
  }

  /* Override the base .tab-panel.active row direction */
  .tab-panel.active {
    flex-direction: column;
  }

  .api-panel-image {
    width: 100%;
  }

  /* TipRanks tab grid — single column */
  .tr-tab-grid {
    grid-template-columns: 1fr;
  }

  /* TipRanks product body — stack vertically */
  .tr-product-body {
    flex-direction: column;
  }

  .tr-product-body-image {
    width: 100%;
  }

  /* CTA section — stack text above image */
  .cta-section {
    flex-direction: column;
    padding: 16px;
    overflow: visible;
  }

  .cta-content {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }

  .cta-image {
    position: static;
    width: 100%;
    margin-top: 32px;
    max-height: 180px;
    overflow: hidden;
    border-radius: 8px;
  }

  /* Image has 16px padding from section on all sides → round all corners */
  .cta-image img {
    border-radius: 8px;
  }
}

/* 560px — additional mobile-only changes on top of 768px */
@media (max-width: 560px) {

  /* Hero stats — single column */
  .hero-stats {
    grid-template-columns: 1fr;
  }

  /* Why Choose grid — single column */
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  /* Contact form row 2 (Company Name + Email) — stacked vertically */
  .contact-form .form-row:nth-child(2) {
    flex-direction: column;
  }

  /* Contact footer row — stacked and centered */
  .contact-footer-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .contact-footer-row .btn-submit {
    width: 154px;
    justify-content: center;
    justify-self: center;
  }
}
