/* ANJ Trading – Modern Professional Design */
:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

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

.brand img {
  height: 120px;
  width: auto;
}

.brand .name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
}

.menu a:not(.cta):hover {
  background: var(--bg-secondary);
  color: var(--accent);
}

.menu a.cta {
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.menu a.cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: var(--bg-secondary);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}

.hero .eyebrow {
  display: inline-block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  animation: slideInDown 0.6s ease;
}

@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 0.6s ease 0.1s backwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.7;
  animation: slideInUp 0.6s ease 0.2s backwards;
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  animation: slideInUp 0.6s ease 0.3s backwards;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.button:not(.primary) {
  background: white;
  color: var(--primary);
  border-color: var(--border);
}

.button:not(.primary):hover {
  border-color: var(--primary);
  background: var(--bg-secondary);
}

.hero .badges {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: slideInUp 0.6s ease 0.4s backwards;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 48px;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--primary);
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.3);
}

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

.card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* KPIs */
.kpis {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.kpi {
  flex: 1;
  min-width: 180px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.kpi b {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.kpi .small {
  font-size: 0.9rem;
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  margin-top: 6px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: white;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer .brand {
  color: white;
}

.footer .brand img {
  /* Keep original logo colors in footer */
  opacity: 0.95;
}

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

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: white;
}

.footer .small {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer .kpi {
  background: var(--primary-light);
  border-color: rgba(255, 255, 255, 0.1);
}

hr.sep {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 32px 0;
}

.small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Animations on Scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    height: 64px;
  }

  .menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 16px;
    gap: 6px;
    z-index: 1001;
  }

  .menu.menu-open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 60px 0 50px;
  }

  .hero .container[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  .hero .container > div:last-child {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
  
  .footer .cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .kpis {
    flex-direction: column;
  }
  
  .actions {
    flex-direction: column;
    width: 100%;
  }
  
  .button {
    width: 100%;
    justify-content: center;
  }
}
