@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #00B4D8;
  --accent: #00B4D8;
  --bg: #0B0B0F;
  --surface: #16161C;
  --text: #F4F4F7;
  --muted: #9393A0;
  
  --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --shadow-glow: 0 0 40px rgba(0, 180, 216, 0.3);
  --shadow-glow-sm: 0 0 20px rgba(0, 180, 216, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

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

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

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

.section-header p {
  font-size: 1.125rem;
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), #48CAE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(11, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: rgba(11, 11, 15, 0.95);
  border-bottom: 1px solid rgba(147, 147, 160, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

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

.nav-menu a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: inline-block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1rem;
    border-top: 1px solid var(--muted);
  }
  
  .nav-menu.open a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid rgba(147, 147, 160, 0.1);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: #48CAE4;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0, 180, 216, 0.45);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--muted);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 180, 216, 0.05);
  transform: translateY(-2px);
}

.cta-button {
  background: linear-gradient(135deg, var(--accent), #0096C7);
  color: #fff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 60px rgba(0, 180, 216, 0.5);
  color: #fff;
}

.form-submit {
  background: var(--accent);
  color: var(--bg);
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow-sm);
}

.form-submit:hover {
  background: #48CAE4;
  box-shadow: var(--shadow-glow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  width: 100%;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-input, 
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--muted);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.has-photo-bg,
.hero-section,
.testimonial-section {
  position: relative;
  isolation: isolate;
}

.has-photo-bg::before,
.hero-section::before,
.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85));
  z-index: 0;
}

.has-photo-bg > *,
.hero-section > *,
.testimonial-section > * {
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 0 4rem;
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.15) 0%, transparent 60%),
    radial-gradient(var(--muted) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  background-position: center top, center center;
  overflow: hidden;
}

.hero-section::before {
  background: linear-gradient(180deg, rgba(11,11,15,0.4) 0%, rgba(11,11,15,0.9) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: rgba(22, 22, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 147, 160, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: var(--shadow-glow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 180, 216, 0.1);
  color: var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

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

.services-section {
  background: var(--surface);
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(147, 147, 160, 0.1);
  transition: all var(--transition-base);
}

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

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

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

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.stats-section {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.05), rgba(11, 11, 15, 1));
  border-top: 1px solid rgba(147, 147, 160, 0.1);
  border-bottom: 1px solid rgba(147, 147, 160, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

.testimonial-section {
  background-color: var(--bg);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%2316161C" stroke-width="0.5"/></svg>');
  background-size: 200px 200px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(147, 147, 160, 0.1);
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-info h4 {
  margin: 0;
  font-size: 1rem;
}

.testimonial-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-section {
  padding: 6rem 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-row .icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.2rem;
}

.contact-row p {
  margin: 0;
  color: var(--text);
}

.contact-row a {
  color: var(--text);
}

.contact-form-wrapper {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(147, 147, 160, 0.1);
}

.policy-page {
  padding: 4rem 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(147, 147, 160, 0.1);
}

.policy-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(147, 147, 160, 0.2);
}

.policy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

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

.footer {
  background: #050508;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(147, 147, 160, 0.1);
}

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

.footer-col h4 {
  color: var(--text);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-col p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(147, 147, 160, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 50%;
  color: var(--muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--bg);
}

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid rgba(147, 147, 160, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transform: translateY(0);
  opacity: 1;
  transition: all var(--transition-base);
}

.cookie-popup.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.cookie-popup h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-popup p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}

.cookie-buttons .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

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

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

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

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

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

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .cookie-popup {
    left: auto;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 7rem 0;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .hero-section {
    min-height: 100vh;
  }
}