:root {
  --primary: #082253;
  --primary-light: #0a2d6e;
  --primary-dark: #051839;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 90px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gray-800);
  position: relative;
  transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--gray-800);
  transition: var(--transition);
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  bottom: -7px;
}

.menu-open .menu-icon {
  background-color: transparent;
}

.menu-open .menu-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-open .menu-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  padding-top: 80px;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--gray-600);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 34, 83, 0.25);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.hero-accent {
  position: absolute;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 34, 83, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.tech-section {
  background-color: var(--white);
}

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

.feature-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.feature-description {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.about-section {
  background-color: var(--gray-50);
}

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

.about-text {
  max-width: 560px;
}

.about-text .section-title {
  margin-bottom: 2rem;
}

.philosophy-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.philosophy-item {
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
}

.philosophy-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.philosophy-item p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.section-description-secondary {
  margin-top: 0.75rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-element {
  position: relative;
  width: 300px;
  height: 300px;
}

.visual-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  opacity: 0.3;
}

.visual-circle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-color: var(--primary);
  border-radius: 50%;
  opacity: 0.1;
}

.visual-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  opacity: 0.15;
}

.contact-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-section .section-label {
  color: rgba(255, 255, 255, 0.7);
}

.contact-section .section-title {
  color: var(--white);
}

.contact-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  transition: var(--transition);
}

.contact-email:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.footer {
  background-color: var(--gray-900);
  color: var(--gray-400);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gray-300);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  color: var(--gray-500);
}

@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-text {
    max-width: 100%;
    text-align: center;
  }

  .philosophy-item {
    text-align: left;
  }

  .about-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0.4rem 1.5rem;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-open {
    max-height: 300px;
  }

  .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-container {
    padding: 3rem 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-container {
    padding: 4rem 1.5rem;
  }

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

  .contact-email {
    font-size: 1.125rem;
    padding: 0.875rem 2rem;
  }
}

.legal-section {
  padding-top: 120px;
  padding-bottom: 4rem;
  background-color: var(--white);
  min-height: calc(100vh - 200px);
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.legal-content {
  color: var(--gray-700);
  line-height: 1.8;
}

.legal-intro {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--gray-600);
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-email {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.legal-email:hover {
  color: var(--primary-light);
}

@media (max-width: 480px) {
  .header-logo {
    height: 76px;
  }

  .legal-title {
    font-size: 1.75rem;
  }

  .legal-container {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
/* === Mobile header alignment fix === */
@media (max-width: 768px) {
  .header {
    height: 68px;              /* lock header height */
  }

  .header-container {
    height: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .logo-link {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .header-logo {
    height: 44px;              /* visually balanced for mobile */
    max-height: 100%;
  }

  .mobile-menu-btn {
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    top: 68px;                 /* exactly matches header height */
  }
}
/* === FINAL mobile header seam fix === */
@media (max-width: 768px) {
  .header {
    overflow: hidden;          /* kills sub-pixel seam */
    border-bottom: none;
  }

  .nav {
    border-bottom: none;       /* remove the ghost line */
  }

  .nav-link:last-child {
    border-bottom: none;       /* safety: no extra divider */
  }
}
/* === Mobile logo size enhancement === */
@media (max-width: 768px) {
  .header {
    height: 68px; /* keep header stable */
  }

  .logo-link {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .header-logo {
    height: auto;
    max-height: 95%;   /* fills most of header */
    width: auto;
  }
}
