/* ------------------------------
   RAWTech Global Styles
   ------------------------------ */

:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-surface: #171717;
  --color-surface-alt: #1f1f1f;
  --color-border: #2f2f2f;
  --color-text: #f5f5f5;
  --color-text-muted: #a3a3a3;
  --color-accent: #007aff;
  --color-accent-soft: rgba(0, 122, 255, 0.1);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  /* Technical font for data/labels */
  --font-mono: "JetBrains Mono", "Fira Code", monospace; 

  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* --- Premium Polish --- */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth; 
}

/* Custom Selection Color */
::selection {
  background: rgba(0, 122, 255, 0.3); /* Electric blue transparency */
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 6px;
  border: 3px solid var(--color-bg); /* Creates padding effect */
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Reset-ish */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  /* Technical grid pattern overlay */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top, #141414 0, #050505 45%, #000 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
  background-attachment: fixed; /* Keeps grid stable on scroll */
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.85);
  border-bottom: 1px solid rgba(47, 47, 47, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* --- WORDMARK LOGO STYLES --- */
.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  gap: 3px;
  padding-top: 2px;
}

.brand-text-main {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800; /* Extra bold */
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.brand-text-main .text-highlight {
  color: var(--color-accent);
}

.brand-text-sub {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--color-text-muted);
  letter-spacing: 0.25em; /* Wide tracking */
  text-transform: uppercase;
  padding-left: 2px;
}

/* Nav */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  border-radius: 99px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color 0.18s ease, opacity 0.18s ease;
}

.nav a.active,
.nav a:hover {
  color: var(--color-text);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 122, 255, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 122, 255, 0.4);
}

.nav-cta span {
  font-size: 1.1rem;
  font-family: var(--font-mono);
}

/* Hero */

.hero {
  padding: 3.5rem 0 3.25rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.08;
  margin: 0 0 0.8rem;
}

.hero-title span.highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.7rem 0 0.5rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  color: var(--color-text);
  transition: background 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn span {
  font-family: var(--font-mono);
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Terminal arrow effect on hover */
.btn:hover span {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #33a3ff);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 122, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(0, 122, 255, 0.5);
}

.btn-ghost {
  border-color: var(--color-border);
  background: rgba(15, 23, 42, 0.8);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  background: rgba(15, 23, 42, 1);
}

.hero-footnote {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* Hero side panel */

.hero-panel {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, #1e293b, #020617);
  padding: 1.7rem 1.5rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 122, 255, 0.2), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.hero-panel-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Live Pulse Animation */

@keyframes pulse-blue {

  0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }

  70% { box-shadow: 0 0 0 6px rgba(0, 122, 255, 0); }

  100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }

}



.hero-panel-badge {

  font-family: var(--font-mono);

  font-size: 0.65rem;

  padding: 0.2rem 0.6rem;

  border-radius: 999px;

  border: 1px solid rgba(148, 163, 184, 0.5);

  background: rgba(15, 23, 42, 0.9);

  color: var(--color-accent);

  

  /* Flex settings for the dot */

  display: inline-flex;

  align-items: center;

  gap: 6px;

  border-color: rgba(0, 122, 255, 0.3);

}



/* The pulsing dot */

.hero-panel-badge::before {

  content: "";

  display: block;

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background-color: var(--color-accent);

  animation: pulse-blue 2s infinite;

}

.hero-metric-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.metric {
  flex: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.3rem;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.metric-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

.hero-panel-divider {
  height: 1px;
  background: radial-gradient(
    90deg,
    rgba(148, 163, 184, 0),
    rgba(148, 163, 184, 0.7),
    rgba(148, 163, 184, 0)
  );
  margin: 0.7rem 0 0.9rem;
}

.hero-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.hero-panel-list li span.icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

.hero-panel-footer {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 34rem;
}

/* Cards / grids */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(55, 65, 81, 0.7);
  padding: 1.3rem 1.2rem 1.25rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease;
}

/* Tactile Hover State */
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card-text {
  font-size: 0.86rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.card-micro {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* Two-column content */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Lists */

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
}

/* CTA section */

.cta {
  text-align: center;
}

.cta-inner {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, #111827, #020617);
  padding: 2.1rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.cta-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Forms */

.form {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top, #020617, #020617);
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-group.full-width {
  flex-basis: 100%;
}

label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

input,
textarea,
select {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, transform 0.16s ease;
  font-family: inherit;
}

/* Sharper focus states */
input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2); 
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */

.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 1.3rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: #020617;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* Page-specific tweaks */

.page-hero {
  padding: 2.6rem 0 2.1rem;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
}

.page-hero-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 38rem;
}

.page-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner,
  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.5rem 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.35rem 0;
  }

  .nav-cta {
    margin-top: 0.4rem;
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding-top: 2.7rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}