/* Reset & Base Variables */
:root {
  --bg-color: #ffffff;
  --text-primary: #111111;
  --text-secondary: #555555;
  --brand-color: #dc0068;
  --brand-hover: #b30054;
  --card-bg: #f9f9f9;
  --border-color: #eeeeee;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Accessibility: Skip to Content Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--brand-color);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 0, 104, 0.4);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--brand-color);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1em;
}

a {
  color: var(--brand-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
}

/* Header & Logo */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 44px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo-neti {
  color: #000000;
}

.logo-pilet {
  color: var(--brand-color);
}

/* Desktop Navigation */
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-primary);
  font-size: 15px;
  position: relative;
  padding: 8px 2px;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-color);
  border-radius: 2px;
}

/* Header Action Buttons */
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger Toggle Button (mobile only) */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: #f7f7f7;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  text-align: center;
}

.button.primary {
  background-color: var(--brand-color);
  color: #ffffff;
}

.button.primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(220, 0, 104, 0.35);
  color: #ffffff;
}

.button.large {
  padding: 16px 32px;
  min-height: 52px;
  font-size: 18px;
  border-radius: 12px;
}

/* Main Layout Offset for fixed header */
main#top {
  padding-top: 72px;
}

/* Subpage Main Offset */
.subpage-main {
  padding-top: 90px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Washes for smooth blending into white */
.hero-wash {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  pointer-events: none;
}
.hero-wash.left {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}
.hero-wash.right {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}
.hero-wash.bottom {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 35vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,1) 95%, rgba(255,255,255,1) 100%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  text-align: center;
  z-index: 10;
  width: 100%;
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: #111111;
  line-height: 1.15;
}

.highlight-text {
  color: var(--brand-color);
}

.lead {
  font-size: clamp(16px, 2vw, 21px);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Content Sections */
.section {
  padding: 90px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 50px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading .dim {
  color: var(--brand-color);
}

.section-heading p {
  font-size: 19px;
  max-width: 600px;
  margin: 0 auto;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #111111;
}

.feature-card p {
  font-size: 16px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Highlight Section */
.highlight-section {
  background: #fff0f5;
  border-radius: 24px;
  padding: 70px 36px;
  text-align: center;
  margin-bottom: 80px;
}

.highlight-container {
  max-width: 700px;
  margin: 0 auto;
}

.highlight-text h2 {
  font-size: 32px;
  color: #111111;
  margin-bottom: 16px;
}

.highlight-text p {
  font-size: 18px;
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  background: #111111;
  color: #ffffff;
  padding: 70px 24px 36px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  display: block;
  margin-bottom: 16px;
}

.footer-logo .logo-neti {
  color: #ffffff;
}

.footer-logo .logo-pilet {
  color: var(--brand-color);
}

.footer-column p {
  color: #a0a0a0;
  font-size: 15px;
}

.footer-heading {
  font-size: 18px;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #a0a0a0;
  font-size: 15px;
  display: inline-block;
  padding: 3px 0;
  transition: color 0.2s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  color: #a0a0a0; /* WCAG AA compliant: 4.8:1 contrast on #111111 */
  font-size: 14px;
}

/* Responsive Overhaul for Mobile & Tablet */
@media (max-width: 860px) {
  .topbar {
    height: 64px;
  }

  .topbar-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 21px;
  }

  /* Show hamburger button on mobile */
  .hamburger-btn {
    display: flex;
  }

  /* Mobile Dropdown Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 20px 24px;
    gap: 12px;
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.3s;
    z-index: 999;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    background: #fbfbfb;
    border: 1px solid #eeeeee;
    min-height: 48px;
    color: var(--text-primary);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: #fff0f5;
    border-color: #ffd1e3;
    color: var(--brand-color);
  }

  .nav-links a.active::after {
    display: none;
  }

  .top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .top-actions .button {
    padding: 8px 14px;
    font-size: 14px;
    min-height: 40px;
    border-radius: 6px;
  }

  /* Clean mobile main offset */
  main#top {
    padding-top: 64px !important;
  }

  .subpage-main {
    padding-top: 76px !important;
  }

  /* Hero section on mobile: compact, no giant empty gap */
  .hero {
    min-height: auto;
    padding: 40px 16px 56px !important;
  }

  .hero-title {
    font-size: clamp(28px, 7.5vw, 42px);
    margin-bottom: 18px;
    line-height: 1.15;
  }

  .lead {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .button.large {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 48px;
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 50px 16px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: clamp(26px, 6.5vw, 36px);
  }

  .section-heading p {
    font-size: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .highlight-section {
    padding: 36px 18px;
    border-radius: 16px;
    margin-bottom: 50px;
  }

  .highlight-text h2 {
    font-size: 24px;
  }

  .highlight-text p {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .site-footer {
    padding: 50px 16px 28px;
  }
}

@media (max-width: 480px) {
  .topbar-inner {
    padding: 0 12px;
  }
  .logo-text {
    font-size: 19px;
  }
  .top-actions .button {
    padding: 7px 12px;
    font-size: 13px;
  }
  .hamburger-btn {
    width: 38px;
    height: 38px;
  }
}

