/* Parentlink.az – Korporativ sayt */
:root {
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-elevated: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.15);
  --success: #3fb950;
  --success-soft: rgba(63, 185, 80, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.logo-fallback.show {
  display: flex;
}

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

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

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 80px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    var(--bg-dark);
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: filter 0.2s, transform 0.15s;
}

.hero-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.0625rem;
}

/* About */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.about-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.about-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.about-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Solution (Həll) */
.solution-list {
  display: grid;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.solution-item {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: flex-start;
}

.solution-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.solution-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.solution-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Features grid */
.features {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Benefits */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--success-soft);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
}

.benefits-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
}

/* CTA block */
.cta-block {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border);
}

.cta-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.cta-block p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.cta-block a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: filter 0.2s;
}

.cta-block a:hover {
  filter: brightness(1.1);
}

/* Footer */
.footer {
  padding: 48px 0 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 8px;
}

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

.footer-links h4,
.footer-contact h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.footer-links a,
.footer-contact p {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

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

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 56px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: calc(var(--header-h) + 32px) 0 56px;
  }

  .solution-item {
    flex-direction: column;
    gap: 12px;
  }
}

/* Legal / Privacy policy page */
.page-legal {
  padding: calc(var(--header-h) + 80px) 0 80px;
}

.page-legal--standalone {
  padding: 48px 24px 80px;
}

.page-legal__header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-legal__back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.page-legal__back:hover {
  color: var(--accent);
}

.page-legal__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
}

.page-legal__subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

.page-legal__body {
  max-width: 720px;
  color: var(--text);
}

.page-legal__body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.page-legal__body h2:first-of-type {
  margin-top: 0;
}

.page-legal__body p,
.page-legal__body ul {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.65;
}

.page-legal__body ul {
  padding-left: 1.5rem;
}

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