/* =========================================
   MISC Platform - Main Styles
   ========================================= */

:root {
  --primary: #714B67;
  --primary-dark: #5a3a52;
  --accent: #F0A500;
  --accent-blue: #00A9E0;
  --accent-green: #28A745;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #F5F5F5;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ---- Nav ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -1px;
}

.nav-logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(113,75,103,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 8px; }

/* ---- Hero ---- */
.hero {
  background: var(--bg-light);
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(113,75,103,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,169,224,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-tag {
  display: inline-block;
  background: rgba(113,75,103,0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 .highlight-yellow {
  background: linear-gradient(120deg, var(--accent) 0%, #f5c842 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .highlight-blue {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
}

.hero .subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero .subtitle .underline-blue {
  text-decoration: underline;
  text-decoration-color: var(--accent-blue);
  text-underline-offset: 4px;
  color: var(--text-dark);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-pricing {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  position: relative;
}

.hero-pricing::before {
  content: '↗';
  display: inline-block;
  transform: rotate(15deg);
  margin-right: 4px;
  color: var(--primary);
}

/* ---- Event Banner ---- */
.event-banner {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  font-size: 14px;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.event-banner .flag { font-size: 18px; }
.event-banner .event-name { font-weight: 600; color: var(--text-dark); }
.event-banner .event-date { color: var(--text-muted); }
.event-banner .event-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}

.event-banner .event-link:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Apps Grid ---- */
.apps-section {
  background: var(--bg-light);
  padding: 60px 24px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.app-card {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 20px 12px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  display: block;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(113,75,103,0.2);
}

.app-card .app-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.app-card .app-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

.apps-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.apps-footer .tagline {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.apps-footer .tagline::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  opacity: 0.3;
}

.view-all-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.view-all-link:hover { gap: 10px; }

/* ---- Value Section ---- */
.value-section {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-white);
}

.value-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}

.value-section p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 16px;
}

/* ---- Quote ---- */
.quote-block {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  max-width: 480px;
  margin: 40px auto 0;
  text-align: left;
  box-shadow: var(--shadow);
}

.quote-block p { font-size: 15px; font-style: italic; color: var(--text-dark); margin-bottom: 8px; }
.quote-block cite { font-size: 13px; color: var(--text-muted); font-style: normal; }

/* ---- Features ---- */
.features-section { padding: 80px 24px; background: var(--bg-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.22s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(113,75,103,0.25);
}

.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.section-header h2 .highlight-underline {
  text-decoration: underline;
  text-decoration-color: var(--accent-blue);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* ---- Stats ---- */
.stats-section {
  background: var(--primary);
  color: #fff;
  padding: 60px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item h3 { font-size: 42px; font-weight: 800; margin-bottom: 6px; }
.stat-item p { font-size: 14px; opacity: 0.85; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.cta-banner h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.cta-banner p { font-size: 17px; opacity: 0.88; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }

.cta-banner .btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cta-banner .btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-banner .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.cta-banner .btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ---- Footer ---- */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.footer-brand .logo-box {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.footer-brand .logo-text { color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 260px; }

.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---- Color Utilities ---- */
.bg-purple { background: rgba(113,75,103,0.12); }
.bg-blue   { background: rgba(0,169,224,0.12); }
.bg-green  { background: rgba(40,167,69,0.12); }
.bg-orange { background: rgba(240,165,0,0.12); }
.bg-red    { background: rgba(220,53,69,0.12); }
.bg-teal   { background: rgba(32,201,151,0.12); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
