/* =========================================================
   IDR – Institute of Digital Risk | styles.css
   Palette: #FF6B00 (orange), #1a1a1a (black), #fff (white)
   Fonts: Syne (display) + DM Sans (body)
   ========================================================= */

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

:root {
  --orange: #FF6B00;
  --orange-deep: #e05c00;
  --orange-light: #fff3ea;
  --black: #1a1a1a;
  --grey-dark: #2d2d2d;
  --grey-mid: #5a5a5a;
  --grey-light: #f4f4f4;
  --white: #ffffff;
  --border: rgba(26,26,26,0.1);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --container: 1140px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- Container ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ---- Section shared ---- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-label { display: block; }

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  max-width: 560px;
  margin-inline: auto;
  color: var(--grey-mid);
  font-size: 1.05rem;
}

/* =========================================================
   NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--black);
  letter-spacing: 0.05em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--grey-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav__link:hover {
  color: var(--black);
  background: var(--grey-light);
}

.nav__link--cta {
  background: var(--orange);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-sm);
}

.nav__link--cta:hover {
  background: var(--orange-deep) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav__toggle:hover { background: var(--grey-light); }

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.15s, box-shadow 0.22s;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,107,0,0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--black);
  background: var(--grey-light);
}

.btn--full { width: 100%; text-align: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  background: var(--white);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, black 40%, transparent 100%);
  opacity: 0.6;
}

.hero__cube-deco {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 45vw, 600px);
  opacity: 0.55;
  pointer-events: none;
  animation: floatCube 8s ease-in-out infinite;
}

@keyframes floatCube {
  0%, 100% { transform: translateY(-50%) rotate(0deg); }
  50% { transform: translateY(calc(-50% - 18px)) rotate(1.5deg); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(255,107,0,0.3);
  background: var(--orange-light);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero__headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: var(--black);
  letter-spacing: -0.02em;
}

.hero__headline--accent { color: var(--orange); }

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--grey-mid);
  max-width: 520px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.stat { text-align: left; }

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--grey-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--grey-light); }

.about__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 3rem;
  align-items: start;
}

.about__label-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.4rem;
}

.section-title-side {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  font-weight: 500;
}

.about__heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.about__body { color: var(--grey-mid); }
.about__body p + p { margin-top: 1rem; }

.about__pillars-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.mini-pill {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--black);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--white); }

/* Pipeline */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
}

.pipeline__step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.pipeline__step:hover {
  background: var(--orange-light);
  color: var(--orange);
}

.pipeline__icon { color: var(--orange); display: flex; }

.pipeline__arrow {
  color: var(--grey-mid);
  font-size: 1.2rem;
  user-select: none;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grey-light);
  transition: background 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.card:hover::before { background: var(--orange); }

.card--featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.card--featured::before { background: var(--orange); }
.card--featured .card__body { color: rgba(255,255,255,0.65); }
.card--featured .card__tags li { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }

.card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  margin-bottom: 1rem;
  font-weight: 600;
}

.card__icon { color: var(--orange); margin-bottom: 1rem; }
.card--featured .card__icon { color: var(--orange); }

.card__title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.card__body {
  font-size: 0.92rem;
  color: var(--grey-mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.card__tags li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grey-light);
  border: 1px solid var(--border);
  color: var(--grey-mid);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* =========================================================
   COMMUNITY
   ========================================================= */
.community { background: var(--black); color: var(--white); }

.community .section-heading { color: var(--white); }
.community .section-sub { color: rgba(255,255,255,0.55); }
.community .section-label { color: var(--orange); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.audience-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}

.audience-card:hover {
  background: rgba(255,107,0,0.08);
  transform: translateY(-4px);
}

.audience-card__icon {
  color: var(--orange);
  margin-bottom: 1rem;
}

.audience-card h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.audience-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.sectors { text-align: center; }

.sectors__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.sectors__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.sectors__list span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}

.sectors__list span:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--grey-light); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact__info .section-label { margin-bottom: 0.75rem; }

.contact__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--grey-mid);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 400px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--grey-mid);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.contact__detail a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 500;
}

.contact__detail a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.02em;
}

.form-group label span { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.12);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form__note {
  font-size: 0.88rem;
  text-align: center;
  min-height: 1.2em;
}

.field-error {
  font-size: 0.8rem;
  color: #c0392b;
  min-height: 1em;
  display: block;
}

.form-group input[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-group input[aria-invalid="false"] {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding-block: 2.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.footer__brand small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer__nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--orange); }

.footer__copy { font-size: 0.78rem; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- Tablet ≤ 900px ---- */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about__label-col {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__cube-deco { opacity: 0.25; width: 50vw; }
}

/* ---- Mobile ≤ 640px ---- */
@media (max-width: 640px) {
  :root { --nav-h: 60px; }

  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav__link--cta {
    margin-top: 0.75rem;
    text-align: center;
    border-radius: var(--radius-sm);
    border-bottom: none;
  }

  .hero__cube-deco { display: none; }

  .hero__headline { font-size: clamp(2rem, 11vw, 3rem); }

  .hero__stats { gap: 1rem; }

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

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

  .pipeline { flex-direction: column; gap: 0.25rem; }
  .pipeline__arrow { transform: rotate(90deg); }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
}