/* ── FONTS: Nunito (headings + body) — igual a kamielectronics.net ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg:        #ffffff;
  --surface:   #f4f7fb;
  --surface2:  #e8eef7;
  --accent:    #3b6fd4;
  --accent2:   #4a9fd4;
  --navy:      #1a2e4a;
  --text:      #1a2e4a;
  --text-muted:#4a5568;
  --border:    rgba(26,46,74,0.1);

  --font-display: 'Nunito', sans-serif;
  --font-body:    'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 6%;
  background: rgba(255,255,255,1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .3s, border-color .3s, box-shadow .3s, padding .3s;
}
nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(26,46,74,0.08);
  padding: 0.5rem 6%;
}

.logo {
  display: flex; align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 60px;
  width: auto;
  transition: height .3s;
}
nav.scrolled .logo img {
  height: 44px;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent); color: #fff;
  padding: .6rem 1.5rem; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: .9rem;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(59,111,212,0.3);
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 10rem 6% 6rem;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f5ff 0%, #ffffff 60%);
}

.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,111,212,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,111,212,.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: rgba(59,111,212,.1);
  top: -150px; left: -150px;
  animation: drift 14s ease-in-out infinite alternate;
}
.blob-2 {
  width: 400px; height: 400px;
  background: rgba(74,159,212,.1);
  bottom: -80px; right: -80px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(50px,30px) scale(1.08); }
}

.hero-badge {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(59,111,212,.08); border: 1px solid rgba(59,111,212,.2);
  color: var(--accent); border-radius: 100px;
  padding: .35rem 1rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp .8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(1.4); }
}

h1 {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--navy);
  max-width: 880px;
  animation: fadeUp .9s .1s ease both;
}
h1 .line2 { color: var(--accent); font-style: normal; }

.hero-sub {
  position: relative; z-index: 1;
  max-width: 540px; color: var(--text-muted);
  font-size: 1.1rem; font-weight: 400;
  margin-top: 1.5rem; line-height: 1.75;
  animation: fadeUp .9s .2s ease both;
}

.hero-actions {
  position: relative; z-index: 1;
  display: flex; gap: 1rem; margin-top: 2.5rem;
  animation: fadeUp .9s .3s ease both;
}

.btn-primary {
  background: var(--accent); color: #fff;
  padding: .85rem 2rem; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: .5rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(59,111,212,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,111,212,.45);
}

.btn-ghost {
  background: transparent; color: var(--navy);
  padding: .85rem 2rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1.5px solid var(--border);
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(59,111,212,.05);
  color: var(--accent);
}

.stats {
  position: relative; z-index: 1;
  display: flex; gap: 3rem; margin-top: 4rem;
  animation: fadeUp .9s .4s ease both;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  color: var(--accent);
}
.stat-label {
  color: var(--text-muted); font-size: .78rem;
  margin-top: .3rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 600;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   LOGOS STRIP
───────────────────────────────────────────── */
.logos-strip {
  padding: 3.5rem 6%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: var(--surface);
}
.logos-strip p {
  color: var(--text-muted); font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 2rem; font-weight: 600;
}
.logos-row {
  display: flex; justify-content: center;
  align-items: center; gap: 3.5rem; flex-wrap: wrap;
}
.logo-item {
  color: var(--text-muted); font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; letter-spacing: .04em;
  opacity: .45; transition: opacity .2s;
}
.logo-item:hover { opacity: .9; }

/* ─────────────────────────────────────────────
   SECTION COMMONS
───────────────────────────────────────────── */
section { padding: 7rem 6%; }

.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent2); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-label::before {
  content: ''; display: block;
  width: 18px; height: 2px; background: var(--accent2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; max-width: 640px;
  color: var(--navy);
}

.section-sub {
  color: var(--text-muted); max-width: 520px;
  margin-top: 1rem; font-size: 1rem; font-weight: 400; line-height: 1.75;
}

/* ─────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.services-header {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end;
  gap: 2rem; margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}

.service-card {
  background: #fff;
  padding: 2.5rem;
  transition: background .25s;
  position: relative; overflow: hidden;
}
.service-card:hover { background: var(--surface); }
.service-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,111,212,.04), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,111,212,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: .6rem; color: var(--navy);
}
.service-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.65; }

/* ─────────────────────────────────────────────
   PROCESS
───────────────────────────────────────────── */
.process {
  background: var(--surface);
  border-radius: 24px; padding: 5rem 6%;
  border: 1px solid var(--border);
}

.process-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}

.process-steps { display: flex; flex-direction: column; gap: 2rem; margin-top: 2.5rem; }

.step {
  display: flex; gap: 1.25rem; align-items: flex-start;
  opacity: .5; transition: opacity .3s;
}
.step:hover { opacity: 1; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(59,111,212,.12); border: 1px solid rgba(59,111,212,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem;
  color: var(--accent);
}
.step h4 {
  font-family: var(--font-display);
  font-weight: 700; margin-bottom: .3rem; color: var(--navy);
}
.step p { color: var(--text-muted); font-size: .9rem; }

.process-visual {
  position: relative; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.orb {
  width: 260px; height: 260px; border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%,
    var(--accent) 0deg, var(--accent2) 120deg, var(--accent) 240deg, var(--accent2) 360deg);
  filter: blur(60px); opacity: .18;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.orb-core {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(59,111,212,.2);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
}
.orb-core::before {
  content: '';
  position: absolute; inset: 16px; border-radius: 50%;
  border: 1px solid rgba(74,159,212,.25);
}
.orb-inner-text { text-align: center; z-index: 1; }
.orb-inner-text span {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.orb-inner-text p {
  font-size: .7rem; color: var(--text-muted);
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}

/* ─────────────────────────────────────────────
   TECH STACK
───────────────────────────────────────────── */
.tech-header { text-align: center; max-width: 600px; margin: 0 auto 4rem; }
.tech-header .section-sub { margin: 1rem auto 0; }

.tech-grid {
  display: flex; flex-wrap: wrap;
  gap: 1rem; justify-content: center;
}

.tech-pill {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 100px; padding: .55rem 1.2rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; color: var(--navy);
  transition: border-color .2s, background .2s, color .2s;
  cursor: default;
  box-shadow: 0 1px 4px rgba(26,46,74,.06);
}
.tech-pill:hover {
  border-color: var(--accent);
  background: rgba(59,111,212,.05);
  color: var(--accent);
}
.tech-pill .icon { font-size: 1rem; }

/* ─────────────────────────────────────────────
   TESTIMONIALS
───────────────────────────────────────────── */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}

.tcard {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: border-color .25s, box-shadow .25s;
  box-shadow: 0 2px 12px rgba(26,46,74,.05);
}
.tcard:hover {
  border-color: rgba(59,111,212,.3);
  box-shadow: 0 8px 28px rgba(59,111,212,.1);
}

.tcard-quote {
  color: var(--text-muted); font-size: .95rem; font-weight: 400; line-height: 1.75;
  margin-bottom: 1.5rem; position: relative;
}
.tcard-quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 3rem; line-height: 0;
  color: var(--accent); opacity: .3;
  position: absolute; top: 12px; left: -8px;
}

.tcard-author { display: flex; align-items: center; gap: .85rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: #fff;
}
.author-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.author-role { color: var(--text-muted); font-size: .8rem; }

/* ─────────────────────────────────────────────
   CTA / CONTACT FORM
───────────────────────────────────────────── */
.cta-section {
  text-align: center; position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: 24px;
  padding: 6rem 4%;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(59,111,212,.25), transparent 70%);
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.02em;
  position: relative; color: #fff;
}
.cta-section > p {
  color: rgba(255,255,255,.65); max-width: 460px; margin: 1.2rem auto 2.5rem;
  font-size: 1rem; font-weight: 400; position: relative;
}
.cta-actions { position: relative; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   CONTACT FORM
───────────────────────────────────────────── */
#contact-form {
  max-width: 680px;
  margin: 2.5rem auto 0;
  text-align: left;
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.form-group {
  display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem;
}

.form-group label {
  font-size: .82rem; font-weight: 700;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em; text-transform: uppercase;
}

.form-optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .6; }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: .75rem 1rem;
  color: #fff;
  font-family: var(--font-body); font-size: .95rem;
  outline: none; transition: border-color .2s, background .2s;
  width: 100%; resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: pointer;
}
.form-group select option { background: var(--navy); color: #fff; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent2);
  background: rgba(255,255,255,.12);
}

.form-footer {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: 1.5rem; flex-wrap: wrap;
}

.form-submit {
  border: none; cursor: pointer; font-family: var(--font-body);
}
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

.form-privacy { color: rgba(255,255,255,.45); font-size: .8rem; }

.form-success {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: rgba(74,159,212,.15); border: 1px solid rgba(74,159,212,.4);
  border-radius: 10px; color: #a8d8f0; font-size: .95rem; text-align: center;
}
.form-error {
  margin-top: 1.5rem; padding: 1rem 1.25rem;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
  border-radius: 10px; color: #fca5a5; font-size: .95rem; text-align: center;
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
footer {
  padding: 4rem 6% 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer-brand p {
  color: var(--text-muted); font-size: .9rem;
  max-width: 280px; margin-top: .85rem; line-height: 1.7; font-weight: 400;
}
.footer-col h5 {
  font-family: var(--font-display); font-weight: 800;
  font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.2rem; color: var(--navy);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a {
  color: var(--text-muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--border);
  color: var(--text-muted); font-size: .8rem;
}

/* ── fade-up animation class ── */
.fade-up {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.nav-links a.active { color: var(--accent); }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .process-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats { gap: 1.5rem; }
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-top { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .services-grid { grid-template-columns: 1fr; }
}
