/* Treegarden landing – pacific blue palette */
:root {
  --primary: #0077b6;
  --primary-hover: #0096c7;
  --primary-light: #00b4d8;
  --accent: #0077b6;
  --accent-alt: #0096c7;
  --dark: #023e8a;
  --dark-lighter: #03045e;
  --dark-text: #1a202c;
  --neutral-bg: #f0f9ff;
  --neutral-border: #b6e3f6;
  --neutral-muted: #5a7a8c;
  --neutral-text: #4a5568;
  --white: #ffffff;
  --max-width: 1200px;
  --section-padding: 4.5rem 1.5rem;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark-text);
  background: var(--white);
}

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

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-border);
  transition: box-shadow 0.2s;
}

body.scrolled .site-header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--neutral-text);
  text-decoration: none;
  padding: 0.625rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  font-weight: 500;
  box-sizing: border-box;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--neutral-bg);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.nav-cta:hover {
  background: var(--primary-hover) !important;
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--neutral-border);
  background: var(--white);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle::before {
  content: '';
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--dark);
  box-shadow: 0 5px 0 var(--dark), 0 10px 0 var(--dark);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-border);
    padding: 1rem;
  }
}

/* Hero */
.hero {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--neutral-bg) 0%, var(--white) 100%);
  text-align: center;
}

.hero-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}

.hero-subline {
  font-size: 1.2rem;
  color: var(--neutral-text);
  margin: 0 0 2.25rem;
  line-height: 1.5;
}

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

.hero-summary {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--neutral-border);
  font-size: 0.9rem;
  color: var(--neutral-text);
  line-height: 1.65;
  text-align: left;
}

.hero-summary a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.hero-summary a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* De ce Treegarden */
.section-why {
  background: var(--neutral-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

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

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--primary);
}

.why-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark-text);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.25;
}

.btn-primary {
  padding: 0.875rem 1.75rem;
}

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

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem;
  text-align: center;
}

.section-intro {
  font-size: 1.125rem;
  color: var(--neutral-text);
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  line-height: 1.65;
}

.subsection-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

.subsection-title:first-of-type {
  margin-top: 0;
}

/* Features grid */
.section-features {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.12);
  border-color: var(--primary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dark-text);
  margin: 0 0 0.5rem;
}

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

/* Segment blocks (SMB / Enterprise) */
.section-segments {
  background: var(--white);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.segment-card {
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  padding: 2rem;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.segment-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.12);
}

.segment-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1rem;
}

.segment-list {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--neutral-text);
  line-height: 1.7;
  font-size: 0.9375rem;
  flex-grow: 1;
}

.segment-list li {
  margin-bottom: 0.35rem;
}

.segment-card .btn {
  margin-top: auto;
}

@media (max-width: 768px) {
  .segment-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .segment-card .btn {
    width: 100%;
    text-align: center;
  }
}

/* Integrations */
.section-integrations {
  background: var(--neutral-bg);
}

.integrations-block {
  margin-bottom: 2.5rem;
}

.integrations-block:last-child {
  margin-bottom: 0;
}

.integrations-desc {
  color: var(--neutral-text);
  margin: 0 0 1.5rem;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.integration-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--neutral-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.integration-item:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.12);
}

.integration-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

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

.integration-logo-svg {
  color: var(--primary);
}

.integration-logo-svg svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.integration-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--dark-lighter);
  text-align: center;
  line-height: 1.3;
}

/* Security */
.section-security {
  background: var(--white);
}

.security-list {
  max-width: 36rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--neutral-text);
  line-height: 1.7;
}

.security-list li {
  margin-bottom: 0.5rem;
}

/* Support */
.section-support {
  background: var(--neutral-bg);
}

.support-list {
  max-width: 36rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  color: var(--neutral-text);
  line-height: 1.7;
  font-size: 1rem;
}

.support-list li {
  margin-bottom: 0.5rem;
}

/* FAQ */
.section-faq {
  background: var(--white);
}

.faq-list {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.faq-list .faq-q {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--neutral-border);
}

.faq-list .faq-q:first-child {
  padding-top: 0;
  border-top: none;
}

.faq-list .faq-a {
  margin: 0 0 0 0;
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--neutral-text);
  line-height: 1.65;
}

.faq-list .faq-a a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-list .faq-a a:hover {
  text-decoration: underline;
}

/* CTA strip */
.section-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-inner {
  max-width: 32rem;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.cta-subline {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem 3rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.footer-logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  vertical-align: middle;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  flex-grow: 1;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-column .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column .footer-links li {
  margin-bottom: 0.5rem;
}

.footer-column .footer-links a {
  color: var(--primary-light);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.footer-column .footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-contact {
  margin: 0;
  font-size: 0.9375rem;
}

.footer-contact a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
}

.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
  .nav-links.is-open a {
    min-height: 44px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 3.5rem 1rem;
  }
  .hero {
    padding: 5rem 1rem;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .footer-top {
    margin-bottom: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .site-footer {
    padding: 2.5rem 1rem 1.5rem;
  }
  .segment-card .btn {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }
  .cta-actions .btn {
    min-height: 44px;
  }
}
