/* Shared styles for both desktop and mobile layouts */
:root {
  --bg: #141414;
  --bg-soft: #1b1b1b;
  --bg-card: #1f1f1f;
  --gold: #E9C468;
  --gold-deep: #C8961E;
  --gold-dark: #8A6D1D;
  --red: #B5352B;
  --text: #cfcfcf;
  --text-dim: #909090;
  --line: #2c2c2c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
}
h1, h2, h3, .nav, .btn, .kicker { font-family: 'Trebuchet MS', 'Segoe UI', sans-serif; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Nav ---------- */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav img { display: block; }
.nav ul { display: flex; list-style: none; }
.nav a {
  color: var(--gold); text-decoration: none;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.kicker {
  color: var(--red); text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.85rem; font-weight: bold;
}
h1 { color: var(--gold); line-height: 1.25; margin: 0.6rem 0 1.2rem; letter-spacing: 0.02em; }
.hero p { margin-bottom: 1rem; max-width: 72ch; }
.hero .lead { color: #e8e8e8; font-size: 1.1rem; }
.hero img { border-radius: 50%; flex-shrink: 0; }
.btn {
  display: inline-block; margin-top: 1rem; padding: 0.8rem 2rem;
  background: var(--gold-deep); color: #141414; font-weight: bold;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--gold); border-radius: 3px; cursor: pointer;
}
.btn:hover { background: var(--gold); }

/* ---------- Services ---------- */
h2 { color: var(--gold); font-size: 1.9rem; letter-spacing: 0.05em; }
.rule { width: 70px; height: 3px; background: var(--red); margin: 0.8rem 0 2rem; }
.service {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px;
  border-top: 3px solid var(--gold-deep);
}
.service h3 { color: var(--gold); font-size: 1.25rem; margin-bottom: 0.9rem; letter-spacing: 0.04em; }
.service p { margin-bottom: 0.9rem; }

/* ---------- About ---------- */
section { scroll-margin-top: 80px; }
#about { background: var(--bg-soft); border-top: 1px solid var(--line); }
.section-sub { max-width: 80ch; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.8rem 1.2rem; text-align: center;
}
.card:hover { border-color: var(--gold-dark); }
.card h3 { color: #e6e6e6; font-size: 1.15rem; margin-bottom: 1rem; }
.card h3:only-child { margin-bottom: 0; }
.links { display: flex; justify-content: center; gap: 0.65rem; flex-wrap: wrap; }
.links a { display: inline-flex; padding: 0.15rem; }
.icn {
  display: inline-block; width: 18px; height: 18px;
  background-color: var(--gold-deep);
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.links a:hover .icn { background-color: #fff; }
.i-x          { --i: url('icons/x.svg'); }
.i-github     { --i: url('icons/github.svg'); }
.i-linkedin   { --i: url('icons/linkedin.svg'); }
.i-hackerone  { --i: url('icons/hackerone.svg'); }
.i-bugcrowd   { --i: url('icons/bugcrowd.svg'); }
.i-intigriti  { --i: url('icons/intigriti.svg'); }
.i-yeswehack  { --i: url('icons/yeswehack.png'); }
.i-hackthebox { --i: url('logos/hackthebox.svg'); }

.track { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 2.2rem; }
.track h3 { color: var(--gold); font-size: 1.25rem; letter-spacing: 0.04em; margin-bottom: 0.8rem; }
.track p { max-width: 80ch; margin-bottom: 1.4rem; }
.track .logos { display: flex; flex-wrap: wrap; align-items: center; }
.track .logos img { display: block; width: auto; }
.track .fine {
  color: var(--text-dim); font-size: 0.85rem; line-height: 1.6;
  margin-top: 1.6rem; max-width: 95ch;
}

/* ---------- Contact ---------- */
#contact { border-top: 1px solid var(--line); }
.field { margin-bottom: 1.2rem; }
label {
  display: block; margin-bottom: 0.4rem; color: var(--gold);
  font-family: 'Trebuchet MS', sans-serif; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
input, textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  background: var(--bg-soft); color: #e6e6e6;
  border: 1px solid var(--line); border-radius: 3px;
  font-family: inherit; font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold-deep); }
textarea { min-height: 150px; resize: vertical; }
.form-note { color: var(--text-dim); font-size: 0.85rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 1.6rem 1.25rem;
  text-align: center; color: var(--text-dim); font-size: 0.85rem;
}
footer img { height: 30px; opacity: 0.85; margin-bottom: 0.6rem; }
