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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
  font-size: 18px;
}

/* Global Layout */
.site-header {
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 1.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-name:hover {
  color: #4D3FD7;
}

.logo {
  display: block;
}

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

.nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #000;
}

.nav a[aria-current="page"] {
  color: #4D3FD7;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Main Layout */
.main {
  padding: 4rem 0;
}

/* Header */
.header {
  margin-bottom: 6rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

a.header-content {
  text-decoration: none;
  color: inherit;
}

a.header-content:hover .subtitle {
  color: #362ac2;
}

.profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #4D3FD7;
}

.header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.header-name {
  display: block;
  font-size: 3rem;
  font-weight: 300;
  margin: 0;
  color: #000;
  letter-spacing: -0.02em;
}

.subtitle {
  display: block;
  font-size: 1.1rem;
  color: #4D3FD7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 8rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #000;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  color: #4D3FD7;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-text {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 3rem;
  font-weight: 300;
}

.cta-link {
  display: inline-block;
  font-size: 1.1rem;
  color: #fff;
  background-color: #4D3FD7;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.cta-link:hover {
  background-color: #362ac2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(77, 63, 215, 0.3);
}

/* About Section */
.about {
  margin-bottom: 6rem;
}

.about h2,
.about h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #4D3FD7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 300;
}

.about a {
  color: #4D3FD7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.about a:hover {
  color: #362ac2;
  text-decoration-thickness: 2px;
}

/* Services Section */
.services {
  margin-bottom: 6rem;
}

.services h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #4D3FD7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.services-content {
  max-width: 600px;
}

.services-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 300;
}

.services-content strong {
  color: #4D3FD7;
  font-weight: 600;
}

/* Sections */
#main {
  background: #fff;
}

.section {
  padding: 6rem 0;
}

.section:first-of-type {
  padding-top: 6.5rem;
}

.section:last-of-type {
  padding-bottom: 6.5rem;
}

.container.narrow {
  max-width: 640px;
}

.section h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: #000;
  line-height: 1.2;
}

.section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #4D3FD7;
}

.section h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 300;
}

.section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.section li {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.section a {
  color: #4D3FD7;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.section a:hover {
  color: #362ac2;
  text-decoration-thickness: 2px;
}

.muted {
  color: #666;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Details Blocks */
details {
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 1.5rem 1.75rem;
  background: #fafafa;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

details + details {
  margin-top: 1.25rem;
}

details[open] {
  background: #fff;
  border-color: #ddd;
  box-shadow: 0 12px 30px rgba(20, 22, 61, 0.08);
}

summary {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin-top: 1rem;
  color: #444;
  font-weight: 300;
  line-height: 1.7;
}

/* Forms */
.contact-form {
  display: grid;
  gap: 1.75rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.6rem;
}

.field input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus {
  border-color: #4D3FD7;
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(77, 63, 215, 0.15);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button.primary {
  background: #4D3FD7;
  color: #fff;
  box-shadow: 0 12px 24px rgba(77, 63, 215, 0.25);
}

.button.primary:hover {
  background: #3b2ed0;
  box-shadow: 0 16px 30px rgba(77, 63, 215, 0.35);
}

.button.primary:focus-visible {
  outline: 2px solid #3b2ed0;
  outline-offset: 3px;
}

/* Footer */
.footer {
  border-top: 1px solid #eee;
  padding: 3rem 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links a {
  color: #4D3FD7;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #000;
}

.footer-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  font-weight: 400;
}

.footer-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 2.5rem 0 2rem;
}

.footer-form {
  display: grid;
  gap: 1.75rem;
  max-width: 540px;
}

.footer-form-group {
  display: flex;
  flex-direction: column;
}

.footer-form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.75rem;
}

.footer-input {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 2px solid #4D3FD7;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  color: #000;
}

.footer-input:focus {
  outline: none;
  border-bottom-color: #2f23b0;
}

.footer-input select {
  cursor: pointer;
}

.footer-input option {
  background: #fff;
  color: #000;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #333;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4D3FD7;
}

.checkbox-label a {
  color: #4D3FD7;
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: #2f23b0;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  cursor: help;
  font-size: 0.7rem;
  position: relative;
  vertical-align: middle;
  color: #4D3FD7;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #4D3FD7;
  background: rgba(77, 63, 215, 0.05);
  transition: background 0.2s ease;
  font-weight: 600;
  padding: 0;
  line-height: 1;
}

.info-icon:hover {
  background: rgba(77, 63, 215, 0.2);
}

.info-icon:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  background: #333;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: normal;
  max-width: 280px;
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  pointer-events: none;
  font-weight: 400;
}

.info-icon:hover::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333;
  z-index: 1001;
  pointer-events: none;
}

.footer-textarea {
  min-height: 160px;
  resize: vertical;
}

.footer-submit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #4D3FD7;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.5rem 0;
  border-bottom: 2px solid #4D3FD7;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-submit:hover,
.footer-submit:focus-visible {
  color: #000;
  border-bottom-color: #000;
  outline: none;
}

.footer-submit[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  pointer-events: none;
  opacity: 0;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4D3FD7;
  min-height: 1.2em;
}

.form-feedback.error {
  color: #d12f43;
}

.form-feedback.success {
  color: #2c8e5f;
}

/* Legal Pages */
.legal-wrapper,
.contact-wrapper {
  padding: 4rem 0 6rem;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #000;
}

.legal-meta {
  color: #777;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-section h2 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #4D3FD7;
  margin-bottom: 1rem;
}

.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  font-weight: 300;
}

.legal-section ul {
  margin-left: 1.5rem;
  display: grid;
  gap: 0.5rem;
  list-style: disc;
}

.legal-section a {
  color: #4D3FD7;
  font-weight: 500;
  text-decoration: none;
}

.legal-section a:hover {
  color: #000;
}

.legal-section strong {
  font-weight: 600;
  color: #000;
}

.contact-content {
  max-width: 540px;
  margin: 0 auto;
}

.contact-divider {
  margin: 0 0 2rem;
}

.contact-form-page {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .brand-name {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
  }

  .nav {
    width: 100%;
    gap: 1rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .container {
    padding: 0 1.5rem;
  }
  
  .main {
    padding: 2rem 0;
  }
  
  .header {
    margin-bottom: 4rem;
  }
  
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 1rem;
  }
  
  .profile-image {
    width: 56px;
    height: 56px;
  }
  
  .header-text {
    text-align: left;
  }
  
  .header-name {
    font-size: 1.8rem;
  }
  
  .subtitle {
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .hero {
    margin-bottom: 6rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    margin-top: 0.75rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .about,
  .services {
    margin-bottom: 4rem;
  }
  
  
  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.7rem;
  }

  .footer-form {
    max-width: 100%;
    gap: 1.5rem;
  }


  .legal-content {
    gap: 2rem;
  }

  .contact-wrapper {
    padding: 3rem 0 4rem;
  }

  .contact-content {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 2rem;
  }
  
  .nav {
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }
  
  .hero-text {
    font-size: 0.95rem;
  }
  
  .header-name {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  
  .cta-link {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }
  
  .about h2,
  .about h3,
  .services h3 {
    font-size: 1.3rem;
  }
}