/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #6C5CE7;
  --primary-light: #a29bfe;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --accent2: #fd79a8;

  --bg: #f0f2f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text: #1a1a2e;
  --text-secondary: #636e8a;
  --text-muted: #a0a8c0;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.15);
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-hero: linear-gradient(135deg, #6C5CE7 0%, #a29bfe 50%, #00cec9 100%);
}

[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-secondary: #161628;
  --bg-card: #1c1c36;
  --bg-glass: rgba(22, 22, 40, 0.9);
  --text: #eaeaf5;
  --text-secondary: #9d9dbd;
  --text-muted: #6b6b8d;
  --border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 20px 60px rgba(108, 92, 231, 0.25);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER / NAV ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  transition: color var(--transition);
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-hero);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
}

/* Desktop Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dark-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}

.dark-toggle:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 16px 20px;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.mobile-nav a i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 130%;
  height: 180%;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(108, 92, 231, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(0, 206, 201, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(253, 121, 168, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: scale(1.03) rotate(1deg);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  position: relative;
}

[data-theme="dark"] .hero-badge {
  background: rgba(108, 92, 231, 0.15);
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 18px;
  position: relative;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  line-height: 1.7;
}

/* ===== TOOLS GRID ===== */
.tools-section {
  padding: 20px 0 80px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-secondary);
  margin-top: 8px;
  font-size: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.04), rgba(0, 206, 201, 0.04));
  opacity: 0;
  transition: opacity var(--transition);
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 92, 231, 0.2);
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.tool-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.tool-card .arrow-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}

.tool-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

.tool-card-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.tool-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.tool-card-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.tool-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

[data-theme="dark"] .badge-count {
  background: rgba(108, 92, 231, 0.18);
}

/* Card-specific gradients */
.icon-pdf {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  box-shadow: 0 4px 14px rgba(238, 90, 36, 0.3);
}

.icon-doc {
  background: linear-gradient(135deg, #6C5CE7, #a29bfe);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
}

.icon-omni {
  background: linear-gradient(135deg, #00b894, #00cec9);
  box-shadow: 0 4px 14px rgba(0, 206, 201, 0.3);
}

.icon-task {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  box-shadow: 0 4px 14px rgba(232, 67, 147, 0.3);
}

.icon-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.icon-student {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  box-shadow: 0 4px 14px rgba(9, 132, 227, 0.3);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 14px;
}

[data-theme="dark"] .feature-icon {
  background: rgba(108, 92, 231, 0.15);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* ===== FOOTER ===== */
.main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 10px;
  max-width: 300px;
  line-height: 1.6;
}

.main-footer h4 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.main-footer ul li {
  margin-bottom: 8px;
}

.main-footer ul a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.main-footer ul a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-card {
    padding: 24px 22px 22px;
  }

  .tool-card-icon {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    border-radius: 12px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .tools-section {
    padding: 10px 0 60px;
  }

  .features-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    height: 56px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .hero {
    padding: 100px 0 30px;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    padding: 20px 18px 18px;
    gap: 12px;
  }

  .tool-card-content h3 {
    font-size: 1.05rem;
  }

  .tool-card-content p {
    font-size: 0.82rem;
  }

  .mobile-nav {
    top: 56px;
  }
}

/* ===== ANIMATIONS ===== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.tools-grid .tool-card:nth-child(1) {
  transition-delay: 0.05s;
}

.tools-grid .tool-card:nth-child(2) {
  transition-delay: 0.1s;
}

.tools-grid .tool-card:nth-child(3) {
  transition-delay: 0.15s;
}

.tools-grid .tool-card:nth-child(4) {
  transition-delay: 0.2s;
}

.tools-grid .tool-card:nth-child(5) {
  transition-delay: 0.25s;
}

.tools-grid .tool-card:nth-child(6) {
  transition-delay: 0.3s;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}