/* ============================================
   TRADE SUCCESS — Main Stylesheet (V3 Design)
   Design: Dark nav + hero, premium feel
   Palette: Navy #0e0e1a / #1a1a2e, Accent #27408F / #4a6cb3
   Font: Inter (Google Fonts)
   ============================================ */

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

:root {
  --navy-deep: #0e0e1a;
  --navy: #1a1a2e;
  --navy-light: #2a2a42;
  --accent: #27408F;
  --accent-light: #4a6cb3;
  --accent-bg: #e8edf5;
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #343a40;
  --text-primary: #1a1a2e;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 16px rgba(39,64,143,0.08);
  --shadow-card-hover: 0 8px 32px rgba(39,64,143,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-secondary); }
.text-accent { color: var(--accent-light); }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; line-height: 1.8; color: var(--text-secondary); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(39,64,143,0.3);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(39,64,143,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

/* --- Navigation (DARK) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  filter: brightness(10);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 0.88rem;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

.nav-cta .btn { padding: 10px 24px; font-size: 0.85rem; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.lang-switch a {
  color: rgba(255,255,255,0.4);
  padding: 2px 6px;
  border-radius: 4px;
}
.lang-switch a.active-lang {
  color: var(--accent-light);
  background: rgba(39,64,143,0.15);
}
.lang-switch span { color: rgba(255,255,255,0.2); }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

/* --- Hero (DARK GRADIENT) --- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 40%, #1e1b4b 100%);
  overflow: hidden;
}

/* Grid pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Ambient glow */
.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(39,64,143,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatGlow 8s ease-in-out infinite;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(39,64,143,0.15);
  color: var(--accent-light);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}

.hero .lead {
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Entrance Cascade --- */
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
.hero h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.hero .lead {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}
.hero-actions {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}
@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section-light { background: var(--white); }
.section-gray { background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-header p {
  margin-top: 16px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

/* --- Cards (Services) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
}

.card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--accent);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .card-icon {
  transform: scale(1.08);
  background: var(--accent);
  color: var(--white);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.93rem;
  line-height: 1.7;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* --- Sectors --- */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sector-item {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.sector-item:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.sector-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--accent);
}

.sector-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- About / Founder --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-photo::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  opacity: 0.2;
  z-index: -1;
}

.about-content h2 { margin-bottom: 18px; }
.about-content .lead { margin-bottom: 20px; }

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Services Detail Page --- */
.service-block {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-block:last-child { border-bottom: none; }

.svc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.svc-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-bg, #e8edf5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.service-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.service-content .lead { margin-bottom: 24px; margin-top: 8px; }

.service-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.service-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}

/* Partner block */
.partner-block {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

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

.partner-block p { font-size: 0.9rem; }
.partner-block a { font-weight: 600; }

/* --- CTA Banner (DARK GRADIENT) --- */
.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy), #1e1b4b);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(39,64,143,0.25) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.1s linear;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129,140,248,0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateY(calc(var(--parallax-y, 0) * -0.6));
  transition: transform 0.1s linear;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: var(--gray-400);
  margin-bottom: 36px;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.cta-banner .btn { position: relative; z-index: 1; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info { padding-top: 20px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info .lead { margin-bottom: 36px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

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

.contact-item h4 {
  font-size: 0.88rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-item p {
  font-size: 0.88rem;
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 500px;
}

.contact-form-wrapper iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--navy-deep);
  color: var(--gray-400);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 34px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(10);
}

.footer-brand p {
  font-size: 0.83rem;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.83rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

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

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}

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

.footer-social a svg { width: 16px; height: 16px; }

/* --- Page Header (inner pages — DARK) --- */
.page-header {
  padding: 180px 0 70px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy), #1e1b4b);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.page-header .lead {
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.page-header .section-label {
  position: relative;
  color: var(--accent-light);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block { padding: 60px 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
  }

  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img { max-width: 260px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-stats { gap: 24px; flex-wrap: wrap; }
  .lang-switch { margin-left: 0; margin-top: 12px; }
}

@media (max-width: 480px) {
  .sectors-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}
