/* ═══════════════════════════════════════════
   PEA Hackathon 2026 — Global Styles
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --pea-purple: #5B2D8E;
  --pea-purple-dark: #3A1A5E;
  --pea-purple-deep: #2A0E45;
  --pea-purple-light: #8B5DC0;
  --pea-violet: #A87BD4;
  --pea-lavender: #D4BEF0;
  --pea-cream: #F8F4FC;
  --pea-white: #FFFFFF;
  --pea-gold: #F0C040;
  --pea-gray: #6B6B7B;
  --pea-gray-light: #9B9BAB;
  --text-dark: #1A0A2E;

  --font-thai: 'IBM Plex Sans Thai', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(91, 45, 142, 0.06);
  --shadow-md: 0 4px 20px rgba(91, 45, 142, 0.1);
  --shadow-lg: 0 8px 40px rgba(91, 45, 142, 0.15);

  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-thai);
  color: var(--text-dark);
  background: var(--pea-cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

.overline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--pea-purple-light);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-weight: 900;
  font-size: clamp(36px, 6vw, 64px);
  color: var(--pea-purple-dark);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title span {
  color: #5a2d8e;
}

.section-subtitle {
  font-size: 17px;
  color: var(--pea-gray);
  max-width: 520px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #7c4dba;
  color: #fff;
}

.btn-primary:hover {
  background: #5a2d8e;
}

.btn-outline {
  background: transparent;
  color: #7c4dba;
  border: 2px solid #7c4dba;
}

.btn-outline:hover {
  background: #7c4dba;
  color: #fff;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(248, 244, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(91, 45, 142, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--pea-purple-dark);
}

.nav-logo span {
  color: var(--pea-purple-light);
}

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

.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--pea-gray);
  transition: color var(--transition);
  letter-spacing: 0.5px;
}

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

.nav-cta {
  padding: 10px 24px !important;
  font-size: 13px !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--pea-purple-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Footer ── */
.footer {
  background: var(--pea-purple-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--pea-white);
}

.footer-logo span {
  color: var(--pea-violet);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--pea-white);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid #e0d3ef;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* ── Animations (minimal) ── */
.animate-fade-up { }
.delay-1 { }
.delay-2 { }
.delay-3 { }
.delay-4 { }
.delay-5 { }

/* ── Responsive ── */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--pea-cream);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(91, 45, 142, 0.1);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
