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

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --accent: #2eaadc;
  --accent-light: #5cc4eb;
  --warm: #f5a623;
  --warm-dark: #e0911a;
  --text: #333333;
  --text-light: #666666;
  --bg: #ffffff;
  --bg-light: #f7f9fc;
  --bg-alt: #eef3f8;
  --border: #dde4ec;
  --success: #27ae60;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26, 58, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 58, 92, 0.12);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

img, svg {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-light);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header p {
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1.1rem;
}

/* ===== Header / Nav ===== */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo svg {
  width: 40px;
  height: 40px;
}

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

.nav__list {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(46, 170, 220, 0.15);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(245, 166, 35, 0.1);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero__content {
  flex: 1;
}

.hero__content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: 1.3rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero__graphic {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero__graphic svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

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

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

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

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

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

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

/* ===== Product Cards ===== */
.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.product-card__image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card__image--law {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 100%);
}

.product-card__image--study {
  background: linear-gradient(135deg, #2eaadc 0%, #1a8ab5 100%);
}

.product-card__image svg {
  width: 100px;
  height: 100px;
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--warm);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-card__body {
  padding: 1.75rem;
}

.product-card__body h3 {
  margin-bottom: 0.5rem;
}

.product-card__body p {
  margin-bottom: 1.25rem;
}

.product-card__platforms {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
}

.platform-badge svg {
  width: 14px;
  height: 14px;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature__icon svg {
  width: 30px;
  height: 30px;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ===== CTA Section ===== */
.cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ===== About Page ===== */
.about-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.about-hero h1 {
  color: #fff;
}

.about-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content__text h2 {
  margin-bottom: 1rem;
}

.about-content__text p {
  margin-bottom: 1rem;
}

.about-content__graphic {
  display: flex;
  justify-content: center;
}

.about-content__graphic svg {
  width: 100%;
  max-width: 350px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__icon svg {
  width: 30px;
  height: 30px;
}

/* ===== Contact ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contact-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon svg {
  width: 30px;
  height: 30px;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

/* ===== Legal Pages ===== */
.legal {
  padding: 3rem 0 5rem;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal .last-updated {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
}

.legal h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.legal p {
  margin-bottom: 0.75rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal ul li {
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer__brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer__brand .logo svg {
  width: 36px;
  height: 36px;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__content p {
    margin: 0 auto 2rem;
  }

  .hero__content h1 {
    font-size: 2.2rem;
  }

  .btn-group {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .section { padding: 3.5rem 0; }

  .nav__list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__link::after {
    display: none;
  }

  .nav__toggle {
    display: block;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero__graphic {
    display: none;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

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