/* ── Bufferfly – Corporate Website ── */
:root {
  --teal: #005F73;
  --teal-dark: #003D4D;
  --teal-light: #0A9396;
  --green: #2CB556;
  --green-light: #5ED87A;
  --green-dark: #1A8A3E;
  --gradient: linear-gradient(135deg, #005F73 0%, #0A9396 40%, #2CB556 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0,95,115,0.06) 0%, rgba(44,181,86,0.06) 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,95,115,0.08) 0%, rgba(44,181,86,0.04) 100%);
  --text: #1a2a2a;
  --text2: #4a6060;
  --text3: #7a9090;
  --bg: #f8fafa;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,60,70,0.08);
  --shadow-lg: 0 12px 40px rgba(0,60,70,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }

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

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,95,115,0.08);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,60,70,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  color: var(--teal);
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,95,115,0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(10,147,150,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(44,181,86,0.06) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,95,115,0.08);
  border: 1px solid rgba(0,95,115,0.15);
  border-radius: 24px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 24px;
}

.hero-badge span { font-size: 16px; }

.hero h1 {
  margin-bottom: 20px;
  color: var(--teal-dark);
}

.hero p {
  font-size: 18px;
  color: var(--text2);
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(0,95,115,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,95,115,0.35);
}

.btn-secondary {
  background: white;
  color: var(--teal);
  border: 1.5px solid rgba(0,95,115,0.2);
}

.btn-secondary:hover {
  border-color: var(--teal);
  background: rgba(0,95,115,0.04);
}

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

.hero-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,95,115,0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── Stats ── */
.stats {
  background: white;
  border-top: 1px solid rgba(0,95,115,0.06);
  border-bottom: 1px solid rgba(0,95,115,0.06);
  padding: 48px 0;
}

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

.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text3);
  font-weight: 500;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 16px;
  color: var(--teal-dark);
}

.about-text .lead {
  font-size: 18px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text2);
  margin-bottom: 16px;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-card {
  background: white;
  border: 1px solid rgba(0,95,115,0.08);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.about-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.about-card h4 {
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 4px;
}

.about-card p {
  font-size: 12px;
  color: var(--text3);
}

/* ── Services ── */
.services {
  background: white;
}

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

.section-header h2 {
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
}

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

.service-card {
  background: var(--gradient-card);
  border: 1px solid rgba(0,95,115,0.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

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

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.6;
}

.service-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,95,115,0.08);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

/* ── USP / Why us ── */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.usp-text h2 {
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.usp-text p {
  color: var(--text2);
  margin-bottom: 24px;
}

.usp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.usp-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.usp-check {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(44,181,86,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.usp-list li div strong {
  display: block;
  color: var(--teal-dark);
  font-size: 15px;
  margin-bottom: 2px;
}

.usp-list li div span {
  font-size: 13px;
  color: var(--text3);
}

.usp-visual {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.usp-visual::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.usp-visual h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.usp-stat {
  display: flex;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.usp-stat div {
  flex: 1;
  text-align: center;
  padding: 20px 0;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
}

.usp-stat .big {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.usp-stat .small {
  font-size: 12px;
  opacity: 0.8;
}

/* ── Team ── */
.team {
  background: white;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid rgba(0,95,115,0.08);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  border: 2px solid rgba(0,95,115,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.team-card h3 {
  color: var(--teal-dark);
  font-size: 16px;
  margin-bottom: 4px;
}

.team-card .role {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 8px;
}

.team-card p {
  font-size: 13px;
  color: var(--text3);
}

/* ── Contact ── */
.contact {
  background: var(--gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.contact h2 {
  color: white;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.contact > .container > p {
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 17px;
  position: relative;
  z-index: 1;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  margin-bottom: 32px;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card h4 {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-card p {
  font-size: 14px;
  opacity: 0.85;
}

.contact-card a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}

.contact-card a:hover { border-color: white; }

/* ── Footer ── */
footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

footer a:hover { color: white; }

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

.footer-links {
  display: flex;
  gap: 24px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 56px 0; }

  .hero { min-height: auto; padding: 100px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero p { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo { max-width: 240px; }

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

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-visual { grid-template-columns: repeat(2, 1fr); }

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

  .usp-grid { grid-template-columns: 1fr; gap: 32px; }
  .usp-visual { order: -1; }
  .usp-stat { gap: 12px; }
  .usp-stat .big { font-size: 1.6rem; }

  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }

  .contact-cards { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 32px; }

  .footer-inner { flex-direction: column; gap: 12px; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0,95,115,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }

  .nav-toggle { display: block; }
}
