/* ===================================
   RASMY HR Tech - Main Styles
   =================================== */

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Page Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    /* subtle grid using repeating-linear-gradients */
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  background-color: #fbfbfd;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===================================
   Header & Navigation
   =================================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6b46ff, #ef476f);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(107, 70, 255, 0.15);
  font-size: 16px;
}

.brand-name {
  font-weight: 800;
  font-size: 18px;
  background: linear-gradient(90deg, #6b46ff, #ef476f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

nav a:hover {
  background: rgba(16, 24, 40, 0.04);
}

/* Controls */
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  border: 0;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(90deg, #2b8cff, #3ddc97);
  color: white;
  box-shadow: 0 8px 28px rgba(43, 140, 255, 0.12);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(43, 140, 255, 0.18);
}

.btn-primary-sm {
  background: linear-gradient(90deg, #6b46ff, #ef476f);
  color: white;
  padding: 10px 18px;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(107, 70, 255, 0.12);
}

.btn-ghost {
  background: white;
  border: 1px solid rgba(16, 24, 40, 0.08);
  color: #111827;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.06);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
}

.headline {
  font-weight: 900;
  line-height: 0.95;
  margin: 0;
  letter-spacing: -1px;
  font-size: clamp(38px, 7.5vw, 112px);
}

.headline .line {
  display: block;
}

.grad-word {
  display: inline-block;
  background-image: linear-gradient(90deg, #6b46ff, #ef476f, #ff7a59);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 6px;
}

.sub {
  margin-top: 18px;
  margin-bottom: 26px;
  color: #6b7280;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.6;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.small-note {
  margin-top: 16px;
  color: #9ca3af;
  font-size: 13px;
}

/* ===================================
   Sections
   =================================== */
.section {
  padding: 80px 24px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: clamp(16px, 1.8vw, 20px);
  max-width: 700px;
  margin: 0 auto 60px;
}

/* ===================================
   Dark Mode
   =================================== */
.dark {
  background-color: #0b1220;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  color: #e6eef8;
}

.dark .sub {
  color: #9fb0c9;
}

.dark .section-subtitle {
  color: #9fb0c9;
}

.dark nav a {
  color: #e6eef8;
  opacity: 0.9;
}

.dark nav a:hover {
  background: rgba(255,255,255,0.05);
  opacity: 1;
}

.dark .logo {
  background: linear-gradient(135deg, #6b46ff, #ef476f);
}

.dark .btn-ghost {
  background: rgba(255,255,255,0.04);
  color: #e6eef8;
  border-color: rgba(255,255,255,0.06);
}

.dark .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

.dark .btn-primary {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

/* ===================================
   Accessibility
   =================================== */
a:focus,
button:focus {
  outline: 3px solid rgba(59, 130, 246, 0.25);
  outline-offset: 3px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  header {
    padding: 12px 18px;
  }

  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 20px 40px;
  }

  .section {
    padding: 60px 20px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .controls .btn-primary-sm {
    padding: 8px 14px;
    font-size: 13px;
  }

  .brand-name {
    font-size: 16px;
  }

  .logo {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}
