/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --grad-start: #4B6FFF;
  --grad-end: #9B3DFF;
  --gradient: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 100%);
  --bg: #F4F5FB;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E5E7F0;
  --card-shadow: 0 4px 24px rgba(75, 111, 255, 0.10);
  --card-shadow-hover: 0 8px 40px rgba(75, 111, 255, 0.18);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--grad-start); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(75, 111, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(75, 111, 255, 0.4); text-decoration: none; color: var(--white); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--white);
  color: var(--grad-start);
  border: 2px solid var(--grad-start);
}
.btn-secondary:hover { background: #F0F3FF; text-decoration: none; }

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-full { width: 100%; }

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
}

.cookie-banner__content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__content p {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.logo-icon svg { display: block; }

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--grad-start); text-decoration: none; }

/* ===== HERO ===== */
.hero {
  background: var(--gradient);
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero__content h1 .gradient-text {
  background: rgba(255, 255, 255, 0.9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero__content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.7;
}

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

.hero__image img {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18));
}

/* ===== SOLUTIONS ===== */
.solutions {
  padding: 80px 0;
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid transparent;
}

.solution-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
  border-color: rgba(75, 111, 255, 0.15);
}

.solution-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, rgba(75, 111, 255, 0.12), rgba(155, 61, 255, 0.12));
  color: var(--grad-start);
  border: 1px solid rgba(75, 111, 255, 0.25);
}

.solution-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
}

.solution-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-card__icon .icon-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border-radius: 18px;
}

.solution-card h3 {
  color: var(--text);
  margin: 0;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

/* ===== FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-type-tabs {
  display: flex;
  gap: 0;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border: none;
  border-radius: calc(var(--radius-md) - 2px);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--white);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--grad-start);
  box-shadow: 0 0 0 3px rgba(75, 111, 255, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
}

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

/* ===== INTL-TEL-INPUT ===== */
.iti { width: 100%; display: block; }

.iti input[type="tel"] { padding-top: 13px; padding-bottom: 13px; }

.iti--separate-dial-code .iti__selected-flag {
  background: var(--bg);
  border-right: 1px solid var(--border);
}
.iti--separate-dial-code .iti__selected-flag:hover {
  background: #ECEEF8;
}
.iti__country-list {
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border);
  max-height: 240px;
}
.iti__country:hover, .iti__country.iti__highlight {
  background: #F0F3FF;
}
.iti__search-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 0.9rem;
}
.iti__search-input:focus { outline: none; border-color: var(--grad-start); }

.field-error {
  font-size: 0.82rem;
  color: #EF4444;
  min-height: 18px;
}

/* Consent checkbox */
.consent-group { gap: 8px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--gradient);
  border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

.checkbox-label.error .checkmark { border-color: #EF4444; }

.form-message {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-message.error-msg {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* ===== FOOTER ===== */
.footer {
  background: #1A1A2E;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.footer__company {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.footer__company strong {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.footer__company a { color: rgba(255, 255, 255, 0.6); }
.footer__company a:hover { color: var(--white); }

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--white); text-decoration: none; }

.footer__copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== PRIVACY PAGE ===== */
.privacy-page { padding: 60px 0 80px; }

.privacy-page h1 { margin-bottom: 8px; }

.privacy-page .doc-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 48px;
}

.privacy-page .prose {
  max-width: 800px;
}

.privacy-page .prose h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.privacy-page .prose h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}

.privacy-page .prose p {
  margin-bottom: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.privacy-page .prose ul, .privacy-page .prose ol {
  margin: 12px 0 16px 20px;
  color: var(--text-muted);
  line-height: 1.8;
}

.privacy-page .prose li { margin-bottom: 6px; }

.privacy-page .prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.privacy-page .prose th,
.privacy-page .prose td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

.privacy-page .prose th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
}

.privacy-page .prose td { color: var(--text-muted); }

.privacy-page .prose a { color: var(--grad-start); }

.anchor-nav {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
  max-width: 800px;
}

.anchor-nav p { font-weight: 600; margin-bottom: 10px; color: var(--text); font-size: 0.9rem; }
.anchor-nav ul { margin: 0; padding-left: 18px; }
.anchor-nav li { margin-bottom: 4px; }
.anchor-nav a { font-size: 0.875rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header__nav { display: none; }

  .hero { padding: 60px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }

  .solutions { padding: 60px 0; }

  .solutions__grid { grid-template-columns: 1fr; max-width: 400px; }

  .contact { padding: 60px 0; }

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

  .footer__links { text-align: left; }

  .cookie-banner__content { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
