/* ========================================
   OpenSense - Styles (Ondo Finance inspired)
   ======================================== */

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-card: #0d0d0d;
  --bg-light: #ffffff;
  --bg-light-secondary: #f8f8f8;
  --fg-primary: #ffffff;
  --fg-dark: #111111;
  --fg-secondary: #888888;
  --fg-tertiary: #555555;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --accent: #53af6d;
  --accent-secondary: #3d8a54;
  --gradient: linear-gradient(135deg, #53af6d 0%, #3d8a54 50%, #2d6b40 100%);
  --gradient-subtle: linear-gradient(
    135deg,
    rgba(83, 175, 109, 0.15) 0%,
    rgba(61, 138, 84, 0.1) 100%
  );
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-primary);
  color: var(--fg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography
   ======================================== */

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  color: var(--fg-secondary);
  font-size: 1.05rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ========================================
   Layout
   ======================================== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-header p {
  margin-top: 1rem;
  font-size: 1.15rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(83, 175, 109, 0.3);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  color: var(--fg-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
}

.btn-full {
  width: 100%;
}

/* ========================================
   Navigation
   ======================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e0e0e0;
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: #e0e0e0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: #555555;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--fg-dark);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--gradient);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(83, 175, 109, 0.3);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg-dark);
  transition: all var(--transition);
}

/* Mobile Menu Styles */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 1.5rem 2rem;
  gap: 1rem;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-links.mobile-open a {
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

/* ========================================
   Hero Section
   ======================================== */

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

.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--fg-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--fg-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--fg-secondary);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* ========================================
   Stats Banner
   ======================================== */

.stats-banner {
  padding: 5rem 2rem;
  background: var(--bg-light);
  border-top: none;
  border-bottom: none;
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--fg-dark);
  line-height: 1;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg-dark);
}

.stat-item p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666666;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: #e0e0e0;
}

/* ========================================
   Solutions Section
   ======================================== */

.solutions {
  padding: 8rem 2rem;
  background: var(--bg-primary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.solution-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent);
}

.solution-card h3 {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.solution-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-tags span {
  padding: 0.35rem 0.75rem;
  background: rgba(83, 175, 109, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

/* ========================================
   Expertise Section
   ======================================== */

.expertise {
  padding: 8rem 2rem;
  background: var(--bg-light);
}

.expertise .section-label {
  color: var(--accent);
}

.expertise h2,
.expertise .expertise-content h2 {
  color: var(--fg-dark);
}

.expertise p,
.expertise .expertise-content > p {
  color: #555555;
}

.expertise .expertise-list li {
  color: var(--fg-dark);
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.expertise-content h2 {
  margin-bottom: 1.5rem;
}

.expertise-content > p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.expertise-list {
  list-style: none;
  margin-top: 2rem;
}

.expertise-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
}

.check-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.expertise-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

.visual-content {
  position: relative;
  width: 200px;
  height: 200px;
  background: var(--bg-light);
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.visual-icon {
  font-size: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.visual-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg-dark);
}

/* ========================================
   About Section
   ======================================== */

.about {
  padding: 8rem 2rem;
  background: var(--bg-primary);
}

.about h2 {
  color: var(--fg-primary);
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-lead {
  text-align: center;
  font-size: 1.3rem;
  color: var(--fg-secondary);
  margin-bottom: 3rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-feature {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-feature h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.about-feature p {
  font-size: 0.9rem;
}

/* ========================================
   Contact Section
   ======================================== */

.contact {
  padding: 8rem 2rem;
  background: var(--bg-light);
}

.contact .section-label {
  color: var(--accent);
}

.contact h2 {
  color: var(--fg-dark);
}

.contact p,
.contact .contact-info > p {
  color: #555555;
}

.contact .contact-link {
  color: #555555;
}

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

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info > p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition);
}

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

.contact-link svg {
  width: 20px;
  height: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-light-secondary);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--fg-dark);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 175, 109, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   Footer
   ======================================== */

footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-light);
  border-top: 1px solid #e0e0e0;
}

footer .logo-img {
  height: 28px;
}

footer p,
.footer-brand p {
  color: #666666;
}

.footer-col h4 {
  color: var(--fg-dark);
}

.footer-col a {
  color: #666666;
}

.footer-col a:hover {
  color: var(--fg-dark);
}

.footer-bottom p {
  color: #888888;
}

.footer-legal a {
  color: #888888;
}

.footer-legal a:hover {
  color: var(--fg-dark);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--fg-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--fg-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--fg-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--fg-secondary);
}

/* ========================================
   Legal Pages
   ======================================== */

.legal-page {
  padding: 10rem 2rem 6rem;
  background: var(--bg-light);
  min-height: 100vh;
}

.legal-page h1 {
  color: var(--fg-dark);
  margin-bottom: 3rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  color: var(--fg-dark);
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: #555555;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  color: #555555;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-update {
  margin-top: 3rem;
  font-style: italic;
  color: #888888 !important;
}

/* ========================================
   Animations
   ======================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .expertise-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

  .stats-container {
    flex-direction: column;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .footer-main {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ========================================
   Form Success & Error States
   ======================================== */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 300px;
}

.form-success svg {
  margin-bottom: 1.5rem;
}

.form-success h3 {
  color: var(--fg-primary);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--fg-secondary);
}

.form-error {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
