:root {
  --bg: #040f16;
  --bg-light: #f5f7fa;
  --bg-dark: #0b1e2a;
  --accent: #19c37d;
  --accent-dark: #13955f;
  --text: #0f1115;
  --muted: #62717f;
  --white: #ffffff;
  font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv05', 'cv08', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg-light);
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  background: 
    radial-gradient(circle at 50% 30%, rgba(25, 195, 125, 0.25), transparent 70%),
    radial-gradient(circle at 80% 50%, rgba(25, 195, 125, 0.15), transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(25, 195, 125, 0.12), transparent 50%),
    var(--bg);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%, 100% 50%, 0% 100%;
  }
  50% {
    background-position: 100% 50%, 0% 50%, 100% 0%;
  }
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.hero__content > p {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.6;
}

.hero__logo {
  width: clamp(120px, 18vw, 190px);
  margin: 0 auto 1.5rem;
}

.hero__location {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.section {
  padding: 4rem 1.5rem;
}

.section h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: #0f1419;
}

.section__lead {
  max-width: 640px;
  margin: 0.5rem auto 2rem;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
}

.section--light {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.section--light::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background-image: 
    linear-gradient(90deg, rgba(25, 195, 125, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(25, 195, 125, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 25s ease-in-out infinite;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.section--light > * {
  position: relative;
  z-index: 1;
}

@keyframes gridMove {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 40px);
  }
}

.section--dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section--dark h2 {
  color: var(--white);
}

.company {
  background: #f9fbfd;
}

.company__lead {
  max-width: 720px;
}

.founder-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.founder-link:hover {
  color: var(--accent);
}

.company__intro {
  margin: 2rem auto 1rem;
  text-align: center;
}

.company__intro h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.company__highlights {
  list-style: none;
  margin: 2.5rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.company__highlights li {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(4, 15, 22, 0.04), 0 8px 24px rgba(4, 15, 22, 0.06);
}

.company__highlights h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.company__highlights p {
  margin: 0;
  color: var(--muted);
}

.portfolio-card {
  max-width: 600px;
  margin: 2rem auto 0;
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(15, 17, 21, 0.06), 0 12px 36px rgba(15, 17, 21, 0.08);
  text-align: center;
}

.portfolio-card__content h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.portfolio-card__content p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.portfolio-card__content .btn {
  margin-top: 0.5rem;
}

.section--dark ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.section--dark li {
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.section--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}

.section--accent h2 {
  color: var(--white);
}

.section--accent .section__lead {
  color: rgba(255, 255, 255, 0.92);
}

.section--accent .section__lead a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
}

.section--accent .form-status {
  color: rgba(255, 255, 255, 0.9);
}

.contact__lead {
  max-width: 720px;
}

.contact-card {
  max-width: 720px;
  margin: 2rem auto 0;
  background: rgba(4, 15, 22, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(4, 15, 22, 0.3), 0 24px 64px rgba(4, 15, 22, 0.4);
  backdrop-filter: blur(8px);
}

.contact-card__email {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.contact-card__note {
  color: rgba(255, 255, 255, 0.85);
  margin: 1rem 0 0.5rem;
}

.contact-card__list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}

.contact-card__list li {
  line-height: 1.5;
}

.contact-card__thanks {
  color: rgba(255, 255, 255, 0.95);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

#cta-contact {
  color: var(--white);
}

.btn--copy {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  margin-top: 20px;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(15, 17, 21, 0.06), 0 12px 36px rgba(15, 17, 21, 0.08);
}

.card__art {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card__art img {
  max-height: 100%;
  width: auto;
}

.card h3 {
  margin: 1rem 0 0.5rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.btn--primary {
  background: var(--accent);
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(25, 195, 125, 0.3);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-2px);
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
}

.form-status--error {
  color: #ffdddd;
}

.section--accent .form-status--error {
  color: #ffe6e6;
}

.footer {
  background: var(--bg);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
}

.footer__links {
  margin-top: 0.5rem;
}

.footer__links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer__links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.toast {
  position: fixed;
  top: 2rem;
  right: 2rem;
  transform: translateX(400px);
  background: var(--bg-dark);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  font-size: 0.95rem;
  max-width: 320px;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast.toast--success {
  border-left: 4px solid var(--accent);
}

.toast.toast--error {
  border-left: 4px solid #e63946;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
