/* =============================================
   OfficePro — app.css
   Font: Syne (headings) + DM Sans (body)
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0A0A0A;
  --white:   #FFFFFF;
  --accent:  #C8FF00;
  --gray-50: #F8F8F6;
  --gray-100:#F0F0EC;
  --gray-200:#E0E0D8; 
  --gray-400:#9E9E96;
  --gray-600:#5A5A54;
  --gray-800:#1C1C1A;
  --blue:    #3B5BDB;
  --green:   #2F9E44;
  --red:     #E03131;
  --radius:  12px;
  --radius-sm: 8px;
  --shadow:  0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --transition: 0.2s ease;
  --header-h: 68px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

.btn-primary { background: #0d1235; color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: #2a2a2a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.btn-ghost { background: transparent; color: var(--black); border-color: transparent; }
.btn-ghost:hover { background: var(--gray-100); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--black); }

.btn-dark { background: var(--black); color: var(--accent); border-color: var(--black); }
.btn-dark:hover { background: var(--gray-800); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); }

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.3px;
}
.logo strong { font-weight: 800; }
.logo-light .logo-text { color: var(--white); }
.logo-mark { flex-shrink: 0; }

/* =============================================
   HEADER
   ============================================= */
.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 var(--gray-100);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--black);
  background: var(--gray-100);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--gray-100);
  background: white;
}
.mobile-menu.open { display: block; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--gray-600);
  transition: all var(--transition);
}
.mobile-nav-link:hover { background: var(--gray-100); color: var(--black); }
.mobile-nav-link.highlight { color: var(--blue); font-weight: 500; }
.mobile-nav-divider { height: 1px; background: var(--gray-100); margin: 8px 0; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--gray-50);
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: 20px;
}
.hero-highlight {
  color: transparent;
  -webkit-text-stroke: 2px var(--black);
  position: relative;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--black); }
.hero-stat span { font-size: 13px; color: var(--gray-400); }
.hero-stat-divider { width: 1px; height: 32px; background: var(--gray-200); }

/* Dashboard Preview */
.hero-preview {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }
.preview-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--gray-400);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 3px 12px;
}
.preview-body { display: flex; height: 240px; }
.preview-sidebar {
  width: 56px;
  background: var(--black);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.preview-logo-sm {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 6px;
  margin-bottom: 8px;
}
.preview-nav-item {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.active-nav { background: var(--accent) !important; }
.preview-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.preview-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.preview-card {
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
}
.preview-card.blue { background: #EEF2FF; }
.preview-card.green { background: #F0FDF4; }
.preview-card.yellow { background: #FFFBEB; }
.preview-card.purple { background: #F5F3FF; }
.pc-num { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--black); }
.pc-label { font-size: 10px; color: var(--gray-400); margin-top: 2px; }
.preview-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 4px;
}
.chart-bar {
  flex: 1;
  background: var(--gray-200);
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}
.chart-bar:nth-child(4) { background: var(--black); }

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
  padding: 100px 0;
  background: white;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--black);
  margin-bottom: 14px;
}
.section-sub {
  font-size: 16px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  background: white;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--gray-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  font-weight: 300;
}

/* =============================================
   MODULES SECTION
   ============================================= */
.modules-section {
  padding: 100px 0;
  background: var(--gray-50);
}

.modules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.module-item {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition);
}
.module-item:last-child { border-bottom: none; }
.module-item:hover .module-number { color: var(--black); }
.module-item:hover .module-arrow { transform: translateX(4px); }

.module-number {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-400);
  min-width: 28px;
  padding-top: 4px;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.module-content { flex: 1; }
.module-content h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.module-content p {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.6;
}
.module-arrow {
  font-size: 20px;
  color: var(--gray-400);
  transition: transform var(--transition);
  padding-top: 4px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section { padding: 80px 0; background: white; }
.cta-box {
  background: var(--black);
  border-radius: 20px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.08;
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  font-weight: 300;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section { padding: 100px 0; background: var(--gray-50); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 3px; }
.contact-item p { font-size: 14px; color: var(--gray-600); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }

/* =============================================
   FORM ELEMENTS
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: white;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--black); }
.form-group input.is-invalid,
.form-group textarea.is-invalid { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-error { font-size: 12px; color: var(--red); }

.form-label-row { display: flex; align-items: center; justify-content: space-between; }
.form-link { font-size: 13px; color: var(--blue); }
.form-link:hover { text-decoration: underline; }

.input-password-wrap { position: relative; }
.input-password-wrap input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.password-toggle:hover { color: var(--black); }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.check-input {
  width: 16px; height: 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--black);
}
.check-label { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert p { margin: 0; }
.alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.alert-danger { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }

/* =============================================
   AUTH LAYOUT
   ============================================= */
.auth-body { background: var(--black); min-height: 100vh; }

.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  width: 420px;
  flex-shrink: 0;
  background: #0d1235;
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 320px; height: 320px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
}

.auth-logo { margin-bottom: auto; }

.auth-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.auth-left-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.auth-left-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
}

.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
}
.auth-feature-icon {
  color: var(--accent);
  font-size: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

.auth-left-footer {
  display: flex;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.auth-stat { text-align: left; }
.auth-stat strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--accent); }
.auth-stat span { font-size: 12px; color: rgba(255,255,255,0.4); }

.auth-right {
  flex: 1;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-form-header { margin-bottom: 28px; }
.auth-form-title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.auth-form-sub { font-size: 14px; color: var(--gray-600); font-weight: 300; }

.auth-form { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; }

.auth-form-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-600);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--black);
  color: white;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  line-height: 1.6;
  font-weight: 300;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.15); color: white; }

.footer-heading {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
  font-weight: 300;
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-made { font-size: 12px; color: rgba(255,255,255,0.25); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .auth-left { width: 360px; padding: 36px; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 0 0; }
  .hero-title { letter-spacing: -1px; }
  .hero-highlight { -webkit-text-stroke: 1.5px var(--black); }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-box { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .auth-wrapper { flex-direction: column; }
  .auth-left { width: 100%; padding: 32px 24px; min-height: auto; }
  .auth-left-content { padding: 24px 0; }
  .auth-left-footer { display: none; }
  .auth-right { padding: 32px 20px; }
  .preview-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .hero-stat-divider { display: none; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}