:root {
  --color-primary: #5eead4;
  --color-primary-dark: #2dd4bf;
  --color-secondary: #94a3b8;
  --color-background: #0f172a;
  --color-surface: #1e293b;
  --color-surface-elevated: #334155;
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  text-wrap: balance;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

.header {
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 42, 0.9);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: var(--radius);
  object-fit: cover;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

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

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

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  position: relative;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.nav-link.active {
  color: var(--color-primary);
  background: rgba(94, 234, 212, 0.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
}

.menu-toggle i {
  font-size: 1.5rem;
}

.hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(94, 234, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  font-weight: 700;
  position: relative;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.938rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-background);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(94, 234, 212, 0.3);
}

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

.btn-secondary:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-text-muted);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(94, 234, 212, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-primary);
}

.card-icon i {
  font-size: 1.75rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.938rem;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.features {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.tool-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tool-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: rgba(94, 234, 212, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.tool-icon i {
  font-size: 2rem;
}

.tool-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.tool-content p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-item h4 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-item p {
  color: var(--color-text-muted);
  font-size: 0.938rem;
}

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-size: 0.938rem;
  line-height: 1.7;
}

.footer-column h4 {
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-links a,
.footer-links span {
  color: var(--color-text);
  font-size: 0.938rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-links span {
  color: var(--color-text-muted);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

.ad-container {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.ad-container-horizontal {
  margin: 2rem 0;
}

.ad-container-sidebar {
  min-height: 250px;
}

.ad-container-banner {
  min-height: 90px;
}

.page-header {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.125rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--color-border);
}

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

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--color-text);
}

.legal-content h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.legal-content a {
  color: var(--color-primary);
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-content th,
.legal-content td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--color-border);
}

.legal-content th {
  background: var(--color-surface-elevated);
  color: var(--color-text);
  font-weight: 600;
}

.legal-content td {
  color: var(--color-text-muted);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-section.reverse {
  direction: rtl;
}

.about-section.reverse > * {
  direction: ltr;
}

.about-image {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image i {
  font-size: 8rem;
  color: var(--color-primary);
}

.about-section h2 {
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.about-section p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.value-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.value-item i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.value-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.value-item p {
  color: var(--color-text-muted);
  font-size: 0.938rem;
  line-height: 1.6;
}

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

.message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.message-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.message-error {
  background: rgba(239, 68, 68, 0.15);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-section.reverse {
    direction: ltr;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .hero {
    padding: 4rem 0;
  }
  
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .nav {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--color-border);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .tool-item {
    flex-direction: column;
    text-align: center;
  }
  
  .tool-icon {
    margin: 0 auto;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .features {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
}

.hero-with-bg {
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-with-bg .container {
  position: relative;
  z-index: 1;
}

.image-feature-section {
  padding: 5rem 0;
  background: var(--color-surface);
}

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

.image-feature-content h2 {
  margin-bottom: 1.25rem;
  font-size: 2rem;
}

.image-feature-content p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 1.125rem;
}

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

.image-feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-image-photo {
  padding: 0;
  overflow: hidden;
}

.about-image-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.contact-side-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-side-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tools-category-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.tools-category-header.reverse {
  grid-template-columns: 1fr 300px;
}

.tools-category-header.reverse .tools-category-image {
  order: 2;
}

.tools-category-header.reverse .tools-category-content {
  order: 1;
}

.tools-category-image {
  border-radius: var(--radius);
  overflow: hidden;
}

.tools-category-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.tools-category-content h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.tools-category-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .image-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .image-feature-image {
    order: -1;
  }
  
  .tools-category-header {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .tools-category-header.reverse {
    grid-template-columns: 1fr;
  }
  
  .tools-category-header.reverse .tools-category-image,
  .tools-category-header.reverse .tools-category-content {
    order: unset;
  }
  
  .tools-category-image img {
    height: 180px;
  }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
