/* 
  CorporateFX - Main Stylesheet
  Replaced Tailwind CSS with Vanilla CSS
*/

:root {
  /* Colors */
  --brand-950: #020617;
  --brand-900: #0f172a;
  --brand-800: #1e293b;
  --brand-700: #0ea5e9;
  --brand-600: #0284c7;
  --brand-500: #0ea5e9;
  --brand-400: #38bdf8;
  --brand-accent: #d97706;

  --white: #ffffff;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --rose-400: #fb7185;
  --rose-950: #4c0519;

  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Spacing */
  --container-width: 1280px;
  /* max-w-7xl */
  --header-height: 80px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--brand-950);
  color: #f8fafc;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html {
  scroll-behavior: smooth;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

/* --- Utilities & Helpers --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.hidden {
  display: none !important;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.flex-col {
  flex-direction: column;
}

.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.gradient-text {
  background: linear-gradient(to right, var(--brand-400), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-950);
}

::-webkit-scrollbar-thumb {
  background: var(--brand-800);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-700);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  padding: 1.5rem 0;
  transition: all 0.5s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo-icon-wrapper {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: nowrap;
}

.logo:hover .logo-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
}

.logo-text span {
  color: var(--brand-500);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-400);
  transition: color 0.3s;
  background: none;
  border: none;
  letter-spacing: 0.025em;
}

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

.btn-partner {
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
  color: var(--brand-950);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.btn-partner:hover {
  background: var(--slate-200);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--white);
  background: transparent;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--brand-950);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 1rem;
}

.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0;
  color: var(--slate-300);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
}

.mobile-menu button:hover {
  color: var(--white);
}

.mobile-menu .btn-mobile-partner {
  margin-top: 1rem;
  text-align: center;
  background: var(--white);
  color: var(--brand-950);
  border-radius: 0.5rem;
  border: none;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  background: var(--brand-950);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--brand-950), var(--brand-900), var(--brand-950));
  opacity: 0.9;
}

.orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(128px);
  opacity: 0.1;
  mix-blend-mode: screen;
  animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.orb-primary {
  top: 25%;
  left: 25%;
  background: var(--brand-600);
}

.orb-secondary {
  bottom: 25%;
  right: 25%;
  background: #4f46e5;
  animation-delay: 2s;
}

.hero-grid-mask {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero-text-col {
  animation: fadeInUp 0.8s ease-out forwards;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #7dd3fc;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.ping-container {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.ping-dot {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  height: 0.5rem;
  width: 0.5rem;
  background: #0ea5e9;
}

.ping-animate {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  background: #38bdf8;
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-300);
  line-height: 1.625;
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

.btn-primary {
  padding: 1rem 2rem;
  background: var(--white);
  color: var(--brand-900);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: var(--slate-100);
}

.btn-primary svg {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

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

.btn-secondary {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.trust-indicators {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 1.5rem;
  color: var(--slate-400);
  font-size: 0.875rem;
}

.trust-item {
  display: flex;
  align-items: center;
}

.trust-item svg {
  color: var(--brand-500);
  margin-right: 0.5rem;
}

/* --- Abstract UI --- */
.abstract-ui-wrapper {
  display: none;
  position: relative;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

@media (min-width: 1024px) {
  .abstract-ui-wrapper {
    display: block;
  }
}

.abstract-card {
  position: relative;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: rotate(1deg);
  transition: transform 0.5s;
}

.abstract-card:hover {
  transform: rotate(0deg);
}

.ui-glow {
  position: absolute;
  top: -2.5rem;
  right: -2.5rem;
  width: 6rem;
  height: 6rem;
  background: var(--brand-600);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
}

.ui-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ui-stat-box {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-chart {
  height: 8rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, rgba(2, 132, 199, 0.2), rgba(147, 51, 234, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  gap: 0.5rem;
}

.chart-bar {
  flex: 1;
  background: rgba(14, 165, 233, 0.5);
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--slate-500);
  animation: bounce 1s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, -25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translate(-50%, 0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 0.1;
  }

  50% {
    opacity: 0.2;
  }
}

/* --- Services Section --- */
.section {
  padding: 6rem 0;
  background: var(--brand-950);
  position: relative;
}

.section-header {
  text-center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-tag {
  color: var(--brand-400);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-desc {
  font-size: 1.125rem;
  color: var(--slate-400);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(14, 165, 233, 0.1);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(15, 23, 42, 0.5);
  color: var(--brand-400);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: all 0.3s;
}

.service-card:hover .service-icon {
  background: var(--brand-500);
  color: var(--white);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.service-text {
  color: var(--slate-400);
  line-height: 1.625;
  transition: color 0.3s;
}

.service-card:hover .service-text {
  color: var(--slate-300);
}

/* --- Security Section --- */
.security-section {
  padding: 6rem 0;
  background-color: rgb(15 23 42);
  position: relative;
  overflow: hidden;
}

.security-content {
  position: relative;
  z-index: 10;
  display: grid;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .security-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.security-item {
  display: flex;
}

.security-icon-box {
  flex-shrink: 0;
  margin-right: 1rem;
}

.icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-400);
}

.security-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
}

.security-desc {
  margin-top: 0.25rem;
  color: var(--slate-400);
  line-height: 1.625;
}

.security-image-wrapper {
  position: relative;
}

.security-img-container {
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.security-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.7s;
}

.security-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.image-overlay-card {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  pointer-events: none;
}

.glass-caption {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.75rem;
  width: 100%;
}

/* --- Contact Section --- */
.contact-section {
  padding: 6rem 0;
  background: calc(rgb(15 23 42 / var(--tw-bg-opacity, 1)));
  color: var(--white);
  position: relative;
}

.contact-card {
  max-width: 56rem;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(16px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .contact-card {
    padding: 3rem;
  }
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--slate-700);
  border-radius: 0.5rem;
  color: var(--white);
  outline: none;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--brand-500);
}

.btn-submit {
  width: 100%;
  background: var(--brand-600);
  color: var(--white);
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
  background: var(--brand-500);
  box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.success-message {
  text-align: center;
  padding: 3rem 0;
  animation: fadeInUp 0.5s ease-out;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--emerald-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--white);
}

.btn-reset {
  margin-top: 2rem;
  background: none;
  color: var(--brand-400);
  text-decoration: underline;
  border: none;
}

.btn-reset:hover {
  color: var(--brand-400);
}

/* --- Footer --- */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 3rem 0;
  border-top: 1px solid var(--slate-900);
  margin-bottom: 3rem;
  /* Space for ticker */
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer li {
  list-style: none;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

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

.footer-bottom {
  border-top: 1px solid var(--slate-900);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* --- Live Ticker --- */
.live-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  height: 3rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.ticker-loading,
.ticker-error {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.ticker-error {
  color: var(--rose-400);
  background: rgba(76, 5, 25, 0.3);
  height: 100%;
}

.ticker-track {
  display: flex;
  width: 200%;
  animation: scroll 30s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Scroll first half */
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 2rem;
  white-space: nowrap;
}

.rate-up {
  color: var(--emerald-400);
}

.rate-down {
  color: var(--rose-400);
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}