/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #2C2C2A; background: #fff; line-height: 1.7; }

/* ── Variables ── */
:root {
  --navy:   #1F3864;
  --mid:    #185FA5;
  --accent: #378ADD;
  --gray:   #5F5E5A;
  --light:  #F8F9FA;
  --border: #E8E8E6;
  --max:    1100px;
}

/* ── Utility ── */
.container  { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section    { padding: 6rem 0; }
.section-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 1.25rem;
}
.section-sub { font-size: 1.05rem; color: var(--gray); max-width: 600px; line-height: 1.75; }

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 0; transition: background .3s, box-shadow .3s;
}
nav.scrolled {
  background: rgba(31, 56, 100, .97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
}
.nav-inner   { display: flex; align-items: center; justify-content: space-between; }
.nav-links   { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  color: rgba(255, 255, 255, .8); text-decoration: none;
  font-size: .9rem; font-weight: 400; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: .5rem 1.25rem; border-radius: 6px; font-weight: 500 !important;
}
.nav-cta:hover { background: #2a79cc !important; }

/* ── Hero ── */
#hero {
  background: var(--navy); min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 8rem 0 5rem;
}
.hero-bg     { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(55, 138, 221, .12); }
.hero-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(55, 138, 221, .15); border: 1px solid rgba(55, 138, 221, .3);
  border-radius: 100px; padding: .35rem 1rem;
  font-size: .8rem; font-weight: 500; color: #7BC5F5; margin-bottom: 1.5rem;
}
.hero-dot    { width: 6px; height: 6px; border-radius: 50%; background: #7BC5F5; }
.hero-title  {
  font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700;
  color: #fff; line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-title span { color: var(--accent); }
.hero-sub    {
  font-size: 1.05rem; color: rgba(255, 255, 255, .7);
  line-height: 1.8; margin-bottom: 2.5rem; max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; padding: .85rem 1.75rem;
  border-radius: 8px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s; display: inline-block;
}
.btn-primary:hover { background: #2a79cc; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff; padding: .85rem 1.75rem;
  border-radius: 8px; font-weight: 500; font-size: .95rem;
  text-decoration: none; border: 1px solid rgba(255, 255, 255, .3);
  transition: border-color .2s, background .2s; display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }

/* Flow diagram */
.flow-diagram {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px; padding: 2rem; width: 100%; max-width: 420px;
}
.flow-row   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.flow-row:last-child { margin-bottom: 0; }
.flow-node  {
  background: rgba(55, 138, 221, .1); border: 1px solid rgba(55, 138, 221, .2);
  border-radius: 8px; padding: .6rem .75rem;
  font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .8);
  flex: 1; text-align: center;
}
.flow-node.accent {
  background: rgba(55, 138, 221, .22); border-color: rgba(55, 138, 221, .5);
  color: #7BC5F5;
}
.flow-arrow { color: rgba(55, 138, 221, .5); flex-shrink: 0; margin: 0 .4rem; font-size: .9rem; }
.flow-badge {
  display: inline-block;
  background: rgba(29, 158, 117, .15); border: 1px solid rgba(29, 158, 117, .3);
  border-radius: 6px; padding: .3rem .75rem;
  font-size: .75rem; font-weight: 500; color: #5DCAA5; margin-top: 1rem;
}

/* ── Challenges ── */
#challenges { background: var(--light); }
.challenges-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.challenge-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.challenge-card:hover { box-shadow: 0 4px 24px rgba(31, 56, 100, .08); transform: translateY(-2px); }
.challenge-icon  { font-size: 1.5rem; margin-bottom: .75rem; }
.challenge-title { font-size: .95rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.challenge-desc  { font-size: .875rem; color: var(--gray); line-height: 1.65; }

/* ── Services ── */
#services { background: #fff; }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3rem;
}
.service-card {
  border: 1px solid var(--border); border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(31, 56, 100, .1); transform: translateY(-3px); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.service-card.connect::before    { background: var(--navy); }
.service-card.automate::before   { background: var(--mid); }
.service-card.intelligate::before { background: var(--accent); }
.service-number {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent); margin-bottom: .75rem;
}
.service-title  { font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.service-desc   { font-size: .88rem; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.65; }
.service-list   { list-style: none; }
.service-list li {
  font-size: .86rem; color: var(--gray); padding: .35rem 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .5rem;
}
.service-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── About ── */
#about { background: var(--light); }
.about-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-photo  { margin-bottom: 1.25rem; }
.about-photo img {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid #fff; box-shadow: 0 2px 12px rgba(31, 56, 100, .15);
}
.about-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--navy); display: flex; align-items: center;
  justify-content: center; font-size: 1.75rem; font-weight: 700;
  color: #fff; margin-bottom: 1.25rem;
}
.about-name   { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.about-role   { font-size: .9rem; color: var(--accent); font-weight: 500; margin-bottom: 1.25rem; }
.about-bio    { font-size: .92rem; color: var(--gray); line-height: 1.8; margin-bottom: 1.5rem; }
.about-stats  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.stat         { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; }
.stat-num     { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.stat-label   { font-size: .78rem; color: var(--gray); margin-top: .2rem; }
.tools        { display: flex; flex-wrap: wrap; gap: .5rem; }
.tool-tag {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: .28rem .7rem; font-size: .78rem; color: var(--gray); font-weight: 500;
}

/* ── Contact ── */
#contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem; text-decoration: none; color: inherit;
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(31, 56, 100, .06);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-label { font-size: .75rem; color: var(--gray); }
.contact-value { font-size: .92rem; font-weight: 500; color: var(--navy); }
.form-group    { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .84rem; font-weight: 500;
  color: var(--navy); margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-family: 'Inter', sans-serif; font-size: .93rem;
  color: #2C2C2A; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55, 138, 221, .12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit {
  width: 100%; background: var(--navy); color: #fff;
  padding: .9rem; border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-submit:hover { background: var(--mid); }
.form-note  { font-size: .78rem; color: var(--gray); text-align: center; margin-top: .75rem; }

/* ── Footer ── */
footer       { background: var(--navy); color: rgba(255, 255, 255, .6); padding: 2.5rem 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy   { font-size: .83rem; }
.footer-links  { display: flex; gap: 1.5rem; }
.footer-links a {
  color: rgba(255, 255, 255, .5); text-decoration: none;
  font-size: .83rem; transition: color .2s;
}
.footer-links a:hover { color: #fff; }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Language switcher ── */
.lang-switch {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(255,255,255,.65) !important;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px; padding: .2rem .6rem;
  text-decoration: none; transition: color .2s, border-color .2s;
}
.lang-switch:hover {
  color: #fff !important;
  border-color: rgba(255,255,255,.7) !important;
}
