/* ===== EuxinTech — Landing Page Styles ===== */
:root {
  --teal: #3d5e5c;
  --teal-2: #43615e;
  --teal-light: #5a8480;
  --teal-bright: #6fb3ab;
  --slate: #2b2c2e;
  --slate-2: #3d3e40;
  --ink: #1b2624;
  --paper: #f4f7f6;
  --paper-2: #eaf0ef;
  --white: #ffffff;
  --muted: #6a7d7a;
  --line: rgba(61, 94, 92, 0.14);
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(27, 38, 36, 0.06);
  --shadow: 0 18px 50px rgba(27, 38, 36, 0.12);
  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Sora', var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ===== Decorative background ===== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(61,94,92,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,94,92,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}
.bg-glow {
  position: fixed; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .35; pointer-events: none;
}
.bg-glow--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: var(--teal-bright); }
.bg-glow--2 { width: 460px; height: 460px; top: 480px; left: -180px; background: #9ccdc6; opacity: .25; }

/* ===== Navbar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(244, 247, 246, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(244,247,246,.85); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { height: 30px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-weight: 500; color: var(--slate-2); font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--teal); }
.nav__cta {
  background: var(--teal); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important;
  box-shadow: 0 8px 20px rgba(61,94,92,.25); transition: transform .2s, box-shadow .2s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(61,94,92,.35); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--slate-2); border-radius: 2px; transition: .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; padding: 13px 26px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s; cursor: pointer;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--teal); color: var(--white); box-shadow: 0 12px 28px rgba(61,94,92,.3); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(61,94,92,.4); }
.btn--ghost { background: rgba(61,94,92,.08); color: var(--teal); }
.btn--ghost:hover { background: rgba(61,94,92,.16); transform: translateY(-2px); }

/* ===== Hero ===== */
.hero { padding: 70px 0 90px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(61,94,92,.08); color: var(--teal);
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(111,179,171,.25); animation: ping 2.2s infinite; }
@keyframes ping { 0%,100% { box-shadow: 0 0 0 3px rgba(111,179,171,.3);} 50% { box-shadow: 0 0 0 7px rgba(111,179,171,0);} }

.hero__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; margin: 22px 0 18px; color: var(--ink);
}
.grad { background: linear-gradient(120deg, var(--teal-light), var(--teal-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; gap: 14px; margin: 30px 0 38px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; border-top: 1px solid var(--line); padding-top: 26px; }
.hero__stats dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--teal); }
.hero__stats dd { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

/* Hero visual */
.hero__visual { display: flex; justify-content: center; }
.chip-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 28px; padding: 40px; box-shadow: var(--shadow);
  width: 100%; max-width: 380px; overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }
.chip-card__glow { position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(111,179,171,.4), transparent 70%); }
.chip { width: 100%; height: auto; position: relative; }
.ecg { stroke-dasharray: 260; stroke-dashoffset: 260; animation: trace 3s ease-in-out infinite; }
@keyframes trace { 0% { stroke-dashoffset: 260;} 55% { stroke-dashoffset: 0;} 100% { stroke-dashoffset: 0; opacity: .85;} }
.chip-card__caption { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-weight: 600; color: var(--slate-2); font-size: 14px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-bright); animation: ping 1.6s infinite; }

/* ===== Sections ===== */
.section { padding: 88px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 12px; }
.section__head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; background: rgba(61,94,92,.08); border-radius: 14px; margin-bottom: 18px; }
.card h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--muted); font-size: .98rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--teal-light), var(--teal-bright)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service:hover::before { transform: scaleY(1); }
.service__no { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: rgba(61,94,92,.25); margin-bottom: 12px; }
.service h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 8px; color: var(--ink); }
.service p { color: var(--muted); }

/* Teknokent */
.teknokent { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--slate-2); font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; background: var(--teal); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; }
.teknokent__card {
  font-style: normal; background: linear-gradient(150deg, var(--teal), var(--slate-2));
  color: #eaf2f1; border-radius: 22px; padding: 36px; box-shadow: var(--shadow);
}
.teknokent__card h3 { font-family: var(--display); font-size: 1.1rem; color: #fff; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .85; }
.teknokent__card p { line-height: 1.8; margin-bottom: 22px; }
.teknokent__card .btn--ghost { background: rgba(255,255,255,.14); color: #fff; }
.teknokent__card .btn--ghost:hover { background: rgba(255,255,255,.24); }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
a.contact__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact__ico { font-size: 26px; margin-bottom: 8px; }
.contact__lbl { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.contact__val { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--teal); word-break: break-word; }

/* Footer */
.footer { background: var(--ink); color: #c4d3d0; padding: 60px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__logo { height: 30px; opacity: .95; margin-bottom: 16px; }
.footer__brand p { font-size: .95rem; max-width: 280px; color: #97aaa7; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer__cols h4 { font-family: var(--display); color: #fff; font-size: .95rem; margin-bottom: 12px; letter-spacing: .03em; }
.footer__cols p { font-size: .92rem; line-height: 1.8; color: #97aaa7; }
.footer__cols a:hover { color: var(--teal-bright); }
.footer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: .85rem; color: #7d918e; flex-wrap: wrap; }
.footer__domains { color: var(--teal-bright); font-weight: 500; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .chip-card { max-width: 300px; }
  .teknokent { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px;
    background: rgba(244,247,246,.98); backdrop-filter: blur(14px); padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform .35s ease; align-items: stretch;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; border-bottom: 0 !important; margin-top: 8px; }
  .nav__burger { display: flex; }
  .cards, .services, .contact { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .footer__cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
