/* ============================================= */
/* SHARED STYLES — XTCraft Landing Pages         */
/* ============================================= */

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #0c0e1a;
  --bg-subtle: #101324;
  --surface: #161929;
  --surface-raised: #1d2035;
  --surface-hover: #232742;
  --white: #e8e9f0;
  --coral: #ff6f56;
  --coral-soft: rgba(255, 111, 86, 0.1);
  --coral-mid: rgba(255, 111, 86, 0.18);
  --coral-deep: #e85a40;
  --mint: #3dd9b6;
  --mint-soft: rgba(61, 217, 182, 0.1);
  --mint-mid: rgba(61, 217, 182, 0.18);
  --lavender: rgba(160, 150, 255, 0.12);
  --navy-light: rgba(140, 148, 255, 0.1);
  --text: #e2e3ec;
  --text-mid: #8b8ea8;
  --text-light: #555873;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.2);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.4), 0 8px 20px rgba(0,0,0,0.25);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;
  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================= */
/* SKIP LINK                                     */
/* ============================================= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--coral);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  box-shadow: var(--shadow-lg);
}

/* ============================================= */
/* NAV                                           */
/* ============================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, -webkit-backdrop-filter 0.3s;
}

header.scrolled {
  background: rgba(12, 14, 26, 0.7);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

nav {
  padding: 0;
}

nav .container {
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-center {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-center a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.nav-center a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 10px 20px;
  transition: color 0.2s;
}

.nav-login:hover { color: var(--white); }

.nav-cta {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: var(--coral);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
  background: var(--coral-deep);
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ============================================= */
/* BUTTONS                                       */
/* ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
  background: var(--coral);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--surface-raised);
  color: var(--white);
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */

footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 13px;
  color: var(--text-light);
}

footer a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

footer a:hover { color: var(--coral); }

.footer-links {
  display: flex;
  gap: 24px;
}

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

@media (max-width: 900px) {
  .nav-center, .nav-login { display: none; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
