/* ============================================
   iojeet.com — Design System
   Aesthetic: Dark editorial, insider-access feel
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core palette — dark with warm accents */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  --bg-accent: #1a1a2e;

  --text-primary: #f0ece4;
  --text-secondary: #9e9a90;
  --text-muted: #5c5952;

  --accent: #e8c547;
  --accent-dim: #c9a830;
  --accent-glow: rgba(232, 197, 71, 0.15);

  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.1);
  --red: #f87171;
  --blue: #60a5fa;

  --border: #2a2a2f;
  --border-light: #3a3a40;

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-max: 1120px;
  --content-wide: 1280px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ── Utility ── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container--wide {
  max-width: var(--content-wide);
}
.section {
  padding: var(--section-pad) 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.highlight {
  color: var(--accent);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}
.btn--primary:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
  border-radius: 0;
  border-bottom: 1px solid transparent;
}
.btn--ghost:hover {
  border-bottom-color: var(--accent);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease-out);
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.nav__logo span {
  color: var(--accent);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s;
  font-weight: 500;
}
.nav__links a:hover {
  color: var(--text-primary);
}
.nav__cta {
  font-size: 0.85rem !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  border: 1px solid var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  transition: all 0.25s var(--ease-out) !important;
}
.nav__cta:hover {
  background: var(--accent) !important;
  color: var(--bg-primary) !important;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
  }
  .nav__links.open {
    right: 0;
  }
  .nav__links a { font-size: 1.1rem; }
  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: -1;
  }
  .nav__links.open ~ .nav__overlay {
    display: block;
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero__title {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s var(--ease-out) both;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s var(--ease-out) both;
}
.hero__proof {
  margin-top: 3.5rem;
  display: flex;
  gap: 3rem;
  animation: fadeUp 0.6s 0.4s var(--ease-out) both;
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
}
.hero__proof-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero__proof-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── About / Positioning ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.about__text p:first-of-type {
  font-size: 1.15rem;
  color: var(--text-primary);
}
.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}
.about__card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.about__card-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

/* ── Services ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.25rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}
.service-card:hover::before {
  opacity: 1;
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ── Social Proof / Results ── */
.results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s var(--ease-out);
}
.result-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}
.result-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.result-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.result-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}
.result-card__metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.result-card__context {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .results__grid { grid-template-columns: 1fr; }
}

/* ── Experience Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-3px);
}
.timeline__role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.timeline__company {
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.timeline__period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.timeline__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ── Blog Section ── */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
}
.blog-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}
.blog-card__img {
  width: 100%;
  height: 180px;
  background: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-card__body {
  padding: 1.5rem;
}
.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.blog-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.blog-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.blog-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .blog__grid { grid-template-columns: 1fr; }
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cta-section h2 {
  position: relative;
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  position: relative;
}
.cta-section .btn {
  position: relative;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  gap: 2rem;
}
.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--accent); }

/* ── Blog Page Specific ── */
.blog-hero {
  padding: 8rem 0 3rem;
}
.blog-hero h1 {
  margin-bottom: 0.75rem;
}
.blog-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll-triggered fade */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
