:root {
  /* Premium Minimalist Palette */
  --bg-main: #FAFAF9;
  --bg-secondary: #F5F3EF;
  --text-main: #1A1A1A;
  --text-muted: #666666;
  --accent: #7A9E9F;
  --accent-hover: #5F8182;
  --border: #E5E5E5;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 4rem 0 2rem; }
}

/* Section Spacing - Refined */
section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--text-main);
  color: var(--white);
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card span {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tool Interface Layout */
.tool-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.input-panel {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.sticky-panel {
  position: sticky;
  top: 6rem;
}

@media (max-width: 1100px) {
  .sticky-panel { position: static; }
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

input, textarea, select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: #FAFAFA;
}

input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Items List */
.item-row {
  background: #FBFAF9;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

/* Preview Box (Proposal) */
.proposal-box {
  background: var(--white);
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
  min-height: 1000px;
  color: #1a1a1a;
  border: 1px solid var(--border);
}

.proposal-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #F1F1F1;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.proposal-title {
  font-size: 2.5rem;
  line-height: 1;
}

.proposal-table {
  width: 100%;
  border-collapse: collapse;
}

.proposal-table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.proposal-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #FAFAFA;
}

.proposal-total {
  margin-top: 3rem;
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: right;
}

/* Dock Actions */
.dock-actions {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-radius: 99px;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  z-index: 2000;
}

.dock-actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* Footer */
footer {
  background: #1A1A1A;
  color: #FFF;
  padding: 4rem 0;
  margin-top: 6rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-link-col h4 {
  color: #FFF;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-link-col ul { list-style: none; }
.footer-link-col li { margin-bottom: 0.75rem; }
.footer-link-col a { color: #999; text-decoration: none; font-size: 0.875rem; }
.footer-link-col a:hover { color: #FFF; }
