:root {
  --brand: #ff6a00;
  --brand-dark: #e65f00;
  --text: #1b1b1b;
  --muted: #6b6b6b;
  --line: #e3e3e3;
  --surface: #f5f5f5;
  --white: #ffffff;
  --footer-bg: #1b1b1b;
  --radius-card: 20px;
  --shadow-sm: 0 8px 24px rgba(27, 27, 27, 0.08);
  --shadow-brand: 0 10px 28px rgba(255, 106, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
}

/* --- Navbar --- */
.navbar-landing {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.navbar-landing .nav-link {
  color: var(--text);
  font-weight: 500;
}

.navbar-landing .nav-link:hover {
  color: var(--brand);
}

.brand-mark {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.brand-mark span {
  color: var(--brand);
}

/* --- Typography --- */
.display-tight {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lead-muted {
  color: var(--muted);
  font-size: 1.125rem;
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-sub {
  color: var(--muted);
  max-width: 640px;
}

/* --- Surfaces --- */
.section-alt {
  background: var(--surface);
}

/* --- Buttons --- */
.btn-brand {
  background: var(--brand);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 12px;
  box-shadow: var(--shadow-brand);
}

.btn-brand:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 12px;
  background: transparent;
}

.btn-outline-brand:hover {
  background: rgba(255, 106, 0, 0.08);
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* --- Cards --- */
.card-soft {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero --- */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6ef 0%, #ffffff 45%, #f7f7f7 100%);
}

.hero-blob {
  position: absolute;
  right: 6%;
  top: 18%;
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  border-radius: 32% 68% 70% 30% / 30% 42% 58% 70%;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.35), rgba(255, 106, 0, 0.05));
  filter: blur(0px);
  animation: floaty 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

/* --- Stats --- */
.stat-num {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}

/* --- Portfolio tiles --- */
.port-tile {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--line);
}

.port-tile .grad {
  position: absolute;
  inset: 0;
  opacity: 1;
  transition: transform 0.35s ease;
}

.port-tile:hover .grad {
  transform: scale(1.04);
}

.port-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, transparent 30%, rgba(27, 27, 27, 0.72) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.port-tile:hover .port-overlay {
  opacity: 1;
}

/* --- Testimonials stars --- */
.stars {
  color: var(--brand);
  letter-spacing: 0.08em;
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: #d6d6d6;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
}

/* --- Auth / Drive app chrome --- */
.app-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fff6ef 0%, #ffffff 40%);
}

.drive-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.table-drive td,
.table-drive th {
  vertical-align: middle;
}

/* DOCX (Mammoth) в модалке */
.drive-docx-preview img {
  max-width: 100%;
  height: auto;
}

.drive-docx-preview table {
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .display-tight {
    font-size: 2.1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
