/* ===================================
   株式会社FAR - Corporate Website
   Light Theme
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafafa;
  --bg-alt: #f2f3f5;
  --surface: #ffffff;
  --border: #e0e2e6;
  --text: #222222;
  --text-muted: #717680;
  --accent: #333333;
  --accent-light: #555555;
  --accent-dark: #111111;
  --accent-glow: rgba(50, 50, 50, 0.06);
  --gradient: linear-gradient(135deg, #333333, #555555);
  --gradient-soft: linear-gradient(135deg, #f5f5f5, #eeeeee);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
  padding: 16px;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f5f7 0%, var(--bg) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(50, 50, 50, 0.12);
  border-radius: 100px;
  background: var(--accent-glow);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-line {
  display: block;
}

.hero-line.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9375rem;
  line-height: 2;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: rgba(50, 50, 50, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(50, 50, 50, 0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  font-size: 0.6875rem;
  padding: 4px 12px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Products --- */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Featured Product (KaigoBase) */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.product-hero-info {
  order: 1;
}

.product-hero-visual {
  order: 2;
}

.product-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.product-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-screenshot-placeholder {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 20px;
}

.product-screenshot-placeholder span {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
  opacity: 0.3;
}

/* Stacked screenshots */
.product-screenshots-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.product-screenshots-stack .screenshot-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 88%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  object-fit: cover;
}

.product-screenshots-stack .screenshot-front {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  object-fit: cover;
}

.products-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  border-color: rgba(50, 50, 50, 0.1);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 12px;
  background: var(--gradient);
  color: #fff;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.product-badge-outline {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.product-card h3,
.product-hero h3 {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-subtitle {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.product-platforms {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
}

.product-features li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.product-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tech span {
  font-size: 0.6875rem;
  padding: 4px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Phone frame for mobile app screenshots */
.product-phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  min-height: 420px;
  padding: 20px 0;
}

.phone-frame {
  width: 200px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  padding: 8px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.phone-frame img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.phone-frame-overlap {
  margin-left: -40px;
  margin-top: 40px;
  z-index: 2;
  transform: rotate(2deg);
}

/* Phone trio - 3 screens */
.product-phone-trio {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 20px 0;
}

.product-phone-trio .phone-frame-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-6deg) scale(0.85);
  z-index: 1;
  opacity: 0.6;
}

.product-phone-trio .phone-frame-center {
  position: relative;
  z-index: 3;
  transform: scale(1);
}

.product-phone-trio .phone-frame-right {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(5deg) scale(0.85);
  z-index: 2;
  opacity: 0.6;
}

/* Product hero reverse layout */
.product-hero-reverse .product-hero-info {
  order: 2;
}

.product-hero-reverse .product-hero-visual {
  order: 1;
}

/* --- Cases (導入実績) --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.case-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.case-card:hover {
  box-shadow: var(--shadow-md);
}

.case-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.case-subtitle {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

.case-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  list-style: none;
}

.case-tags li {
  font-size: 0.625rem;
  padding: 3px 10px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: 100px;
  font-weight: 500;
}

/* --- Tech Stack --- */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-category {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tech-category h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tech-name {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* --- Flow --- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.flow-step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.flow-step:hover {
  border-color: rgba(50, 50, 50, 0.15);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flow-num {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.flow-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.flow-step p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* --- Company --- */
.company-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 40px;
  box-shadow: var(--shadow-sm);
}

.company-dl {
  display: flex;
  flex-direction: column;
}

.company-row {
  display: flex;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.company-row:last-child {
  border-bottom: none;
}

.company-row dt {
  width: 180px;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.company-row dd {
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* --- Company Map --- */
.company-map {
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.company-map iframe {
  display: block;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.required {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #b0b5bf;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-hero-info { order: 1 !important; }
  .product-hero-visual { order: 2 !important; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: var(--transition);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-scroll {
    bottom: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .products-row {
    grid-template-columns: 1fr;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .company-row {
    flex-direction: column;
    gap: 8px;
  }

  .company-row dt {
    width: 100%;
  }

  .company-table {
    padding: 8px 24px;
  }

  .contact-form {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .section {
    padding: 80px 0;
  }

  .product-hero {
    padding: 32px 24px;
  }

  .phone-frame {
    width: 160px;
    border-radius: 22px;
    padding: 6px;
  }

  .phone-frame img {
    border-radius: 16px;
  }

  .phone-frame-overlap {
    margin-left: -30px;
    margin-top: 30px;
  }

  .product-phone-stack {
    min-height: 320px;
  }

  .product-phone-trio {
    min-height: 320px;
  }

  .product-phone-trio .phone-frame-back {
    transform: translateY(-50%) rotate(-6deg) scale(0.7);
  }

  .product-phone-trio .phone-frame-center {
    transform: scale(0.9);
  }

  .product-phone-trio .phone-frame-right {
    transform: translateY(-50%) rotate(5deg) scale(0.7);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
