/* ===== CSS Custom Properties ===== */
:root {
  --bg: #F7F6F3;
  --bg-surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #555555;
  --accent-primary: #3B3486;
  --accent-secondary: #22C584;
  --accent-glow: rgba(59, 52, 134, 0.08);
  --border: #E2E0DC;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --gradient-hero: linear-gradient(135deg, #3B3486 0%, #22C584 100%);
  --gradient-btn: linear-gradient(135deg, #3B3486 0%, #5248B5 50%, #22C584 100%);
}

[data-theme="dark"] {
  --bg: #13141A;
  --bg-surface: #1C1E26;
  --text: #EDECEA;
  --text-secondary: #A0A0A0;
  --accent-primary: #8B85E0;
  --accent-secondary: #34D399;
  --accent-glow: rgba(139, 133, 224, 0.1);
  --border: #2E3038;
  --gradient-hero: linear-gradient(135deg, #8B85E0 0%, #34D399 100%);
  --gradient-btn: linear-gradient(135deg, #5248B5 0%, #6C63D0 50%, #2ECC94 100%);
}

/* ===== Utility ===== */
.nowrap {
  white-space: nowrap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-primary);
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

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

.logo-mark {
  display: block;
  flex-shrink: 0;
}

.logo-mark-light {
  mix-blend-mode: multiply;
}

.logo-mark-dark {
  display: none;
}

[data-theme="dark"] .logo-mark-light {
  display: none;
}

[data-theme="dark"] .logo-mark-dark {
  display: block;
  mix-blend-mode: luminosity;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent-primary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: #FFFFFF;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
  display: block;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 80px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 52, 134, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 197, 132, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(139, 133, 224, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(52, 211, 153, 0.07) 0%, transparent 70%);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  max-width: 780px;
  color: var(--text);
  position: relative;
}

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

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 700px;
  margin-top: 28px;
  line-height: 1.5;
  position: relative;
}

.btn-primary {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 40px;
  background: var(--gradient-btn);
  background-size: 200% 100%;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-position 0.4s, box-shadow 0.3s;
  position: relative;
  box-shadow: 0 4px 16px rgba(59, 52, 134, 0.25);
}

.btn-primary:hover {
  background-position: 100% 0;
  color: #FFFFFF;
  box-shadow: 0 6px 24px rgba(59, 52, 134, 0.35);
}

/* ===== Services ===== */
.services {
  padding: 80px 80px;
  background: var(--bg-surface);
  text-align: center;
}

.services h2 {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 48px;
}

.cards-row {
  display: grid;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cards-row-top {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}

.cards-row-bottom {
  grid-template-columns: repeat(3, 1fr);
  max-width: 900px;
}

.card {
  text-align: left;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(59, 52, 134, 0.12);
  border-color: transparent;
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 8px 32px rgba(139, 133, 224, 0.15);
}

.card-icon {
  color: var(--accent-primary);
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Positioning / About ===== */
.positioning {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 120px;
  text-align: center;
  background: linear-gradient(135deg, #1C1E26 0%, #2A1F4E 50%, #1C1E26 100%);
  color: #E8E6E3;
  position: relative;
  overflow: hidden;
}

.positioning::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(34, 197, 132, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.positioning .label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #22C584;
  margin-bottom: 16px;
  position: relative;
}

.positioning h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  max-width: 800px;
  color: #EDECEA;
  position: relative;
}

.positioning p {
  font-size: 17px;
  color: #A0A0A0;
  max-width: 720px;
  margin-top: 24px;
  line-height: 1.7;
  position: relative;
}

/* ===== Contact ===== */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 80px;
  text-align: center;
  background: var(--bg);
}

.contact h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}

.contact-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: 12px;
  line-height: 1.5;
}


#contact-email {
  cursor: pointer;
  margin-top: 20px;
}

.contact-location {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 80px;
  background: #13141A;
  color: #9B9B9B;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #EDECEA;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a {
  font-size: 13px;
  color: #9B9B9B;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #22C584;
}

.footer-divider {
  border: none;
  border-top: 1px solid #2E3038;
  margin: 24px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    padding: 16px 24px;
  }

  .nav {
    gap: 20px;
  }

  .nav a {
    font-size: 14px;
  }

  .hero {
    padding: 80px 24px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-sub {
    font-size: 17px;
    margin-top: 20px;
  }

  .services {
    padding: 60px 24px;
  }

  .services h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .cards-row-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-row-bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .positioning {
    padding: 60px 24px;
  }

  .positioning h2 {
    font-size: 28px;
  }

  .positioning p {
    font-size: 15px;
  }

  .contact {
    padding: 60px 24px;
  }


  .contact h2 {
    font-size: 28px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
  }

  .cards-row-top,
  .cards-row-bottom {
    grid-template-columns: 1fr;
  }

  .nav a:not(:last-child) {
    display: none;
  }
}
